<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2020-01-31"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mx-20201231.xsd" xlink:type="simple"/>
    <context id="P01_01_2020To12_31_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001325702</identifier>
        </entity>
        <period>
            <startDate>2020-01-01</startDate>
            <endDate>2020-12-31</endDate>
        </period>
    </context>
    <context id="PAsOn06_30_2020">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001325702</identifier>
        </entity>
        <period>
            <instant>2020-06-30</instant>
        </period>
    </context>
    <context id="PAsOn04_26_2021">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001325702</identifier>
        </entity>
        <period>
            <instant>2021-04-26</instant>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <dei:AmendmentFlag contextRef="P01_01_2020To12_31_2020">true</dei:AmendmentFlag>
    <dei:DocumentFiscalPeriodFocus contextRef="P01_01_2020To12_31_2020">FY</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="P01_01_2020To12_31_2020">0001325702</dei:EntityCentralIndexKey>
    <dei:EntityAddressAddressLine1 contextRef="P01_01_2020To12_31_2020" id="hidden21017361">c/o MagnaChip Semiconductor S.A. 1</dei:EntityAddressAddressLine1>
    <dei:DocumentType contextRef="P01_01_2020To12_31_2020">10-K/A</dei:DocumentType>
    <dei:DocumentAnnualReport contextRef="P01_01_2020To12_31_2020">true</dei:DocumentAnnualReport>
    <dei:DocumentPeriodEndDate contextRef="P01_01_2020To12_31_2020">2020-12-31</dei:DocumentPeriodEndDate>
    <dei:CurrentFiscalYearEndDate contextRef="P01_01_2020To12_31_2020">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentFiscalYearFocus contextRef="P01_01_2020To12_31_2020">2020</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="P01_01_2020To12_31_2020">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="P01_01_2020To12_31_2020">001-34791</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="P01_01_2020To12_31_2020">Magnachip Semiconductor Corporation</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="P01_01_2020To12_31_2020">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="P01_01_2020To12_31_2020">83-0406195</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressCityOrTown contextRef="P01_01_2020To12_31_2020">All&#xe9;e Scheffer</dei:EntityAddressCityOrTown>
    <dei:EntityAddressPostalZipCode contextRef="P01_01_2020To12_31_2020">L-2520</dei:EntityAddressPostalZipCode>
    <dei:EntityAddressCountry contextRef="P01_01_2020To12_31_2020">LU</dei:EntityAddressCountry>
    <dei:CityAreaCode contextRef="P01_01_2020To12_31_2020">352</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="P01_01_2020To12_31_2020">45-62-62</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="P01_01_2020To12_31_2020">Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="P01_01_2020To12_31_2020">MX</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="P01_01_2020To12_31_2020">NYSE</dei:SecurityExchangeName>
    <dei:EntityWellKnownSeasonedIssuer contextRef="P01_01_2020To12_31_2020">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityVoluntaryFilers contextRef="P01_01_2020To12_31_2020">No</dei:EntityVoluntaryFilers>
    <dei:EntityCurrentReportingStatus contextRef="P01_01_2020To12_31_2020">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="P01_01_2020To12_31_2020">Yes</dei:EntityInteractiveDataCurrent>
    <dei:EntityFilerCategory contextRef="P01_01_2020To12_31_2020">Accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="P01_01_2020To12_31_2020">false</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="P01_01_2020To12_31_2020">false</dei:EntityEmergingGrowthCompany>
    <dei:IcfrAuditorAttestationFlag contextRef="P01_01_2020To12_31_2020">true</dei:IcfrAuditorAttestationFlag>
    <dei:EntityShellCompany contextRef="P01_01_2020To12_31_2020">false</dei:EntityShellCompany>
    <dei:EntityPublicFloat
      contextRef="PAsOn06_30_2020"
      decimals="2"
      unitRef="Unit_USD">332177863.40</dei:EntityPublicFloat>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="PAsOn04_26_2021"
      decimals="INF"
      unitRef="Unit_shares">46333946</dei:EntityCommonStockSharesOutstanding>
    <dei:AmendmentDescription contextRef="P01_01_2020To12_31_2020">  Explanatory Note  Magnachip Semiconductor Corporation (&#x201c;MagnaChip,&#x201d; the &#x201c;Company,&#x201d; &#x201c;we,&#x201d; &#x201c;us,&#x201d; or &#x201c;our&#x201d;) is filing this Amendment No.&#160;1 on Form 10-K/A (this &#x201c;Amendment&#x201d; or this &#x201c;Report&#x201d;) to amend the Annual Report on Form 10-K for the year ended December&#160;31, 2020, originally filed with the Securities and Exchange Commission (the &#x201c;SEC&#x201d;) on March&#160;9, 2021 (the &#x201c;Original 10-K Filing&#x201d;), solely for the purpose of presenting the information required by Part III of Form 10-K. Such information was previously omitted from the Original 10-K Filing in reliance on General Instruction G(3) to Form 10-K, which permits the information required by Part III of Form 10-K to be incorporated in the Form 10-K by reference to the definitive proxy statement for the 2021 Annual Meeting of Stockholders if such proxy statement is filed no later than 120 days after the fiscal year end. We are filing this Amendment to to present the information required by Part III of Form 10 K, as we will not file our definitive proxy statement within 120 days of the end of our fiscal year ended December 31, 2020. The reference on the cover of the Original 10-K Filing to the incorporation by reference to portions of our definitive proxy statement into Part III of the Original 10-K Filing is hereby deleted.  In accordance with Rule 12b-15 under the Securities Exchange Act of 1934, as amended (the &#x201c;Exchange Act&#x201d;), Part III, Items 10 through 14 of the Original 10-K Filing are hereby amended and restated in their entirety. In addition, we are also including Exhibits&#160;31.3 and 31.4 required by the filing of this Amendment and have consequently amended and restated Part IV, Item&#160;15 of the Original 10-K Filing as set forth herein. Because this Amendment does not contain any financial statements nor does this Amendment contain or amend any disclosure with respect to Items 307 and 308 of Regulation S-K, paragraphs 3, 4 and 5 of the certifications contained in Exhibits 31.3 and 31.4 have been omitted. Because no financial statements are contained in this Amendment, we are not including certifications pursuant to 18 U.S.C. 1350. This Amendment does not amend or otherwise update any other information in the Original 10-K Filing. Accordingly, this Amendment should be read in conjunction with the Original 10-K Filing and with our filings with the SEC subsequent to the Original 10-K Filing.   </dei:AmendmentDescription>
</xbrl>
