<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>303</ContextCount>
  <ElementCount>234</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>76</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Disclosure - BUSINESS OVERVIEW AND SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/BUSINESSOVERVIEWANDSIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>BUSINESS OVERVIEW AND SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - FINANCIAL INSTRUMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FINANCIALINSTRUMENTS</Role>
      <ShortName>FINANCIAL INSTRUMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATION</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - FAIR VALUE MEASUREMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FAIRVALUEMEASUREMENTS</Role>
      <ShortName>FAIR VALUE MEASUREMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIES</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOME</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATION</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - STOCK-BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/STOCKBASEDCOMPENSATION</Role>
      <ShortName>STOCK-BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - EARNINGS PER COMMON SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/EARNINGSPERCOMMONSHARE</Role>
      <ShortName>EARNINGS PER COMMON SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - COMMITMENTS AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/COMMITMENTSANDCONTINGENCIES</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9954701 - Disclosure - BUSINESS OVERVIEW AND SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/BUSINESSOVERVIEWANDSIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>BUSINESS OVERVIEW AND SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9954702 - Disclosure - FINANCIAL INSTRUMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FINANCIALINSTRUMENTSTables</Role>
      <ShortName>FINANCIAL INSTRUMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/FINANCIALINSTRUMENTS</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9954703 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONTables</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATION</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954704 - Disclosure - FAIR VALUE MEASUREMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/FAIRVALUEMEASUREMENTS</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954705 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESTables</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIES</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954706 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/DEBT</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954707 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMETables</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOME</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954708 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTables</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATION</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954709 - Disclosure - STOCK-BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/STOCKBASEDCOMPENSATIONTables</Role>
      <ShortName>STOCK-BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/STOCKBASEDCOMPENSATION</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954710 - Disclosure - EARNINGS PER COMMON SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/EARNINGSPERCOMMONSHARETables</Role>
      <ShortName>EARNINGS PER COMMON SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.bmrn.com/role/EARNINGSPERCOMMONSHARE</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954711 - Disclosure - FINANCIAL INSTRUMENTS - Schedule of Cash, Cash Equivalents and Available-for-Sale Securities by Significant Investment Category (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS - Schedule of Cash, Cash Equivalents and Available-for-Sale Securities by Significant Investment Category (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954712 - Disclosure - FINANCIAL INSTRUMENTS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FINANCIALINSTRUMENTSAdditionalInformationDetails</Role>
      <ShortName>FINANCIAL INSTRUMENTS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954713 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954714 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Property, Plant and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentDetails</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Property, Plant and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954715 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONAdditionalInformationDetails</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954716 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsDetails</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954717 - Disclosure - SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Accounts Payable and Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails</Role>
      <ShortName>SUPPLEMENTAL FINANCIAL STATEMENTS INFORMATION - Schedule of Accounts Payable and Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954718 - Disclosure - FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSFairValueofFinancialAssetsandLiabilitiesDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954719 - Disclosure - FAIR VALUE MEASUREMENTS - Liabilities Measured at Fair Value on Recurring Basis Using Level 3 Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSLiabilitiesMeasuredatFairValueonRecurringBasisUsingLevel3InputsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS - Liabilities Measured at Fair Value on Recurring Basis Using Level 3 Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954720 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESAdditionalInformationDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954721 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Schedule of Derivatives Designated as and Not Designated as Hedging Instruments Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofDerivativesDesignatedasandNotDesignatedasHedgingInstrumentsOutstandingDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Schedule of Derivatives Designated as and Not Designated as Hedging Instruments Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954722 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Fair Value Carrying Amount of Derivatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESFairValueCarryingAmountofDerivativesDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Fair Value Carrying Amount of Derivatives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954723 - Disclosure - DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Schedule of Impact of Gains and Losses from Derivatives Designated as Hedging Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DERIVATIVEINSTRUMENTSANDHEDGINGSTRATEGIESScheduleofImpactofGainsandLossesfromDerivativesDesignatedasHedgingInstrumentsDetails</Role>
      <ShortName>DERIVATIVE INSTRUMENTS AND HEDGING STRATEGIES - Schedule of Impact of Gains and Losses from Derivatives Designated as Hedging Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954724 - Disclosure - DEBT - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DEBTAdditionalInformationDetails</Role>
      <ShortName>DEBT - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954725 - Disclosure - DEBT - Schedule of Convertible Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails</Role>
      <ShortName>DEBT - Schedule of Convertible Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954726 - Disclosure - DEBT - Schedule of Interest Expense on Convertible Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails</Role>
      <ShortName>DEBT - Schedule of Interest Expense on Convertible Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954727 - Disclosure - ACCUMULATED OTHER COMPREHENSIVE INCOME - Schedule of Changes in Accumulated Balances of AOCI Including Current Period Other Comprehensive Income (Loss) and Reclassifications Out of AOCI (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEScheduleofChangesinAccumulatedBalancesofAOCIIncludingCurrentPeriodOtherComprehensiveIncomeLossandReclassificationsOutofAOCIDetails</Role>
      <ShortName>ACCUMULATED OTHER COMPREHENSIVE INCOME - Schedule of Changes in Accumulated Balances of AOCI Including Current Period Other Comprehensive Income (Loss) and Reclassifications Out of AOCI (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954728 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONAdditionalInformationDetails</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954729 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Disaggregates of Net Product Revenues by Product (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofNetProductRevenuesbyProductDetails</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Disaggregates of Net Product Revenues by Product (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954730 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Disaggregates of Total Net Product Revenues Based on Patient Location (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONDisaggregatesofTotalNetProductRevenuesBasedonPatientLocationDetails</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Disaggregates of Total Net Product Revenues Based on Patient Location (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954731 - Disclosure - REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Total Net Product Revenue Concentrations Attributed to Largest Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/REVENUECREDITCONCENTRATIONSANDGEOGRAPHICINFORMATIONTotalNetProductRevenueConcentrationsAttributedtoLargestCustomersDetails</Role>
      <ShortName>REVENUE, CREDIT CONCENTRATIONS AND GEOGRAPHIC INFORMATION - Total Net Product Revenue Concentrations Attributed to Largest Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954732 - Disclosure - STOCK-BASED COMPENSATION - Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/STOCKBASEDCOMPENSATIONExpenseDetails</Role>
      <ShortName>STOCK-BASED COMPENSATION - Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954733 - Disclosure - EARNINGS PER COMMON SHARE - Schedule of Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofEarningsPerShareDetails</Role>
      <ShortName>EARNINGS PER COMMON SHARE - Schedule of Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954734 - Disclosure - EARNINGS PER COMMON SHARE - Schedule Of Anti-Dilutive Common Stock Excluded From Computation of Diluted Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleOfAntiDilutiveCommonStockExcludedFromComputationofDilutedNetLossPerShareDetails</Role>
      <ShortName>EARNINGS PER COMMON SHARE - Schedule Of Anti-Dilutive Common Stock Excluded From Computation of Diluted Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="bmrn-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954735 - Disclosure - COMMITMENTS AND CONTINGENCIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.bmrn.com/role/COMMITMENTSANDCONTINGENCIESAdditionalInformationDetails</Role>
      <ShortName>COMMITMENTS AND CONTINGENCIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 3 fact(s) appearing in ix:hidden were eligible for transformation: bmrn:LongTermMarketableSecuritiesMaturityPeriod, ecd:TrdArrDuration -  bmrn-20230630.htm 4</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="bmrn-20230630.htm">bmrn-20230630.htm</File>
    <File>bmrn-20230630.xsd</File>
    <File>bmrn-20230630_cal.xml</File>
    <File>bmrn-20230630_def.xml</File>
    <File>bmrn-20230630_lab.xml</File>
    <File>bmrn-20230630_pre.xml</File>
    <File>bmrn-exx101xq22023.htm</File>
    <File>bmrn-exx311xq22023.htm</File>
    <File>bmrn-exx312xq22023.htm</File>
    <File>bmrn-exx321xq22023.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="809">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="10">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
