2.4.0.84071 - Disclosure - Stock option plan (Details 2)truefalsefalse1false
USDfalsefalse$D2013Q2YTDhttp://www.sec.gov/CIK0001070081duration2013-01-01T00:00:002013-06-30T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false
USDfalsefalse$D2012Q2YTDhttp://www.sec.gov/CIK0001070081duration2012-01-01T00:00:002012-06-30T00:00:00USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$3false
USDtruefalseD2013Q2YTD_IncentivePlans1998And2009And2013Memberhttp://www.sec.gov/CIK0001070081duration2013-01-01T00:00:002013-06-30T00:00:00falsefalse1998, 2009 and 2013 Plansus-gaap_PlanNameAxisxbrldihttp://xbrl.org/2006/xbrldiptct_IncentivePlans1998And2009And2013Memberus-gaap_PlanNameAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$4false
USDtruefalse$I2012_IncentivePlans1998And2009And2013Memberhttp://www.sec.gov/CIK0001070081instant2012-12-31T00:00:000001-01-01T00:00:00falsefalse1998, 2009 and 2013 Plansus-gaap_PlanNameAxisxbrldihttp://xbrl.org/2006/xbrldiptct_IncentivePlans1998And2009And2013Memberus-gaap_PlanNameAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true
4us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:stringItemTypestringfalse0
2false
5us-gaap_AllocatedShareBasedCompensationExpenseus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse25020002502000USD$falsetruefalse | 2truefalsefalse12950001295000USD$falsetruefalse | 3falsefalsefalse00falsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:monetaryItemTypemonetaryRepresents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 1
-Subparagraph (b)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5047-113901
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SAB TOPIC 14.F)
-URI http://asc.fasb.org/extlink&oid=27013229&loc=d3e301413-122809
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (h)(1)(i)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Staff Accounting Bulletin (SAB)
-Number Topic 14
-Section F
false2
3false
5us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3truefalsefalse2328400023284000USD$falsetruefalse | 4truefalsefalse22130002213000USD$falsetruefalse | xbrli:monetaryItemTypemonetaryUnrecognized cost of unvested share-based compensation awards.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (i)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false2
4false
5us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1us-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1falsefalsefalse00falsefalsefalse | 2falsefalsefalse00falsefalsefalse | 3falsefalsefalse002 years 5 months 16 daysfalsefalsefalse | 4falsefalsefalse00falsefalsefalse | xbrli:durationItemTypenaWeighted average period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (i)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
false0
falseStock option plan (Details 2) (USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.ptcbio.com/role/DisclosureStockOptionPlanDetails244