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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:1bd791be-5155-40b4-b9a0-bccec8bc4c7f,g:90cbb752-e1e3-4609-a8e8-bbefff2b5852-->
<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-20220331.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_e6098b19-5832-46b8-a088-093e4336a1db" 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_Investments_279a46f8-21d6-4cd3-bd28-d089a8ebed67" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_Investments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e6098b19-5832-46b8-a088-093e4336a1db" xlink:to="loc_us-gaap_Investments_279a46f8-21d6-4cd3-bd28-d089a8ebed67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3073a723-d212-4a90-9070-37d21e105502" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e6098b19-5832-46b8-a088-093e4336a1db" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_3073a723-d212-4a90-9070-37d21e105502" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_f9790c85-31f9-4f3c-bf97-4403a3b49184" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_e6098b19-5832-46b8-a088-093e4336a1db" xlink:to="loc_us-gaap_InventoryNet_f9790c85-31f9-4f3c-bf97-4403a3b49184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_e844b849-f470-4bf4-9399-cbd3545359e4" 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_e6098b19-5832-46b8-a088-093e4336a1db" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_e844b849-f470-4bf4-9399-cbd3545359e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9e5f5f4d-d313-424a-b7fe-980aae650070" 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_e6098b19-5832-46b8-a088-093e4336a1db" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_9e5f5f4d-d313-424a-b7fe-980aae650070" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_8d350f1b-164b-4d49-aba4-35b0e9ea671e" 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_829816fc-4881-4391-bd30-41914e875c04" 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_8d350f1b-164b-4d49-aba4-35b0e9ea671e" xlink:to="loc_us-gaap_AccountsPayableCurrent_829816fc-4881-4391-bd30-41914e875c04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_4c2dddc5-dc16-458d-a024-f98979836129" 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_8d350f1b-164b-4d49-aba4-35b0e9ea671e" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_4c2dddc5-dc16-458d-a024-f98979836129" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_08a3e8b5-f360-4378-bdf9-cd6de3d524e8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_8d350f1b-164b-4d49-aba4-35b0e9ea671e" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_08a3e8b5-f360-4378-bdf9-cd6de3d524e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_9091fb54-991e-471f-b1fd-a0417464c556" 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_8d350f1b-164b-4d49-aba4-35b0e9ea671e" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_9091fb54-991e-471f-b1fd-a0417464c556" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_d6ab9584-0d27-4e6b-b4fe-ecd5565142bf" 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_LiabilitiesCurrent_a321e693-54b4-4459-a2c3-bbc40c60a840" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_d6ab9584-0d27-4e6b-b4fe-ecd5565142bf" xlink:to="loc_us-gaap_LiabilitiesCurrent_a321e693-54b4-4459-a2c3-bbc40c60a840" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_6b74099e-ceae-4276-afd9-b66cbe993fb4" 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_d6ab9584-0d27-4e6b-b4fe-ecd5565142bf" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_6b74099e-ceae-4276-afd9-b66cbe993fb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_91dc6319-3db3-4823-aca8-a1c6fd80fd30" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d6ab9584-0d27-4e6b-b4fe-ecd5565142bf" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_91dc6319-3db3-4823-aca8-a1c6fd80fd30" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_cc427481-fa5c-4356-8a5a-21cd3de027ca" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d6ab9584-0d27-4e6b-b4fe-ecd5565142bf" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_cc427481-fa5c-4356-8a5a-21cd3de027ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_87cae884-6b88-4f01-8d9a-f36058c93f8c" 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_c3367d2d-08e4-46fd-94c1-cc35d189d9ac" 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_87cae884-6b88-4f01-8d9a-f36058c93f8c" xlink:to="loc_us-gaap_AssetsCurrent_c3367d2d-08e4-46fd-94c1-cc35d189d9ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_dfe5e9a6-b137-440e-8487-028dc0c3ce83" 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_87cae884-6b88-4f01-8d9a-f36058c93f8c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_dfe5e9a6-b137-440e-8487-028dc0c3ce83" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_db6abcfb-7411-4305-af7f-2da2ee917aba" 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_87cae884-6b88-4f01-8d9a-f36058c93f8c" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_db6abcfb-7411-4305-af7f-2da2ee917aba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e9d8682c-b676-4a5d-9c85-e70a69488499" 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_554a6351-9823-4976-bd23-e55d4ea16eeb" 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_e9d8682c-b676-4a5d-9c85-e70a69488499" xlink:to="loc_us-gaap_CommonStockValue_554a6351-9823-4976-bd23-e55d4ea16eeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_b6344e2b-e2ab-466d-878f-06bdab3cd202" 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_e9d8682c-b676-4a5d-9c85-e70a69488499" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_b6344e2b-e2ab-466d-878f-06bdab3cd202" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a9d7e4c5-1353-47db-84e1-a6762dc671ec" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e9d8682c-b676-4a5d-9c85-e70a69488499" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_a9d7e4c5-1353-47db-84e1-a6762dc671ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b82f0f98-da15-4eb4-a6d0-d617a8612bc8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_e9d8682c-b676-4a5d-9c85-e70a69488499" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_b82f0f98-da15-4eb4-a6d0-d617a8612bc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_3b8a0473-ee8e-4884-ab7a-a0f8379e6a3d" 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_9a346b63-140d-4c23-a2da-c8d4ce5b3cd5" 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_3b8a0473-ee8e-4884-ab7a-a0f8379e6a3d" xlink:to="loc_us-gaap_Liabilities_9a346b63-140d-4c23-a2da-c8d4ce5b3cd5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e8965c41-2512-4851-9cec-74f8414a0a4a" 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_3b8a0473-ee8e-4884-ab7a-a0f8379e6a3d" xlink:to="loc_us-gaap_StockholdersEquity_e8965c41-2512-4851-9cec-74f8414a0a4a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20220331.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_21b85dd0-2b8d-4eab-9757-920e717ba86b" 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_CostOfGoodsAndServicesSold_76b2cd9d-033e-4486-8253-5914cc57c531" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_21b85dd0-2b8d-4eab-9757-920e717ba86b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_76b2cd9d-033e-4486-8253-5914cc57c531" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_e976009d-b4f5-40c7-8640-0625fd624862" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_21b85dd0-2b8d-4eab-9757-920e717ba86b" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_e976009d-b4f5-40c7-8640-0625fd624862" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_ef5fc9d5-0e34-4f56-a9c8-7bd4539d54b8" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_21b85dd0-2b8d-4eab-9757-920e717ba86b" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_ef5fc9d5-0e34-4f56-a9c8-7bd4539d54b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_966cb521-d9a8-47e8-983a-1e1a03926ca2" 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_65bed59a-07d7-484b-a4b8-a58bbdb518e1" 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_966cb521-d9a8-47e8-983a-1e1a03926ca2" xlink:to="loc_us-gaap_NetIncomeLoss_65bed59a-07d7-484b-a4b8-a58bbdb518e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d544acf3-c501-433d-b4f8-99a738a954af" 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_966cb521-d9a8-47e8-983a-1e1a03926ca2" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d544acf3-c501-433d-b4f8-99a738a954af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_938331a4-b80c-4a7e-ba5e-4a9594d95c84" 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_149306fe-0fed-472f-b5af-f7b161c1982e" 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_938331a4-b80c-4a7e-ba5e-4a9594d95c84" xlink:to="loc_us-gaap_Revenues_149306fe-0fed-472f-b5af-f7b161c1982e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_3612fb76-8397-49b6-be3d-930d4ad52975" 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_938331a4-b80c-4a7e-ba5e-4a9594d95c84" xlink:to="loc_us-gaap_CostsAndExpenses_3612fb76-8397-49b6-be3d-930d4ad52975" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9846fe30-f333-4272-91c7-7dc93a87a6b0" 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_dfbbf7e3-3101-4540-bc5c-1fca1c6b4e11" 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_9846fe30-f333-4272-91c7-7dc93a87a6b0" xlink:to="loc_us-gaap_OperatingIncomeLoss_dfbbf7e3-3101-4540-bc5c-1fca1c6b4e11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_eba21448-fd93-42f5-b917-a2b83425b316" 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_9846fe30-f333-4272-91c7-7dc93a87a6b0" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_eba21448-fd93-42f5-b917-a2b83425b316" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20220331.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_1a5c42a0-218d-4224-8c77-5025c0a2bf82" 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_a2745be8-f14f-4aa9-a41e-3f389556b9dc" 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_1a5c42a0-218d-4224-8c77-5025c0a2bf82" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_a2745be8-f14f-4aa9-a41e-3f389556b9dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_255ecaab-2e7c-4907-aa0c-4d01224b99b4" 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_1a5c42a0-218d-4224-8c77-5025c0a2bf82" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_255ecaab-2e7c-4907-aa0c-4d01224b99b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0798037a-3156-4a5c-9429-ed445d1abb13" 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_1a5c42a0-218d-4224-8c77-5025c0a2bf82" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0798037a-3156-4a5c-9429-ed445d1abb13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" 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_NetIncomeLoss_5c926d0e-55d7-450a-a260-5fbc90ce00c2" 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_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_NetIncomeLoss_5c926d0e-55d7-450a-a260-5fbc90ce00c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_3ba45411-2e40-4c81-a779-adada7f7bd0a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_3ba45411-2e40-4c81-a779-adada7f7bd0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_b52dbdfd-a1a4-42e5-8c84-ba87749c0a64" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_b52dbdfd-a1a4-42e5-8c84-ba87749c0a64" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_bec6ee18-cec3-410e-bf15-d5a9c6f64774" 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_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_ShareBasedCompensation_bec6ee18-cec3-410e-bf15-d5a9c6f64774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_3b9fe962-9ee5-4a4c-9980-2e626dee8a3f" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_3b9fe962-9ee5-4a4c-9980-2e626dee8a3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_84a0b185-b056-4d16-8193-459a7f70f659" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_84a0b185-b056-4d16-8193-459a7f70f659" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_e9cbfb70-af2d-47a7-bd79-b2a66978df41" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_e9cbfb70-af2d-47a7-bd79-b2a66978df41" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_16035af3-e7b8-4dd4-a254-a68c401c0256" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_16035af3-e7b8-4dd4-a254-a68c401c0256" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_feccb41f-16c0-447c-ad90-91ee7769d8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_feccb41f-16c0-447c-ad90-91ee7769d8b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_9b4a4719-44b5-40b9-9e74-08049d23ea6a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_9b4a4719-44b5-40b9-9e74-08049d23ea6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_52491d33-d112-4966-a6eb-cac28d6ba915" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_52491d33-d112-4966-a6eb-cac28d6ba915" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_de307735-c83a-4ddb-ae55-b2ebc34eaa8a" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_de307735-c83a-4ddb-ae55-b2ebc34eaa8a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_e88ab40b-ebed-47f7-9423-8d80aeca9109" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f43f68ed-f705-4125-be3f-2e9f45484b1a" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_e88ab40b-ebed-47f7-9423-8d80aeca9109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_be2e9c6d-4ed5-4f42-ba06-5b51aca07cfb" 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_0421b7ca-9cca-45ef-81a2-d8eceb88d64c" 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_be2e9c6d-4ed5-4f42-ba06-5b51aca07cfb" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_0421b7ca-9cca-45ef-81a2-d8eceb88d64c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_558f49bb-4411-499f-ae88-bea2713e5963" 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_be2e9c6d-4ed5-4f42-ba06-5b51aca07cfb" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_558f49bb-4411-499f-ae88-bea2713e5963" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_82851fe5-cf39-4276-a98f-6a2e5b02ae9c" 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_be2e9c6d-4ed5-4f42-ba06-5b51aca07cfb" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_82851fe5-cf39-4276-a98f-6a2e5b02ae9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_21e30345-ae4f-4552-90c8-106495651f05" 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_2a416398-fbe7-4d11-a350-6be6d2819d79" 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_21e30345-ae4f-4552-90c8-106495651f05" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_2a416398-fbe7-4d11-a350-6be6d2819d79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_81d7a3b1-7ddc-4e9a-bdef-85467fdc4717" xlink:href="mgnx-20220331.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_21e30345-ae4f-4552-90c8-106495651f05" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_81d7a3b1-7ddc-4e9a-bdef-85467fdc4717" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="mgnx-20220331.xsd#FairValueofFinancialInstrumentsDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_987cd3ce-c3be-47a1-8bd1-84ebdfc5a0eb" 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_c27835f2-7f02-40e2-923b-0ffba1b2db98" 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_987cd3ce-c3be-47a1-8bd1-84ebdfc5a0eb" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_c27835f2-7f02-40e2-923b-0ffba1b2db98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_289428e3-a307-4fa2-96e9-d9988b9911de" 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_987cd3ce-c3be-47a1-8bd1-84ebdfc5a0eb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_289428e3-a307-4fa2-96e9-d9988b9911de" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20220331.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_d55095a7-75d2-409b-829b-a852a6120d30" 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_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b125ea03-4d60-4d38-b4b9-dc4ca112f0c9" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_d55095a7-75d2-409b-829b-a852a6120d30" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_b125ea03-4d60-4d38-b4b9-dc4ca112f0c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_6e2072bf-48d7-4970-a16f-faef03daf450" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.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_d55095a7-75d2-409b-829b-a852a6120d30" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_6e2072bf-48d7-4970-a16f-faef03daf450" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_70725e6f-0dfb-4f2a-b414-aa9b31393dad" 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_d55095a7-75d2-409b-829b-a852a6120d30" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_70725e6f-0dfb-4f2a-b414-aa9b31393dad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryNetDetails" xlink:type="simple" xlink:href="mgnx-20220331.xsd#InventoryNetDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/InventoryNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_8b1008d9-b98d-4134-bc8d-735a8955c4f5" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_0205e312-3dc1-41df-b051-ddd5c16db8c2" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryWorkInProcess"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_8b1008d9-b98d-4134-bc8d-735a8955c4f5" xlink:to="loc_us-gaap_InventoryWorkInProcess_0205e312-3dc1-41df-b051-ddd5c16db8c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_084c87fb-6687-4df2-a00d-98eac48692b3" xlink:href="https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_8b1008d9-b98d-4134-bc8d-735a8955c4f5" xlink:to="loc_us-gaap_InventoryFinishedGoods_084c87fb-6687-4df2-a00d-98eac48692b3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
