2.4.0.8146 - Disclosure - Fair Values of Available-For-Sale Securities by Contractual Maturity (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1false USDfalsefalse$eol_PE7265----1310-Q0007_STD_0_20130630_0http://www.sec.gov/CIK0001048477instant2013-06-30T00:00:000001-01-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false USDfalsefalse$eol_PE7265----1310-Q0007_STD_0_20121231_0http://www.sec.gov/CIK0001048477instant2012-12-31T00:00:000001-01-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1true 3us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse02false 4us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValueus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse225116000225116USD$falsetruefalse2truefalsefalse270211000270211USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of available-for-sale debt securities at fair value maturing in the next fiscal year following the latest fiscal year.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27198-111563 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 320 -Section 50 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6957658&loc=d3e62586-112803 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563 false23false 4bmrn_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughTwoYearsFairValuebmrn_falsedebitinstantfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse123905000123905falsefalsefalse2truefalsefalse115993000115993falsefalsefalsexbrli:monetaryItemTypemonetaryAvailable for Sale Securities, Debt Maturities, after One Through Two Years, Fair ValueNo definition available.false24false 4us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAmortizedCostus-gaap_truedebitinstantfalsefalsefalsefalsefalsefalsefalsefalsetotalLabel1truefalsefalse349021000349021USD$falsetruefalse2truefalsefalse386204000386204USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of available-for-sale debt securities at cost, net of adjustments, which include, but are not limited to, accretion, amortization, collection of cash, previous other-than-temporary impairments (OTTI) recognized in earnings (less any cumulative-effect adjustments, as defined) and fair value hedge accounting adjustments.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 50 -Paragraph 2 -Subparagraph (aa) -URI http://asc.fasb.org/extlink&oid=27724398&loc=d3e27161-111563 true2falseFair Values of Available-For-Sale Securities by Contractual Maturity (Detail) (USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.biomarinpharm.com/taxonomy/role/DisclosureFairValuesOfAvailableForSaleSecuritiesByContractualMaturity24