2.4.0.84030 - Disclosure - Fair value of financial instruments and marketable securities (Details)truefalsefalse1false USDfalsefalse$I2013Q2_FairValueMeasurementsRecurringMember_EstimateOfFairValueFairValueDisclosureMemberhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false USDfalsefalse$I2012_FairValueMeasurementsRecurringMember_EstimateOfFairValueFairValueDisclosureMemberhttp://www.sec.gov/CIK0001070081instant2012-12-31T00:00:000001-01-01T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true 3us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1158278611582786USD$falsetruefalse2falsefalsefalse00falsefalsefalsexbrli: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 false23false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse2false USDtruefalse$I2013Q2_FairValueMeasurementsRecurringMember_EstimateOfFairValueFairValueDisclosureMemberhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseRecurring basisus-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseTotalus-gaap_FairValueByFairValueHierarchyLevelAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_EstimateOfFairValueFairValueDisclosureMemberus-gaap_FairValueByFairValueHierarchyLevelAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse04true 3us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse05false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1158278611582786USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli: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 false26false 4us-gaap_WarrantsAndRightsOutstandingus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse6120361203USD$falsefalsefalse2truefalsefalse9566195661USD$falsefalsefalsexbrli:monetaryItemTypemonetaryValue of outstanding derivative securities that permit the holder the right to purchase securities (usually equity) from the issuer at a specified price.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 08 -Paragraph i -Article 4 false27false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse4false USDtruefalse$I2013Q2_FairValueInputsLevel2Member_FairValueMeasurementsRecurringMemberhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseRecurring basisus-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseSignificant other observable inputs (level 2)us-gaap_FairValueByFairValueHierarchyLevelAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueInputsLevel2Memberus-gaap_FairValueByFairValueHierarchyLevelAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse08true 3us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse09false 4us-gaap_AvailableForSaleSecuritiesus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse1158278611582786USD$falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli: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 false210false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse5false USDtruefalse$I2013Q2_FairValueMeasurementsRecurringMember_FairValueInputsLevel3Memberhttp://www.sec.gov/CIK0001070081instant2013-06-30T00:00:000001-01-01T00:00:00falsefalseRecurring basisus-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberfalsefalseSignificant unobservable inputs (level 3)us-gaap_FairValueByFairValueHierarchyLevelAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueInputsLevel3Memberus-gaap_FairValueByFairValueHierarchyLevelAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse011true 3us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse012false 4us-gaap_WarrantsAndRightsOutstandingus-gaap_truecreditinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse6120361203USD$falsetruefalse2truefalsefalse9566195661USD$falsetruefalsexbrli:monetaryItemTypemonetaryValue of outstanding derivative securities that permit the holder the right to purchase securities (usually equity) from the issuer at a specified price.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(i)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 08 -Paragraph i -Article 4 false2falseFair value of financial instruments and marketable securities (Details) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.ptcbio.com/role/DisclosureFairValueOfFinancialInstrumentsAndMarketableSecuritiesDetails212