2.4.0.84031 - Disclosure - Fair value of financial instruments and marketable securities (Details 2)truefalsefalse1false
USDfalsefalse$D2013Q2YTDhttp://www.sec.gov/CIK0001070081duration2013-01-01T00:00:002013-06-30T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
2false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse1158355811583558USD$falsetruefalse | xbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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
false2
3false
4us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainsus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse28182818USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of unrealized gain before deducting unrealized loss on investments in debt and equity securities classified as available-for-sale securities.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563
false2
4false
4us-gaap_AvailableForSaleSecuritiesGrossUnrealizedLossus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse-3590-3590USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of unrealized loss before deducting unrealized gain on investments in available-for-sale securities.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563
false2
5false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse1158278611582786USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
true2
6false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 2false
USDtruefalse$D2013Q2YTD_CommercialPaperNotIncludedWithCashAndCashEquivalentsMemberhttp://www.sec.gov/CIK0001070081duration2013-01-01T00:00:002013-06-30T00:00:00falsefalseCommercial paperus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse0
7true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
8false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse39963023996302USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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
false2
9false
4us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainsus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse28182818USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of unrealized gain before deducting unrealized loss on investments in debt and equity securities classified as available-for-sale securities.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563
false2
10false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse39991203999120USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
true2
11false
0truefalsetruefalsefalsefalsefalsefalsefalse| 1falsefalsefalse00falsefalsefalse | 3false
USDtruefalse$D2013Q2YTD_DomesticCorporateDebtSecuritiesMemberhttp://www.sec.gov/CIK0001070081duration2013-01-01T00:00:002013-06-30T00:00:00falsefalseU.S. corporate debt securitiesus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_DomesticCorporateDebtSecuritiesMemberus-gaap_MajorTypesOfDebtAndEquitySecuritiesAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse0
12true
3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
13false
4us-gaap_AvailableForSaleSecuritiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse75872567587256USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryThis item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.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
false2
14false
4us-gaap_AvailableForSaleSecuritiesGrossUnrealizedLossus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsetruenegatedLabel| 1truefalsefalse-3590-3590USD$falsefalsefalse | xbrli:monetaryItemTypemonetaryAmount of unrealized loss before deducting unrealized gain on investments in available-for-sale securities.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (c)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563
false2
15false
4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel| 1truefalsefalse75836667583666USD$falsetruefalse | xbrli:monetaryItemTypemonetaryAmount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 25
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=28360136&loc=d3e22054-111558
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 50
-Paragraph 5
-Subparagraph (aa)
-URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27232-111563
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 320
-SubTopic 10
-Section 45
-Paragraph 1
-URI http://asc.fasb.org/extlink&oid=6871852&loc=d3e26610-111562
true2
falseFair value of financial instruments and marketable securities (Details 2) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.ptcbio.com/role/DisclosureFairValueOfFinancialInstrumentsAndMarketableSecuritiesDetails2115