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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:09172e5e-8198-46c4-9363-bae551b683dc,g:ffdc8ac5-1c37-4010-88ac-e0714458a336-->
<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://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="mgnx-20211231.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_079f9a3b-fa87-4310-9f89-e3a7635f6265" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_7abafe69-3ffc-4f4a-941b-3f5840d0074e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_079f9a3b-fa87-4310-9f89-e3a7635f6265" xlink:to="loc_us-gaap_CommonStockValue_7abafe69-3ffc-4f4a-941b-3f5840d0074e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3a1194a5-7e31-482a-b345-e1dab201d611" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_079f9a3b-fa87-4310-9f89-e3a7635f6265" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3a1194a5-7e31-482a-b345-e1dab201d611" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_c811d04d-0617-4b11-848b-2ad1a3514afc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_079f9a3b-fa87-4310-9f89-e3a7635f6265" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_c811d04d-0617-4b11-848b-2ad1a3514afc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_77490c6b-ca3c-4339-b33b-9c7281233f05" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_079f9a3b-fa87-4310-9f89-e3a7635f6265" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_77490c6b-ca3c-4339-b33b-9c7281233f05" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_4bea977b-3f7b-4553-b51f-c14dc1e0d362" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_fc656351-4ba8-4954-bed6-8528fd75f1f2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4bea977b-3f7b-4553-b51f-c14dc1e0d362" xlink:to="loc_us-gaap_AccountsPayableCurrent_fc656351-4ba8-4954-bed6-8528fd75f1f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_fe542d95-3795-4d97-a942-bfedef5a8994" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4bea977b-3f7b-4553-b51f-c14dc1e0d362" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_fe542d95-3795-4d97-a942-bfedef5a8994" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRevenueCurrent_da0906a3-4f9b-47f3-9205-9efd999b51ff" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredRevenueCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4bea977b-3f7b-4553-b51f-c14dc1e0d362" xlink:to="loc_us-gaap_DeferredRevenueCurrent_da0906a3-4f9b-47f3-9205-9efd999b51ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_17c8b087-4216-4a88-88ba-b08c0effa35a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_4bea977b-3f7b-4553-b51f-c14dc1e0d362" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_17c8b087-4216-4a88-88ba-b08c0effa35a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_94df61bb-d83d-4eb4-aab5-6a927b9597c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_385a0a94-dab9-4356-a6ba-098515d86754" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_94df61bb-d83d-4eb4-aab5-6a927b9597c0" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_385a0a94-dab9-4356-a6ba-098515d86754" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_3235e7cd-e3f1-4592-b36b-4aacdcdbd945" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_94df61bb-d83d-4eb4-aab5-6a927b9597c0" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_3235e7cd-e3f1-4592-b36b-4aacdcdbd945" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_89fae407-c632-4cfb-a408-59fda977851a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_94df61bb-d83d-4eb4-aab5-6a927b9597c0" xlink:to="loc_us-gaap_LiabilitiesCurrent_89fae407-c632-4cfb-a408-59fda977851a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRevenueNoncurrent_e5f299f5-b649-42b9-bae3-2e9367434d1d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredRevenueNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_94df61bb-d83d-4eb4-aab5-6a927b9597c0" xlink:to="loc_us-gaap_DeferredRevenueNoncurrent_e5f299f5-b649-42b9-bae3-2e9367434d1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_26dc3c89-ca21-46b5-9748-068ad83357f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_44fbfbae-07ed-41e6-a48c-0d13304083bf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_26dc3c89-ca21-46b5-9748-068ad83357f5" xlink:to="loc_us-gaap_AssetsCurrent_44fbfbae-07ed-41e6-a48c-0d13304083bf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_8fe42199-88e3-42b6-8ff7-560b234f75f8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_26dc3c89-ca21-46b5-9748-068ad83357f5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_8fe42199-88e3-42b6-8ff7-560b234f75f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_08e848f1-371d-4b53-908a-7e3116fbb15d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_26dc3c89-ca21-46b5-9748-068ad83357f5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_08e848f1-371d-4b53-908a-7e3116fbb15d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ccd9995b-550b-487c-b790-7562c69001e9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fb3bebc2-958b-4103-a5d7-a6b8810b6294" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_ccd9995b-550b-487c-b790-7562c69001e9" xlink:to="loc_us-gaap_Liabilities_fb3bebc2-958b-4103-a5d7-a6b8810b6294" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4e45f01d-7bdc-4171-804c-8d5d76c12a6f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_ccd9995b-550b-487c-b790-7562c69001e9" xlink:to="loc_us-gaap_StockholdersEquity_4e45f01d-7bdc-4171-804c-8d5d76c12a6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseCurrent_2427ad46-c490-41a4-a952-b74d32474847" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:to="loc_us-gaap_PrepaidExpenseCurrent_2427ad46-c490-41a4-a952-b74d32474847" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_e08fcfe7-6c4d-41fb-853a-474a8c13185b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:to="loc_us-gaap_InventoryNet_e08fcfe7-6c4d-41fb-853a-474a8c13185b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_e63824ec-7bc8-4fb8-af8d-110dd153dea4" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Investments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:to="loc_us-gaap_Investments_e63824ec-7bc8-4fb8-af8d-110dd153dea4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_6ccb1d8b-c010-4926-8c4c-93507d9a6cec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_6ccb1d8b-c010-4926-8c4c-93507d9a6cec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a8934744-0e7d-4e6d-a05c-4194773b0ce0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_2ba58eb1-f7ee-40ab-b6f4-2b709c9f1f38" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a8934744-0e7d-4e6d-a05c-4194773b0ce0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20211231.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5b095caf-304f-4e3d-a843-1b4a66a22206" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_50992bcd-ddb2-4163-963b-157704ee50dd" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_ComprehensiveIncomeNetOfTax_5b095caf-304f-4e3d-a843-1b4a66a22206" xlink:to="loc_us-gaap_NetIncomeLoss_50992bcd-ddb2-4163-963b-157704ee50dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_bc8e299c-6eb2-4d50-91b3-43f65e4e53ea" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5b095caf-304f-4e3d-a843-1b4a66a22206" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_bc8e299c-6eb2-4d50-91b3-43f65e4e53ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_34727b7e-9aa4-497a-b1c8-bff13b5ff7b5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_2f3d2eb0-cb19-4605-ba36-20546df3521d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_34727b7e-9aa4-497a-b1c8-bff13b5ff7b5" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_2f3d2eb0-cb19-4605-ba36-20546df3521d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_12de3b9a-944b-45ec-b1a0-43dfa740926d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_34727b7e-9aa4-497a-b1c8-bff13b5ff7b5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_12de3b9a-944b-45ec-b1a0-43dfa740926d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_b97ffc13-d8e6-42ae-b5e3-2ba9cb777a0c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_34727b7e-9aa4-497a-b1c8-bff13b5ff7b5" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_b97ffc13-d8e6-42ae-b5e3-2ba9cb777a0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_9bd74ecf-ad15-457b-aa31-3394f01b475a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_2769bf68-1054-44e4-a871-0e575b5eba2b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9bd74ecf-ad15-457b-aa31-3394f01b475a" xlink:to="loc_us-gaap_Revenues_2769bf68-1054-44e4-a871-0e575b5eba2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_6ce9600d-437f-4765-8b14-825f8a5ea915" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_9bd74ecf-ad15-457b-aa31-3394f01b475a" xlink:to="loc_us-gaap_CostsAndExpenses_6ce9600d-437f-4765-8b14-825f8a5ea915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_56b4a03c-a6ae-4abb-9be3-a0a8eee67083" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5a63edf0-be3b-4673-a930-3c460579fab8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_NetIncomeLoss_56b4a03c-a6ae-4abb-9be3-a0a8eee67083" xlink:to="loc_us-gaap_OperatingIncomeLoss_5a63edf0-be3b-4673-a930-3c460579fab8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_5b0320c5-6f90-4a19-a52e-421c6ca0ad7c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_56b4a03c-a6ae-4abb-9be3-a0a8eee67083" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_5b0320c5-6f90-4a19-a52e-421c6ca0ad7c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20211231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7d494535-3adb-431b-a8b5-60b3e96155fc" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_68caefd3-2a8a-44a2-8dbc-19e6b3e5b67f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7d494535-3adb-431b-a8b5-60b3e96155fc" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_68caefd3-2a8a-44a2-8dbc-19e6b3e5b67f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_5d33b815-235c-42af-8a65-560a45fcb91c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7d494535-3adb-431b-a8b5-60b3e96155fc" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_5d33b815-235c-42af-8a65-560a45fcb91c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ed4a7d39-870c-4360-9e2e-818f11009db1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_7d494535-3adb-431b-a8b5-60b3e96155fc" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ed4a7d39-870c-4360-9e2e-818f11009db1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3249bc78-d7d8-41e8-ad0e-3d139a06172a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_0fe1e8c7-eb07-49b7-92fb-8c6c0b715434" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3249bc78-d7d8-41e8-ad0e-3d139a06172a" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_0fe1e8c7-eb07-49b7-92fb-8c6c0b715434" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_5223960a-68d4-4143-93dd-79a4685517a9" xlink:href="mgnx-20211231.xsd#mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_3249bc78-d7d8-41e8-ad0e-3d139a06172a" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_5223960a-68d4-4143-93dd-79a4685517a9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_49882487-ccb9-41e8-9dbf-e206a3ae507e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_49882487-ccb9-41e8-9dbf-e206a3ae507e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_7b14e558-bdcb-4e8a-b89c-c4056676ad2b" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_7b14e558-bdcb-4e8a-b89c-c4056676ad2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_2d67d45b-6c2d-4f4f-8a57-7e78fb36f88e" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_2d67d45b-6c2d-4f4f-8a57-7e78fb36f88e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_8789883f-ce69-4bdd-90f5-0427340713ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_ShareBasedCompensation_8789883f-ce69-4bdd-90f5-0427340713ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_7aa322b3-6bcc-4a62-a16f-70512ea8846a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_7aa322b3-6bcc-4a62-a16f-70512ea8846a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_0200e9be-d4f5-4a6f-80c7-ad156204764f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_0200e9be-d4f5-4a6f-80c7-ad156204764f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_e1afd178-0ff1-4bd7-9ccc-c8a170e6b1e3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_NetIncomeLoss_e1afd178-0ff1-4bd7-9ccc-c8a170e6b1e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_IncreaseDecreaseInLeaseLiabilities_d3901fb9-12e8-4519-b893-22555e690ddc" xlink:href="mgnx-20211231.xsd#mgnx_IncreaseDecreaseInLeaseLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_mgnx_IncreaseDecreaseInLeaseLiabilities_d3901fb9-12e8-4519-b893-22555e690ddc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_fba75107-1191-4db1-a179-0c10ca424ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_fba75107-1191-4db1-a179-0c10ca424ef2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1c62ec57-7b1f-403b-a76f-84deaea05b4a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_1c62ec57-7b1f-403b-a76f-84deaea05b4a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_751bc818-7655-4eb0-a0cb-f1cd7f457ce8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_751bc818-7655-4eb0-a0cb-f1cd7f457ce8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_f2df5249-8ac1-4622-954e-365d5c5193da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_f2df5249-8ac1-4622-954e-365d5c5193da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_2d8e62d9-a8cf-4d9c-b943-8ee6b9d2b503" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_2d8e62d9-a8cf-4d9c-b943-8ee6b9d2b503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_IncreaseDecreaseInDeferredRent_9b052dea-ee56-40ce-aadc-24fb04a087e1" xlink:href="mgnx-20211231.xsd#mgnx_IncreaseDecreaseInDeferredRent"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a417bb44-53f7-4285-8430-e8693e098b84" xlink:to="loc_mgnx_IncreaseDecreaseInDeferredRent_9b052dea-ee56-40ce-aadc-24fb04a087e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_bf3f4185-cdf5-4491-99ca-d8f88ab7a5e5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_08396d94-4df1-4c81-9dee-18d49ad0f3da" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_bf3f4185-cdf5-4491-99ca-d8f88ab7a5e5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_08396d94-4df1-4c81-9dee-18d49ad0f3da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_65172ec6-c025-433f-a6e5-3f67f4109532" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_bf3f4185-cdf5-4491-99ca-d8f88ab7a5e5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_65172ec6-c025-433f-a6e5-3f67f4109532" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d866f97b-75e6-40e3-bb02-a4ff6aa2494c" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_bf3f4185-cdf5-4491-99ca-d8f88ab7a5e5" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d866f97b-75e6-40e3-bb02-a4ff6aa2494c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/SummaryofSignificantAccountingPoliciesSummaryofFairValueMeasurementFinancialAssetandLiabilitiesDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#SummaryofSignificantAccountingPoliciesSummaryofFairValueMeasurementFinancialAssetandLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/SummaryofSignificantAccountingPoliciesSummaryofFairValueMeasurementFinancialAssetandLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_51b9c7bf-3e52-4619-978e-e9f14a979cfa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_6378ae5a-d203-4193-ae86-dc9f5bf874b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_51b9c7bf-3e52-4619-978e-e9f14a979cfa" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_6378ae5a-d203-4193-ae86-dc9f5bf874b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_19b74b31-3d15-4f9b-b210-fb2cb90893af" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_51b9c7bf-3e52-4619-978e-e9f14a979cfa" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_19b74b31-3d15-4f9b-b210-fb2cb90893af" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#MarketableSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b095e59e-d15c-4e3c-8935-cf43fb38a088" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b9d061fe-f619-474f-ba7e-1d60bf5c5fa1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b095e59e-d15c-4e3c-8935-cf43fb38a088" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b9d061fe-f619-474f-ba7e-1d60bf5c5fa1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_c024c7dd-fcad-4910-bbeb-f22e63904218" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_b095e59e-d15c-4e3c-8935-cf43fb38a088" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_c024c7dd-fcad-4910-bbeb-f22e63904218" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a94b6738-cde2-492a-aa18-ea3515458e42" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_b095e59e-d15c-4e3c-8935-cf43fb38a088" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a94b6738-cde2-492a-aa18-ea3515458e42" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/PropertyEquipmentandSoftwareDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#PropertyEquipmentandSoftwareDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/PropertyEquipmentandSoftwareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_cc1603f1-8fed-47e8-9eca-a57e8fcd20c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_8b25ebec-e82a-4413-9a5e-269b8673bebe" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_cc1603f1-8fed-47e8-9eca-a57e8fcd20c0" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_8b25ebec-e82a-4413-9a5e-269b8673bebe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9ddb8181-87e0-4e53-9002-0173ab8036a2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_cc1603f1-8fed-47e8-9eca-a57e8fcd20c0" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_9ddb8181-87e0-4e53-9002-0173ab8036a2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/LeasesCostsDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#LeasesCostsDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/LeasesCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_796311e6-d666-43b3-9f80-4c0618e4e00a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_d63c7991-4589-4ccb-bf7f-f177fcbb7766" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_796311e6-d666-43b3-9f80-4c0618e4e00a" xlink:to="loc_us-gaap_SubleaseIncome_d63c7991-4589-4ccb-bf7f-f177fcbb7766" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_2d25aab6-1f6f-4fb0-8db5-baa4adebe6c0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_796311e6-d666-43b3-9f80-4c0618e4e00a" xlink:to="loc_us-gaap_OperatingLeaseCost_2d25aab6-1f6f-4fb0-8db5-baa4adebe6c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_df4d904e-e7eb-46f7-a92a-9968f6653bc9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_796311e6-d666-43b3-9f80-4c0618e4e00a" xlink:to="loc_us-gaap_VariableLeaseCost_df4d904e-e7eb-46f7-a92a-9968f6653bc9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#LeasesMaturitiesofOperatingLeaseLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_62eccfb6-78fb-4a3d-910c-57da5644bf20" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_62eccfb6-78fb-4a3d-910c-57da5644bf20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8d977aed-a04b-4f13-914a-560b2073d251" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_8d977aed-a04b-4f13-914a-560b2073d251" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5ab814b5-4198-461b-95a1-2fe09a4521b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_5ab814b5-4198-461b-95a1-2fe09a4521b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_d1504091-48ba-4e5f-99ad-4a087ae5a169" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_d1504091-48ba-4e5f-99ad-4a087ae5a169" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_b49096c2-729c-496c-b1ba-8e5da1a57b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_b49096c2-729c-496c-b1ba-8e5da1a57b3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_4424a211-3b5a-47ed-a5e5-5cf20604a892" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c27d400-9ad1-4c1b-a8d5-14bb3a02b4e1" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_4424a211-3b5a-47ed-a5e5-5cf20604a892" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1" xlink:type="simple" xlink:href="mgnx-20211231.xsd#LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/LeasesMaturitiesofOperatingLeaseLiabilitiesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_75f1be14-1a65-4c5d-8fab-295ba6d3a043" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_ca3d3f98-8dec-47bc-aa15-de8f24fa80cf" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_75f1be14-1a65-4c5d-8fab-295ba6d3a043" xlink:to="loc_us-gaap_OperatingLeaseLiability_ca3d3f98-8dec-47bc-aa15-de8f24fa80cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_1b9a7f63-e17d-4b5d-8fae-7afd892ba0e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_75f1be14-1a65-4c5d-8fab-295ba6d3a043" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_1b9a7f63-e17d-4b5d-8fae-7afd892ba0e8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/IncomeTaxesComponentsoftheCompanysDeferredTaxAssetsLiabilitiesDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#IncomeTaxesComponentsoftheCompanysDeferredTaxAssetsLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/IncomeTaxesComponentsoftheCompanysDeferredTaxAssetsLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_6b21e123-e380-4844-8190-a7cb0a100683" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_4d6c26b7-db6b-4b2d-a2dd-76ce5c33fff0" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_6b21e123-e380-4844-8190-a7cb0a100683" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_4d6c26b7-db6b-4b2d-a2dd-76ce5c33fff0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_6ee0db37-b846-48e6-b1b3-a7b77e736547" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_6b21e123-e380-4844-8190-a7cb0a100683" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_6ee0db37-b846-48e6-b1b3-a7b77e736547" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic_e4b62f23-2ae4-45c5-99b3-43a4346bd695" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsDomestic_e4b62f23-2ae4-45c5-99b3-43a4346bd695" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal_92e98cbf-6cf3-4445-ae50-eefabacf8fa8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal_92e98cbf-6cf3-4445-ae50-eefabacf8fa8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_996c93e0-c939-402c-b4f3-9141cd219662" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_996c93e0-c939-402c-b4f3-9141cd219662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_c2412b23-ad1d-492f-9bd8-b558733ed83d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsOther_c2412b23-ad1d-492f-9bd8-b558733ed83d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsDeferredIncome_3d7be34b-4da3-4900-a24a-302f950f16fa" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsDeferredIncome"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsDeferredIncome_3d7be34b-4da3-4900-a24a-302f950f16fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_536ff34f-7eba-49d9-bf86-2b588f7cf3ef" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_536ff34f-7eba-49d9-bf86-2b588f7cf3ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_DeferredTaxAssetsOperatingLeaseLiabilities_93ac7be7-2a7c-440e-aac6-9d603b82cfa7" xlink:href="mgnx-20211231.xsd#mgnx_DeferredTaxAssetsOperatingLeaseLiabilities"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_0158fdfb-cb01-4f62-87b9-558712dd9660" xlink:to="loc_mgnx_DeferredTaxAssetsOperatingLeaseLiabilities_93ac7be7-2a7c-440e-aac6-9d603b82cfa7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_2a1db352-8e96-45c3-88ff-fd7190110c88" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_3bd31a6d-ab3f-4ed6-88ee-f3c7949e95ab" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a1db352-8e96-45c3-88ff-fd7190110c88" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_3bd31a6d-ab3f-4ed6-88ee-f3c7949e95ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets_28b3af9d-2e0b-49ba-9843-e9a4e3fa16dc" xlink:href="mgnx-20211231.xsd#mgnx_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a1db352-8e96-45c3-88ff-fd7190110c88" xlink:to="loc_mgnx_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets_28b3af9d-2e0b-49ba-9843-e9a4e3fa16dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_e0b5bb19-c901-474e-864c-e6fc65e0ef5a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxLiabilitiesPrepaidExpenses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_2a1db352-8e96-45c3-88ff-fd7190110c88" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPrepaidExpenses_e0b5bb19-c901-474e-864c-e6fc65e0ef5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_46493518-cb78-4554-953b-24c2ef482430" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_30459dcf-341b-401e-9029-a91ce2efd105" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_46493518-cb78-4554-953b-24c2ef482430" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_30459dcf-341b-401e-9029-a91ce2efd105" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c26ff603-bae9-444b-bf9d-d45ba15b7d65" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_46493518-cb78-4554-953b-24c2ef482430" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_c26ff603-bae9-444b-bf9d-d45ba15b7d65" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/IncomeTaxesReconciliationofReportedEstimatedIncomeTaxBenefitDetails" xlink:type="simple" xlink:href="mgnx-20211231.xsd#IncomeTaxesReconciliationofReportedEstimatedIncomeTaxBenefitDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/IncomeTaxesReconciliationofReportedEstimatedIncomeTaxBenefitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_01733506-b298-4bf2-88a3-fecc49203f5a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_01733506-b298-4bf2-88a3-fecc49203f5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_45b75b96-bfff-47f4-a49e-ef6c6df29a13" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_45b75b96-bfff-47f4-a49e-ef6c6df29a13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustmentsAmount_e3811d76-f63d-4da2-9154-d5d396de523d" xlink:href="mgnx-20211231.xsd#mgnx_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustmentsAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_mgnx_EffectiveIncomeTaxRateReconciliationDeferredTaxAdjustmentsAmount_e3811d76-f63d-4da2-9154-d5d396de523d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_c873d784-043f-41bf-9af6-001a3d9f3141" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_c873d784-043f-41bf-9af6-001a3d9f3141" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_8c548d12-75c8-4918-8d6c-d264ed017a6d" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsOther"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_8c548d12-75c8-4918-8d6c-d264ed017a6d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationOtherReconcilingItems_52e6914f-dc65-490e-88d0-3363e142a2eb" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationOtherReconcilingItems"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationOtherReconcilingItems_52e6914f-dc65-490e-88d0-3363e142a2eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_a7960191-9cc2-42f9-b6af-d4281f0aa410" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_a7960191-9cc2-42f9-b6af-d4281f0aa410" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_0d775f3b-77f1-4826-b353-10995d0c3be8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_ae2f4a30-21c6-4dfd-9bf4-4f63bf8b9026" xlink:to="loc_us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance_0d775f3b-77f1-4826-b353-10995d0c3be8" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
