<?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:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="tmb-20210111.xsd" xlink:type="simple"/>
    <context id="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001070081</identifier>
        </entity>
        <period>
            <startDate>2021-01-11</startDate>
            <endDate>2021-01-11</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_ENtCAfQTsk2jeQcqln60XQ_2_1">0001070081</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_014LUsJ87kWBaqpiS5t6jw_3_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_8-6FXjabbUiSzyzLrLA5pA">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_MPr_hvEFpEu9zmgj6Ufg5A">2021-01-11</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_kzw2a8mFYk6sMAAssge_Qg">PTC THERAPEUTICS, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_m4dXIVCtf0u_6H_amaVo7g_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_PT9B_loWPkWyGIQ2EIWS6w_1_2">001-35969</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_adieO9PIR0abRKBPVppcVw_1_4">04-3416587</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_CNWcD-BaJE2CKbMLZQ_NVQ_1_0">100 Corporate Court</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_j-kwZX1hRU-lEpoY1JtfVg">South Plainfield</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_p3Dt1qQq30Wx31B69oOlEQ">NJ</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_Uy6_-oBgL0i4YeCHfFaT3g_2_2">07080</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_ZG2aDsnyrkOrvP2jdMLVXg">908</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_v3t6u3yotUechnIUeYhS6Q">222-7000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_7ptPqRt8CkyQ71AL8eFXSg">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_2awKRb_bEEW4gvcAUmgPFA">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_xcedILhj1UWZbhHne8G_Uw">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_y3Qu1vr-AEe0q_uYajA8DQ">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_OQjJPM-GtE21joVK78FFlQ_2_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_UkFCHmyspESDXMhqyDzL_w_2_2">PTCT</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Tc_SZXzEc4b0k6sfYA6Y4NCcA_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_1_11_2021_To_1_11_2021_HeGikZDC5k-0sF-NwL4xGA"
      id="Narr_ITNstemEl0Gr0yGvNTR5Wg">false</dei:EntityEmergingGrowthCompany>
</xbrl>
