XML 128 R112.htm IDEA: XBRL DOCUMENT v3.6.0.2
Compensation Agreements and Plans - Additional Information (Detail) - USD ($)
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Compensation And Retirement Disclosure [Line Items]      
Gain (loss) in fair value of restricted stock issued $ 5,000,000 $ 2,500,000 $ (4,800,000)
BioMarin Retirement Savings Plan      
Compensation And Retirement Disclosure [Line Items]      
Employee contribution of their current compensation 100.00%    
Company's contribution to match employees contribution 100.00%    
Employer contribution of maximum percentage over employee's annual compensation 6.00%    
Employer contribution over employee's annual compensation $ 12,000    
Employer contribution over employee's annual compensation starting next fiscal year $ 14,000    
Company's savings plan contribution vesting period, years 4 years    
Company's contribution from employment commencement $ 16,000,000 15,100,000 $ 8,300,000
Deferred Compensation Plan      
Compensation And Retirement Disclosure [Line Items]      
Fair value of company stock held $ 19,400,000 $ 25,500,000