<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2022"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mx-20230519.xsd" xlink:type="simple"/>
    <context id="c20230519to20230519">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001325702</identifier>
        </entity>
        <period>
            <startDate>2023-05-19</startDate>
            <endDate>2023-05-19</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="c20230519to20230519"
      id="Fact_420fc4555837412ba24aaa0e5437f376">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20230519to20230519"
      id="Fact_108a67c673b4451bb7b8cd28d45e4f0d">0001325702</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="c20230519to20230519"
      id="Fact_43a0f956ebad44da9c08dfe07ec1515e">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="c20230519to20230519"
      id="Fact_a713c68d94734d9ba7e4642556f492d9">2023-05-19</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="c20230519to20230519"
      id="Fact_915893c6cae543be9ee54b956a563ba6">Magnachip Semiconductor Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="c20230519to20230519"
      id="Fact_e5ed51b9140c43f9b6485a2ee99e7d8f">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="c20230519to20230519"
      id="Fact_3c6b97bd16704dd985c810bb0270d0b9">001-34791</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="c20230519to20230519"
      id="Fact_30847295314e4724bbeca0c46a63764b">83-0406195</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="c20230519to20230519"
      id="Fact_468619ebe8c54dd4b74ea83aeaac024e">c/o Magnachip Semiconductor, Ltd.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="c20230519to20230519"
      id="Fact_192861f44a6341a39cf89e55f04b7b1b">15F, 76 Jikji-daero 436beon-gil, Heungdeok-gu</dei:EntityAddressAddressLine2>
    <dei:EntityAddressAddressLine3
      contextRef="c20230519to20230519"
      id="Fact_7c5fc772a3394b4ab49585db05a4980e">Cheongju-si</dei:EntityAddressAddressLine3>
    <dei:EntityAddressCityOrTown
      contextRef="c20230519to20230519"
      id="Fact_ff3a432466ef4adfbd143faf3deb36cc">Chungcheongbuk-do</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode
      contextRef="c20230519to20230519"
      id="Fact_e5ab1f6f28f54eaf893b2aa4584ce933">28581</dei:EntityAddressPostalZipCode>
    <dei:EntityAddressCountry
      contextRef="c20230519to20230519"
      id="Fact_bcfef363b3b74228ae10ffda22965ac3">KR</dei:EntityAddressCountry>
    <dei:CityAreaCode
      contextRef="c20230519to20230519"
      id="Fact_02c5a09b1126406e882af1d22dddd003">82</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="c20230519to20230519"
      id="Fact_4f870f5792804bf8aa366fe5180754cb">6903-3000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="c20230519to20230519"
      id="Fact_bf69df15ebf945df9f34b34f2d939fe5">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="c20230519to20230519"
      id="Fact_e3bf4c8a6ef444739561ca1872965247">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="c20230519to20230519"
      id="Fact_aadce9814dbc4bb4b9ed1e3851f89e30">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="c20230519to20230519"
      id="Fact_978a43d1fdf24f0e894abfb7aa038966">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="c20230519to20230519"
      id="Fact_c803be3318af45039ecd8b64b5970750">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="c20230519to20230519"
      id="Fact_045341a51ff2427d96c63643701f068d">MX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="c20230519to20230519"
      id="Fact_cb2e95a499544ae6b4ea60094f5fbf64">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="c20230519to20230519"
      id="Fact_49206823f38e4f6db010eb6e14f29322">false</dei:EntityEmergingGrowthCompany>
</xbrl>
