<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:9c04d0bb-54f8-4d5c-a5c0-f0d6284937c0,g:e8325a06-c240-4806-9483-c61ddfee6417-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="bmrn-20240930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_095a9b9e-b0d3-4d5a-8e81-6a7034afe29d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_095a9b9e-b0d3-4d5a-8e81-6a7034afe29d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_9af5fce2-99e2-446b-83d0-34be98b018dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_9af5fce2-99e2-446b-83d0-34be98b018dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_5702134e-f43d-4125-8e2e-4e978679d556" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_5702134e-f43d-4125-8e2e-4e978679d556" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_fad48458-30a0-42f2-a466-7a4720ce53be" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_fad48458-30a0-42f2-a466-7a4720ce53be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfRevenue_4b7fedbd-a594-437e-8bee-ba01713ac29f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostOfRevenue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_85bc5087-b31e-4ae9-9c46-c3af092b12e3" xlink:to="loc_us-gaap_CostOfRevenue_4b7fedbd-a594-437e-8bee-ba01713ac29f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_33918728-5f1c-43da-a11c-6ef9b3990d99" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_40053ce7-55d1-4362-9870-9dcde9c3a328" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_33918728-5f1c-43da-a11c-6ef9b3990d99" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_40053ce7-55d1-4362-9870-9dcde9c3a328" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_dee82a11-9363-48ac-b2f4-b3636b769db8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_33918728-5f1c-43da-a11c-6ef9b3990d99" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_dee82a11-9363-48ac-b2f4-b3636b769db8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a04726bb-cecc-4a6d-8f6b-5ac835554572" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_deda4732-2db1-4586-90db-9791b52fb05f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a04726bb-cecc-4a6d-8f6b-5ac835554572" xlink:to="loc_us-gaap_OperatingIncomeLoss_deda4732-2db1-4586-90db-9791b52fb05f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_e6b87e3e-6df2-4e83-9878-abf6589e9981" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a04726bb-cecc-4a6d-8f6b-5ac835554572" xlink:to="loc_us-gaap_InvestmentIncomeInterest_e6b87e3e-6df2-4e83-9878-abf6589e9981" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseNonoperating_023d0f17-9260-4c97-a022-a3e42d8b7dc9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseNonoperating"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a04726bb-cecc-4a6d-8f6b-5ac835554572" xlink:to="loc_us-gaap_InterestExpenseNonoperating_023d0f17-9260-4c97-a022-a3e42d8b7dc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherOperatingIncomeExpenseNet_a67c8c8d-73ae-493c-810e-48d81cc0e974" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherOperatingIncomeExpenseNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a04726bb-cecc-4a6d-8f6b-5ac835554572" xlink:to="loc_us-gaap_OtherOperatingIncomeExpenseNet_a67c8c8d-73ae-493c-810e-48d81cc0e974" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_d4693005-afb3-4275-86be-a3b70751bf76" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f4b41307-b8ba-464a-9d66-77318b5d53dd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_d4693005-afb3-4275-86be-a3b70751bf76" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_f4b41307-b8ba-464a-9d66-77318b5d53dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_a2f421ca-5516-432c-b0b9-c0e7960f7dda" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_d4693005-afb3-4275-86be-a3b70751bf76" xlink:to="loc_us-gaap_CostsAndExpenses_a2f421ca-5516-432c-b0b9-c0e7960f7dda" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="bmrn-20240930.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8dfe780b-93ed-40eb-bbcd-557bb22f08fa" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_cfe5bfd4-9017-4d1c-8e77-dfe19b14ade7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8dfe780b-93ed-40eb-bbcd-557bb22f08fa" xlink:to="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_cfe5bfd4-9017-4d1c-8e77-dfe19b14ade7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtCurrent_b5e4a372-d14b-4fe9-af6e-40b5872301e5" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8dfe780b-93ed-40eb-bbcd-557bb22f08fa" xlink:to="loc_us-gaap_ConvertibleDebtCurrent_b5e4a372-d14b-4fe9-af6e-40b5872301e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d34200c0-e20f-43ca-a8ac-0e1d101162c1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_2de9efdb-a580-45c5-a127-c1218d72dfb4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d34200c0-e20f-43ca-a8ac-0e1d101162c1" xlink:to="loc_us-gaap_LiabilitiesCurrent_2de9efdb-a580-45c5-a127-c1218d72dfb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_dd2a5404-2a99-44a1-905d-e55d95997d2f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d34200c0-e20f-43ca-a8ac-0e1d101162c1" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_dd2a5404-2a99-44a1-905d-e55d95997d2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_ff2309fe-ad0f-4b85-89e7-f8d184784841" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d34200c0-e20f-43ca-a8ac-0e1d101162c1" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_ff2309fe-ad0f-4b85-89e7-f8d184784841" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_12eea5c0-6d3f-4bf2-b6c6-b54d5e59853c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_c0a4bc40-3267-4ecb-87e9-94d4c6f9a734" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_12eea5c0-6d3f-4bf2-b6c6-b54d5e59853c" xlink:to="loc_us-gaap_Liabilities_c0a4bc40-3267-4ecb-87e9-94d4c6f9a734" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_30d163ab-5d25-43c7-93e8-9136e49b9b59" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_12eea5c0-6d3f-4bf2-b6c6-b54d5e59853c" xlink:to="loc_us-gaap_StockholdersEquity_30d163ab-5d25-43c7-93e8-9136e49b9b59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2466e47b-110e-4e47-8e05-3992d1666ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_AssetsCurrent_2466e47b-110e-4e47-8e05-3992d1666ec0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_9f4c9c4c-9146-45a8-9d9c-5dcaa14e871e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesNoncurrent_9f4c9c4c-9146-45a8-9d9c-5dcaa14e871e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_da3c106b-55e8-4f57-86b5-b412b1c479d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_da3c106b-55e8-4f57-86b5-b412b1c479d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_9d049b94-46e7-4304-b8c1-5fca299d696b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_9d049b94-46e7-4304-b8c1-5fca299d696b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_81d41f3b-b709-4029-a4cf-f13148ec86ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_Goodwill_81d41f3b-b709-4029-a4cf-f13148ec86ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_58304218-e7bc-4b06-ad40-fbd9d6b0f873" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_58304218-e7bc-4b06-ad40-fbd9d6b0f873" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_6644e07a-9127-42d8-a067-635cafdf4c4a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_498d3351-fb55-4b04-bbea-12d9a2d1e175" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_6644e07a-9127-42d8-a067-635cafdf4c4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_eb567573-df62-4250-aa6d-439fac0a92f6" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:to="loc_us-gaap_CommonStockValue_eb567573-df62-4250-aa6d-439fac0a92f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_5b6d8094-4e72-47a7-8544-f4275aa1238c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_5b6d8094-4e72-47a7-8544-f4275aa1238c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockIssuedEmployeeStockTrust_7324d424-3a4c-40ed-a214-b55b822e1649" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CommonStockIssuedEmployeeStockTrust"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:to="loc_us-gaap_CommonStockIssuedEmployeeStockTrust_7324d424-3a4c-40ed-a214-b55b822e1649" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4aa42a86-e57d-4d12-b047-7c031b2e2e84" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_4aa42a86-e57d-4d12-b047-7c031b2e2e84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d487faa7-136a-4b9e-8978-1571a36fd7fd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_6fcf4b56-fca2-44b8-84c8-e9fae02388e4" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d487faa7-136a-4b9e-8978-1571a36fd7fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_71605214-c43b-49b4-87e6-2e5f8a516689" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_71605214-c43b-49b4-87e6-2e5f8a516689" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_5a5e5440-ff8b-42e9-9c09-aae0e52bd9f7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent_5a5e5440-ff8b-42e9-9c09-aae0e52bd9f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_a2475dec-ef3f-4337-9ab9-0676293e2e4f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_a2475dec-ef3f-4337-9ab9-0676293e2e4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_49eb688e-37bc-41b3-b171-603fdbc85662" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:to="loc_us-gaap_InventoryNet_49eb688e-37bc-41b3-b171-603fdbc85662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsCurrent_c03dffbd-6d77-4bf4-9b7a-ef290fe61a8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_25016af3-7eac-4b8b-ad28-f7fe76daae35" xlink:to="loc_us-gaap_OtherAssetsCurrent_c03dffbd-6d77-4bf4-9b7a-ef290fe61a8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="bmrn-20240930.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_21adb0cc-7b3f-4e09-aebf-8918a3780641" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:to="loc_us-gaap_PaymentForContingentConsiderationLiabilityFinancingActivities_21adb0cc-7b3f-4e09-aebf-8918a3780641" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_9a6c4891-5312-4c61-a49c-ad2c9ebd3ea8" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions_9a6c4891-5312-4c61-a49c-ad2c9ebd3ea8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d94444ea-2976-40d9-abdd-4997c3c2001b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_d94444ea-2976-40d9-abdd-4997c3c2001b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_715f35b3-632d-4281-9661-8f2a775e0bf9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RepaymentsOfConvertibleDebt"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_715f35b3-632d-4281-9661-8f2a775e0bf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_30c3d185-33bc-4d67-929b-c9c93e6feca4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromPaymentsForOtherFinancingActivities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_5c6bdd43-7593-4dbb-8719-8a429f2c9dee" xlink:to="loc_us-gaap_ProceedsFromPaymentsForOtherFinancingActivities_30c3d185-33bc-4d67-929b-c9c93e6feca4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ab01a486-7e70-4db7-a7f8-7a0043332159" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0c4772bc-c698-4d73-9119-00c8219da07b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ab01a486-7e70-4db7-a7f8-7a0043332159" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0c4772bc-c698-4d73-9119-00c8219da07b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f1767ff7-ddf5-47d7-96a6-6844e70cfcd1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ab01a486-7e70-4db7-a7f8-7a0043332159" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_f1767ff7-ddf5-47d7-96a6-6844e70cfcd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_ef06e399-fe7c-4d93-b297-e89ac92a0f6c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ab01a486-7e70-4db7-a7f8-7a0043332159" xlink:to="loc_us-gaap_EffectOfExchangeRateOnCashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations_ef06e399-fe7c-4d93-b297-e89ac92a0f6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ac55a71d-3e3f-4504-be7f-2a3095d4fe77" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_ab01a486-7e70-4db7-a7f8-7a0043332159" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_ac55a71d-3e3f-4504-be7f-2a3095d4fe77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_27204de8-c899-4f93-8542-1e43c796430c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_NetIncomeLoss_27204de8-c899-4f93-8542-1e43c796430c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_d307b25d-47a6-48f3-8455-032b6b4b9a43" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_d307b25d-47a6-48f3-8455-032b6b4b9a43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_e227743d-0b3c-4a9b-a781-cbc125c38eb1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCostsAndDiscounts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_AmortizationOfFinancingCostsAndDiscounts_e227743d-0b3c-4a9b-a781-cbc125c38eb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_83902e06-6896-4f8f-ae22-41fa8b8fa1dc" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_83902e06-6896-4f8f-ae22-41fa8b8fa1dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_faa9f2c3-1fa5-4407-985f-292cf5185492" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_ShareBasedCompensation_faa9f2c3-1fa5-4407-985f-292cf5185492" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_538552e9-fcad-4e30-8438-11f9654c47d9" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_538552e9-fcad-4e30-8438-11f9654c47d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_4b8c9b1e-5390-4a25-8bfa-b1956cfdf78c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ForeignCurrencyTransactionGainLossUnrealized"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_ForeignCurrencyTransactionGainLossUnrealized_4b8c9b1e-5390-4a25-8bfa-b1956cfdf78c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_a8887442-5157-4e84-aaeb-4a6dbdb6f442" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_a8887442-5157-4e84-aaeb-4a6dbdb6f442" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_cf675deb-939b-4417-998a-0e518cd2c509" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_cf675deb-939b-4417-998a-0e518cd2c509" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_b6545e17-2cbb-470c-aa48-45873dbb8288" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_b6545e17-2cbb-470c-aa48-45873dbb8288" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_f974a8d2-4cc7-487c-9513-9ece09b93790" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentAssets_f974a8d2-4cc7-487c-9513-9ece09b93790" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_5a3a9e04-93c1-437f-85fa-be2456b2373b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentAssets_5a3a9e04-93c1-437f-85fa-be2456b2373b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_c33b4d63-cdd6-4d6c-8f16-35f735c2359b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndAccruedLiabilities_c33b4d63-cdd6-4d6c-8f16-35f735c2359b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_016e3439-e334-468b-88db-33107afafc68" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_016e3439-e334-468b-88db-33107afafc68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_794d482b-cf5c-4cd2-b0e5-4fc5dbf7903b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_794d482b-cf5c-4cd2-b0e5-4fc5dbf7903b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_AssetImpairmentChargesAndOtherNonCashAdjustments_9ae80264-0e3a-428e-aca1-04513d61bb4a" xlink:href="bmrn-20240930.xsd#bmrn_AssetImpairmentChargesAndOtherNonCashAdjustments"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_72f743f8-b1e6-4061-b037-b0228e659574" xlink:to="loc_bmrn_AssetImpairmentChargesAndOtherNonCashAdjustments_9ae80264-0e3a-428e-aca1-04513d61bb4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_332c859c-bfe2-4379-8097-9ff9fdc47347" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_332c859c-bfe2-4379-8097-9ff9fdc47347" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_ProceedsFromSaleOfNonfinancialAssets_01c5b513-2817-473e-93c4-ce5f0bfc2eb1" xlink:href="bmrn-20240930.xsd#bmrn_ProceedsFromSaleOfNonfinancialAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_bmrn_ProceedsFromSaleOfNonfinancialAssets_01c5b513-2817-473e-93c4-ce5f0bfc2eb1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_ea83f404-3663-49a8-bcf6-1da1eda8035a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsForProceedsFromOtherInvestingActivities"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_us-gaap_PaymentsForProceedsFromOtherInvestingActivities_ea83f404-3663-49a8-bcf6-1da1eda8035a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireIntangibleAssets_d2651657-829d-43f2-889d-7716a13ef680" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireIntangibleAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_us-gaap_PaymentsToAcquireIntangibleAssets_d2651657-829d-43f2-889d-7716a13ef680" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_5981748d-d20d-4c3e-9794-b67a84e931e0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_5981748d-d20d-4c3e-9794-b67a84e931e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_05c995ea-3b3e-40cc-ba52-cf312b65283f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_092ee675-0cb5-4952-985d-824cad14d291" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_05c995ea-3b3e-40cc-ba52-cf312b65283f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/FINANCIALINSTRUMENTSScheduleofCashCashEquivalentsandAvailableforSaleSecuritiesbySignificantInvestmentCategoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7dc25b8e-f31f-4f3f-90f3-497bc7378723" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_06874ff6-a841-44de-8f27-37c19523e2eb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7dc25b8e-f31f-4f3f-90f3-497bc7378723" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_06874ff6-a841-44de-8f27-37c19523e2eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_15a550ec-c95a-4357-adaf-b981111fb8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7dc25b8e-f31f-4f3f-90f3-497bc7378723" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_15a550ec-c95a-4357-adaf-b981111fb8d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a0dbe534-4389-4f6f-b257-40f4bbb1ae12" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_7dc25b8e-f31f-4f3f-90f3-497bc7378723" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a0dbe534-4389-4f6f-b257-40f4bbb1ae12" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_2cec835e-07fa-4c4e-8b9a-097aaef7c761" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_77e51655-8cfa-4f72-a530-49dd6b635c8d" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2cec835e-07fa-4c4e-8b9a-097aaef7c761" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_77e51655-8cfa-4f72-a530-49dd6b635c8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a7e85e53-812f-403b-9246-6f71e06a27fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2cec835e-07fa-4c4e-8b9a-097aaef7c761" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a7e85e53-812f-403b-9246-6f71e06a27fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_d2ab2bdf-17ab-4eb8-a1c8-451b7d1dd425" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InventoryFinishedGoodsNetOfReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_2cec835e-07fa-4c4e-8b9a-097aaef7c761" xlink:to="loc_us-gaap_InventoryFinishedGoodsNetOfReserves_d2ab2bdf-17ab-4eb8-a1c8-451b7d1dd425" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofPropertyPlantandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_dbfaee50-e8c3-4509-b961-057947f14eee" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_5df1445e-ce2a-4366-b9f3-20cf79f3e573" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_dbfaee50-e8c3-4509-b961-057947f14eee" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_5df1445e-ce2a-4366-b9f3-20cf79f3e573" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3d3f9809-927f-422e-97ea-7b1f765b7f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_dbfaee50-e8c3-4509-b961-057947f14eee" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_3d3f9809-927f-422e-97ea-7b1f765b7f8f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsNetDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsNetDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofIntangibleAssetsNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_1bab45b1-19b4-444b-87a3-a6838a7888cf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_747de664-ded4-43ab-a346-4e803e1521b0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_1bab45b1-19b4-444b-87a3-a6838a7888cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_747de664-ded4-43ab-a346-4e803e1521b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_9c28a9de-6cc1-4608-a2d4-5005397a55c0" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_1bab45b1-19b4-444b-87a3-a6838a7888cf" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_9c28a9de-6cc1-4608-a2d4-5005397a55c0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/SUPPLEMENTALFINANCIALSTATEMENTSINFORMATIONScheduleofAccountsPayableandAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent_784e3fca-1e72-45f8-90eb-c2886e22d4ad" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_AccountsPayableAndOtherAccruedLiabilitiesCurrent_784e3fca-1e72-45f8-90eb-c2886e22d4ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxesCurrent_fd8f738e-f3a3-43bf-b56d-c15a2fc7b881" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedIncomeTaxesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_AccruedIncomeTaxesCurrent_fd8f738e-f3a3-43bf-b56d-c15a2fc7b881" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilitiesCurrent_dc7c0999-872a-4e60-94b6-5bd8e8a6c0d1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DerivativeLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_DerivativeLiabilitiesCurrent_dc7c0999-872a-4e60-94b6-5bd8e8a6c0d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_70ec8986-47bc-4cf3-ae00-4971a745ce8b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_70ec8986-47bc-4cf3-ae00-4971a745ce8b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedRoyaltiesCurrent_39693c33-aa7b-44f9-8fe6-58db87fb3294" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AccruedRoyaltiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_AccruedRoyaltiesCurrent_39693c33-aa7b-44f9-8fe6-58db87fb3294" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d1bf4040-9a8d-4a95-8fc5-3fce0947166a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d1bf4040-9a8d-4a95-8fc5-3fce0947166a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccountsPayableAndAccruedLiabilities_d82bd4b5-eacd-4e2f-9210-daf2ae5f9339" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherAccountsPayableAndAccruedLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_us-gaap_OtherAccountsPayableAndAccruedLiabilities_d82bd4b5-eacd-4e2f-9210-daf2ae5f9339" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_AccruedGovernmentAndOtherRebates_33e7f380-5f77-4bed-857c-c4194538953e" xlink:href="bmrn-20240930.xsd#bmrn_AccruedGovernmentAndOtherRebates"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_bmrn_AccruedGovernmentAndOtherRebates_33e7f380-5f77-4bed-857c-c4194538953e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OperatingAndFinanceLeaseLiabilityCurrent_5d08732d-754a-4067-bec3-cd55883749a4" xlink:href="bmrn-20240930.xsd#bmrn_OperatingAndFinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent_76beb7e5-2200-4fa1-a0e2-8f3c05aa630a" xlink:to="loc_bmrn_OperatingAndFinanceLeaseLiabilityCurrent_5d08732d-754a-4067-bec3-cd55883749a4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#FAIRVALUEMEASUREMENTSDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/FAIRVALUEMEASUREMENTSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_0b24d728-75b7-48e5-ac18-c9f8114022f1" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_722a7eb4-06f2-40f0-843d-95dad74b0a01" xlink:href="bmrn-20240930.xsd#bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_0b24d728-75b7-48e5-ac18-c9f8114022f1" xlink:to="loc_bmrn_OtherLiabilitiesNoncurrentFairValueDisclosure_722a7eb4-06f2-40f0-843d-95dad74b0a01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_e62d9763-2e28-422c-95aa-72aaa6e874c3" xlink:href="bmrn-20240930.xsd#bmrn_OtherLiabilitiesCurrentFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_0b24d728-75b7-48e5-ac18-c9f8114022f1" xlink:to="loc_bmrn_OtherLiabilitiesCurrentFairValueDisclosure_e62d9763-2e28-422c-95aa-72aaa6e874c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_79404ff1-9179-40ff-8445-18fcbb428db2" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_a9f68099-4d3c-4987-8fc4-f19615123b87" xlink:href="bmrn-20240930.xsd#bmrn_OtherAssetsCurrentFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_79404ff1-9179-40ff-8445-18fcbb428db2" xlink:to="loc_bmrn_OtherAssetsCurrentFairValueDisclosure_a9f68099-4d3c-4987-8fc4-f19615123b87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_84eae1b6-ea69-41ce-818a-5865c7a3f63d" xlink:href="bmrn-20240930.xsd#bmrn_OtherAssetsNoncurrentFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_79404ff1-9179-40ff-8445-18fcbb428db2" xlink:to="loc_bmrn_OtherAssetsNoncurrentFairValueDisclosure_84eae1b6-ea69-41ce-818a-5865c7a3f63d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#DEBTScheduleofConvertibleDebtDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofConvertibleDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebt_2d295415-ba36-4458-9e6c-356511192bcd" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtCurrent_ad3ea008-93e5-477f-84b6-c2a9da130d24" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebt_2d295415-ba36-4458-9e6c-356511192bcd" xlink:to="loc_us-gaap_ConvertibleDebtCurrent_ad3ea008-93e5-477f-84b6-c2a9da130d24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_d47d0375-60bf-4cff-9c48-63390d1355bf" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebt_2d295415-ba36-4458-9e6c-356511192bcd" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_d47d0375-60bf-4cff-9c48-63390d1355bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_b20be88b-7159-4c4d-8a30-f96e0b213221" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_539a40dc-a653-471f-9d75-91656777bb04" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebtNoncurrent_b20be88b-7159-4c4d-8a30-f96e0b213221" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_539a40dc-a653-471f-9d75-91656777bb04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_0da31411-15e2-4344-9a84-39b18fc67f34" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebtNoncurrent_b20be88b-7159-4c4d-8a30-f96e0b213221" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_0da31411-15e2-4344-9a84-39b18fc67f34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtCurrent_f17988b7-db55-4bfc-8bf0-005f2b40d4ed" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ConvertibleDebtCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_f3f29d24-ab8b-4b77-8b5c-9bbcdabd3285" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebtCurrent_f17988b7-db55-4bfc-8bf0-005f2b40d4ed" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_f3f29d24-ab8b-4b77-8b5c-9bbcdabd3285" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_5db69520-9c32-4735-9ce8-36bd581af98f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ConvertibleDebtCurrent_f17988b7-db55-4bfc-8bf0-005f2b40d4ed" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_5db69520-9c32-4735-9ce8-36bd581af98f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#DEBTScheduleofInterestExpenseonConvertibleDebtDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/DEBTScheduleofInterestExpenseonConvertibleDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_7cc77016-8090-43f6-91ad-aebeda49f3ac" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebtExcludingAmortization_61c79438-a67f-4ab3-b7e2-1e721d84bb1c" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestExpenseDebtExcludingAmortization"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7cc77016-8090-43f6-91ad-aebeda49f3ac" xlink:to="loc_us-gaap_InterestExpenseDebtExcludingAmortization_61c79438-a67f-4ab3-b7e2-1e721d84bb1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_a1f78b9f-11dd-4a3f-a22c-48d1ca459d6a" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7cc77016-8090-43f6-91ad-aebeda49f3ac" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_a1f78b9f-11dd-4a3f-a22c-48d1ca459d6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfDebtDiscountPremium_6a442ed2-9a6b-4f23-880c-191111fafde4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AmortizationOfDebtDiscountPremium"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InterestExpense_7cc77016-8090-43f6-91ad-aebeda49f3ac" xlink:to="loc_us-gaap_AmortizationOfDebtDiscountPremium_6a442ed2-9a6b-4f23-880c-191111fafde4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#ACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/ACCUMULATEDOTHERCOMPREHENSIVEINCOMEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4b77bdf4-5673-43b4-9c42-3a37d20df5b7" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_97de0794-6df6-4a26-a91f-b149dec168fb" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4b77bdf4-5673-43b4-9c42-3a37d20df5b7" xlink:to="loc_us-gaap_OciBeforeReclassificationsBeforeTaxAttributableToParent_97de0794-6df6-4a26-a91f-b149dec168fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_7362e76c-7598-452a-8c4b-511077bed04f" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4b77bdf4-5673-43b4-9c42-3a37d20df5b7" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent_7362e76c-7598-452a-8c4b-511077bed04f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_12ee39f0-5cf3-452c-b244-c8bbaebab048" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_4b77bdf4-5673-43b4-9c42-3a37d20df5b7" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_12ee39f0-5cf3-452c-b244-c8bbaebab048" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/RESTRUCTURINGScheduleofRestructuringandRelatedCostsDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#RESTRUCTURINGScheduleofRestructuringandRelatedCostsDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/RESTRUCTURINGScheduleofRestructuringandRelatedCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c41dc04e-5c62-40fa-b9b2-8c785c57bcba" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_RestructuringCostsAndAssetImpairmentCharges"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetImpairmentCharges_0c0f18cf-11e7-4a68-8d03-ca3432071b80" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_AssetImpairmentCharges"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c41dc04e-5c62-40fa-b9b2-8c785c57bcba" xlink:to="loc_us-gaap_AssetImpairmentCharges_0c0f18cf-11e7-4a68-8d03-ca3432071b80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeveranceCosts1_4b52b805-c273-4575-aa04-5610690a6983" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_SeveranceCosts1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c41dc04e-5c62-40fa-b9b2-8c785c57bcba" xlink:to="loc_us-gaap_SeveranceCosts1_4b52b805-c273-4575-aa04-5610690a6983" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherRestructuringCosts_25f7445e-f094-4ca7-91ad-f849b36fd128" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_OtherRestructuringCosts"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_RestructuringCostsAndAssetImpairmentCharges_c41dc04e-5c62-40fa-b9b2-8c785c57bcba" xlink:to="loc_us-gaap_OtherRestructuringCosts_25f7445e-f094-4ca7-91ad-f849b36fd128" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofComputationofBasicandDilutedEarningsPerCommonShareDetails" xlink:type="simple" xlink:href="bmrn-20240930.xsd#EARNINGSPERCOMMONSHAREScheduleofComputationofBasicandDilutedEarningsPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.bmrn.com/role/EARNINGSPERCOMMONSHAREScheduleofComputationofBasicandDilutedEarningsPerCommonShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6250aa15-81a2-40b3-b151-b24db84d14f4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_c520391a-099d-4128-ad87-54c2e81f307b" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6250aa15-81a2-40b3-b151-b24db84d14f4" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToConversionOfDebtSecurities_c520391a-099d-4128-ad87-54c2e81f307b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5413a8b7-2a93-4402-a52b-188925b744db" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_6250aa15-81a2-40b3-b151-b24db84d14f4" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_5413a8b7-2a93-4402-a52b-188925b744db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b929e761-6233-4614-8c24-409166ad97d4" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5c5dccd3-a15b-44a4-80b9-8b0b8e0e70ae" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_InterestOnConvertibleDebtNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b929e761-6233-4614-8c24-409166ad97d4" xlink:to="loc_us-gaap_InterestOnConvertibleDebtNetOfTax_5c5dccd3-a15b-44a4-80b9-8b0b8e0e70ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_16ec8f0b-92ce-4924-a16d-34655bb32e4e" xlink:href="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b929e761-6233-4614-8c24-409166ad97d4" xlink:to="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic_16ec8f0b-92ce-4924-a16d-34655bb32e4e" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
