2.4.0.84032 - Disclosure - Fair value of financial instruments and marketable securities (Details 3)truefalsefalse1false USDfalsefalse$I2013Q2http://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true 3us-gaap_InvestmentHoldingsLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false 4us-gaap_MarketableSecuritiesCurrentus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse1158278611582786USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of investments in debt and equity securities, including, but not limited to, held-to-maturity, trading and available-for-sale expected to be converted to cash, sold or exchanged within one year or the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26626-111562 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 2 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=28358313&loc=d3e6676-107765 false23false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2false USDtruefalse$I2013Q2_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_FVhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseCommercial paperus-gaap_InvestmentTypeAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMemberus-gaap_InvestmentTypeAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse04true 3us-gaap_InvestmentHoldingsLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse05false 4us-gaap_MarketableSecuritiesCurrentus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse39991203999120USD$falsefalsefalsexbrli:monetaryItemTypemonetaryAmount of investments in debt and equity securities, including, but not limited to, held-to-maturity, trading and available-for-sale expected to be converted to cash, sold or exchanged within one year or the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26626-111562 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 2 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=28358313&loc=d3e6676-107765 false26false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse3false USDtruefalse$I2013Q2_DomesticCorporateDebtSecuritiesMember_FVhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseU.S. corporate debt securitiesus-gaap_InvestmentTypeAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_DomesticCorporateDebtSecuritiesMemberus-gaap_InvestmentTypeAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse07true 3us-gaap_InvestmentHoldingsLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse08false 4us-gaap_MarketableSecuritiesCurrentus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse75836667583666USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of investments in debt and equity securities, including, but not limited to, held-to-maturity, trading and available-for-sale expected to be converted to cash, sold or exchanged within one year or the normal operating cycle, if longer.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.2) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26626-111562 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 02 -Paragraph 2 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section 45 -Paragraph 1 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=28358313&loc=d3e6676-107765 false2falseFair value of financial instruments and marketable securities (Details 3) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.ptcbio.com/role/DisclosureFairValueOfFinancialInstrumentsAndMarketableSecuritiesDetails318