XML 87 R96.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
Other Employee Benefits - Additional Information (Detail) - BioMarin Retirement Savings Plan - USD ($)
12 Months Ended
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items]      
Company's contribution to match employees contribution 100.00%    
Employee contribution of their current compensation 100.00%    
Employer contribution of maximum percentage over employee's annual compensation 6.00%    
Employer contribution over employee's annual compensation $ 19,000    
Employer contribution over employee's annual compensation starting next fiscal year 19,500    
Company's contribution from employment commencement $ 28,500,000 $ 23,000,000.0 $ 19,800,000