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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:c76f9653-d31d-4b72-a3cc-7cc008424052,g:58338f7a-a7b2-4bbd-85aa-a2b62be307be-->
<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-20220630.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_545eb7c2-82f2-468a-a63b-72904b466966" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_19ba1a5d-eee4-4321-aee8-170d807bdf08" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_545eb7c2-82f2-468a-a63b-72904b466966" xlink:to="loc_us-gaap_Liabilities_19ba1a5d-eee4-4321-aee8-170d807bdf08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_a220fe97-be0b-4b59-a796-87fa2f4bece2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_545eb7c2-82f2-468a-a63b-72904b466966" xlink:to="loc_us-gaap_StockholdersEquity_a220fe97-be0b-4b59-a796-87fa2f4bece2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_321da9cd-c122-4861-9c18-90f1351a88c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_9770dca1-8b0e-49b7-8755-800f8d397ded" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_321da9cd-c122-4861-9c18-90f1351a88c9" xlink:to="loc_us-gaap_AssetsCurrent_9770dca1-8b0e-49b7-8755-800f8d397ded" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_10c5f2fa-1b5a-43a6-b1d6-ee5de13fcc98" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_321da9cd-c122-4861-9c18-90f1351a88c9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_10c5f2fa-1b5a-43a6-b1d6-ee5de13fcc98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_e5a17975-d697-4f5d-b2a5-8cc9ec6ae104" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_321da9cd-c122-4861-9c18-90f1351a88c9" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_e5a17975-d697-4f5d-b2a5-8cc9ec6ae104" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_d9e7792d-6e67-4a91-932a-fdb2dc75214a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:to="loc_us-gaap_Investments_d9e7792d-6e67-4a91-932a-fdb2dc75214a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_8124a004-102f-44db-81f5-be1e9697a742" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_8124a004-102f-44db-81f5-be1e9697a742" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_3728efd0-4795-42d4-aafe-a1143963675c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:to="loc_us-gaap_InventoryNet_3728efd0-4795-42d4-aafe-a1143963675c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_5bdccc04-caef-4852-8185-eb445ef0e4e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_5bdccc04-caef-4852-8185-eb445ef0e4e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ccdc0ccf-596b-4a6d-ba8e-009d147fc263" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_5d6fc9c4-dc49-461d-ab12-5296ec78869f" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_ccdc0ccf-596b-4a6d-ba8e-009d147fc263" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_482842a0-3ea1-49eb-958b-e08cff2ad448" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_48daa02a-4639-4330-b4fc-4b7235770ab9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_482842a0-3ea1-49eb-958b-e08cff2ad448" xlink:to="loc_us-gaap_CommonStockValue_48daa02a-4639-4330-b4fc-4b7235770ab9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_779d1512-5aba-404d-924d-39f601ea7979" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_482842a0-3ea1-49eb-958b-e08cff2ad448" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_779d1512-5aba-404d-924d-39f601ea7979" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d300708d-88b1-471b-89b4-e2b6e63b3499" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_482842a0-3ea1-49eb-958b-e08cff2ad448" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_d300708d-88b1-471b-89b4-e2b6e63b3499" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_23c34908-3b79-406d-81f4-7e3f7d707f1f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_482842a0-3ea1-49eb-958b-e08cff2ad448" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_23c34908-3b79-406d-81f4-7e3f7d707f1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0c39295a-5950-441a-bf03-aeb8ee32caa0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_ac8626b4-a617-4be4-8131-66154c45fa5a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c39295a-5950-441a-bf03-aeb8ee32caa0" xlink:to="loc_us-gaap_AccountsPayableCurrent_ac8626b4-a617-4be4-8131-66154c45fa5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_3f9fd199-d252-418a-9564-625e57878ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c39295a-5950-441a-bf03-aeb8ee32caa0" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_3f9fd199-d252-418a-9564-625e57878ecc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_cf144c3c-252f-4f0f-9cb4-b8f2bff89d19" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c39295a-5950-441a-bf03-aeb8ee32caa0" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_cf144c3c-252f-4f0f-9cb4-b8f2bff89d19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_fe55e67f-3bbc-47fc-b241-b974e7ad452d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_0c39295a-5950-441a-bf03-aeb8ee32caa0" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_fe55e67f-3bbc-47fc-b241-b974e7ad452d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_12541e0e-ab2d-4880-a3f7-a0f5b8c676c9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_152fc0bc-d267-43cf-82df-c6b5e6c82a5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_12541e0e-ab2d-4880-a3f7-a0f5b8c676c9" xlink:to="loc_us-gaap_LiabilitiesCurrent_152fc0bc-d267-43cf-82df-c6b5e6c82a5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_b44d952f-e37b-42b3-9e2d-834934433c72" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_12541e0e-ab2d-4880-a3f7-a0f5b8c676c9" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_b44d952f-e37b-42b3-9e2d-834934433c72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_55431204-a373-48c7-aff3-79e6185b0b60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_12541e0e-ab2d-4880-a3f7-a0f5b8c676c9" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_55431204-a373-48c7-aff3-79e6185b0b60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_653f72bd-914d-4796-9146-ed2c643f9366" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_12541e0e-ab2d-4880-a3f7-a0f5b8c676c9" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_653f72bd-914d-4796-9146-ed2c643f9366" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20220630.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_9fb2c02a-b0e1-4819-8ac7-6ebd03329b99" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_30dab748-16d7-42b3-986f-7efa629dea29" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_9fb2c02a-b0e1-4819-8ac7-6ebd03329b99" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_30dab748-16d7-42b3-986f-7efa629dea29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_db5d2418-9e51-4a75-abe5-1184db249443" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_9fb2c02a-b0e1-4819-8ac7-6ebd03329b99" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_db5d2418-9e51-4a75-abe5-1184db249443" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_CostOfManufacturingServices_bb54fccd-fa75-4cff-bfff-66d4ec7cad0f" xlink:href="mgnx-20220630.xsd#mgnx_CostOfManufacturingServices"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_9fb2c02a-b0e1-4819-8ac7-6ebd03329b99" xlink:to="loc_mgnx_CostOfManufacturingServices_bb54fccd-fa75-4cff-bfff-66d4ec7cad0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_b71b8b0d-accf-41cd-abd1-b8fe5ca0af4d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_9fb2c02a-b0e1-4819-8ac7-6ebd03329b99" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_b71b8b0d-accf-41cd-abd1-b8fe5ca0af4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a24fa830-420b-4297-8760-dc5adac72d05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_ee6df1df-ad2c-48fc-b9e9-f511386ebd17" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a24fa830-420b-4297-8760-dc5adac72d05" xlink:to="loc_us-gaap_Revenues_ee6df1df-ad2c-48fc-b9e9-f511386ebd17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_30bcf5f9-2a14-4195-bed7-7aff4c98d358" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a24fa830-420b-4297-8760-dc5adac72d05" xlink:to="loc_us-gaap_CostsAndExpenses_30bcf5f9-2a14-4195-bed7-7aff4c98d358" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_da5885e6-85b3-46c0-89c2-17153a8d6a24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_df06443b-f72f-4657-aa66-b9e73355c705" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_da5885e6-85b3-46c0-89c2-17153a8d6a24" xlink:to="loc_us-gaap_OperatingIncomeLoss_df06443b-f72f-4657-aa66-b9e73355c705" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_a1f1669b-f305-477f-b743-615a0a4554bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_da5885e6-85b3-46c0-89c2-17153a8d6a24" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_a1f1669b-f305-477f-b743-615a0a4554bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_c63b5ee6-9746-476f-8e03-5ca04c44cf18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_9ef24d57-9a21-43c4-a6a1-a2f83a7a99c5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c63b5ee6-9746-476f-8e03-5ca04c44cf18" xlink:to="loc_us-gaap_NetIncomeLoss_9ef24d57-9a21-43c4-a6a1-a2f83a7a99c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0305a22e-d319-44fd-be80-2adbfe1d7f77" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_c63b5ee6-9746-476f-8e03-5ca04c44cf18" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_0305a22e-d319-44fd-be80-2adbfe1d7f77" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20220630.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4ac3cf80-7f60-4dd6-a0f9-ef3aaf58636d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_f7763b58-5ed8-4605-8b5d-14427b0eb7c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4ac3cf80-7f60-4dd6-a0f9-ef3aaf58636d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_f7763b58-5ed8-4605-8b5d-14427b0eb7c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_474d2fae-ccb4-4ac0-8cec-df234d78b888" xlink:href="mgnx-20220630.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_4ac3cf80-7f60-4dd6-a0f9-ef3aaf58636d" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_474d2fae-ccb4-4ac0-8cec-df234d78b888" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_42072edd-d56d-4e89-b033-d673320d2356" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_a2130782-a432-4b77-9613-81b4e750804a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_42072edd-d56d-4e89-b033-d673320d2356" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_a2130782-a432-4b77-9613-81b4e750804a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_2040a80f-121d-45e9-a4dd-15dc9f9a5832" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_42072edd-d56d-4e89-b033-d673320d2356" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_2040a80f-121d-45e9-a4dd-15dc9f9a5832" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_efcf84ae-e46d-4bc6-afbc-e29b6f535496" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_42072edd-d56d-4e89-b033-d673320d2356" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_efcf84ae-e46d-4bc6-afbc-e29b6f535496" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_1b80a7c0-53e0-4ae2-9612-de89dcf43e1a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_1b80a7c0-53e0-4ae2-9612-de89dcf43e1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_bc2f53e2-c78d-434c-9763-7cb2a3c4490a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_bc2f53e2-c78d-434c-9763-7cb2a3c4490a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_0ab33e1b-449a-4d59-bac0-6889a68bfcd8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_NetIncomeLoss_0ab33e1b-449a-4d59-bac0-6889a68bfcd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_9d3e97cd-d705-43c5-b02e-ab407fdfb68b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_9d3e97cd-d705-43c5-b02e-ab407fdfb68b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_4848b1f5-f0e5-4866-8848-f98725ba812f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_4848b1f5-f0e5-4866-8848-f98725ba812f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_e9189bca-ec61-48fa-a181-76284ec3155f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_e9189bca-ec61-48fa-a181-76284ec3155f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_ac3cd9cc-fa73-4ded-9d94-e887c2bb4ecb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_ShareBasedCompensation_ac3cd9cc-fa73-4ded-9d94-e887c2bb4ecb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_af5298d3-bdb4-43c8-b7f3-6e01763d598d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_af5298d3-bdb4-43c8-b7f3-6e01763d598d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_a7232b58-e7ae-488e-910d-e90708c203b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_a7232b58-e7ae-488e-910d-e90708c203b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_38c03a47-159c-4fcc-b85b-ba40ac965a7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_38c03a47-159c-4fcc-b85b-ba40ac965a7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_38a14dc1-7b1b-47a2-bc0e-c33b01e0dda5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_38a14dc1-7b1b-47a2-bc0e-c33b01e0dda5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_fdfb14c8-6d6a-403c-900d-83346fe0f925" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_fdfb14c8-6d6a-403c-900d-83346fe0f925" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_3ef8e5f5-f37e-4b34-9a94-cd1e60808028" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_7609cfcc-6ec6-453c-8629-42bb39e68654" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_3ef8e5f5-f37e-4b34-9a94-cd1e60808028" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_f602fb6d-6fa9-4fda-8165-26acbdeb7025" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_fee4f54e-6429-4fe6-b1f5-5931284d3137" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f602fb6d-6fa9-4fda-8165-26acbdeb7025" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_fee4f54e-6429-4fe6-b1f5-5931284d3137" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f487caa5-cc47-4887-b020-48f65882b473" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f602fb6d-6fa9-4fda-8165-26acbdeb7025" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_f487caa5-cc47-4887-b020-48f65882b473" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8c822f7-da01-464a-a212-afcc9596c2d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f602fb6d-6fa9-4fda-8165-26acbdeb7025" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_d8c822f7-da01-464a-a212-afcc9596c2d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="mgnx-20220630.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_1909c006-23b0-4a76-a6ed-44a81a8351c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_705d5eb7-f9c8-4d68-b6f1-d4e645584253" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1909c006-23b0-4a76-a6ed-44a81a8351c8" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_705d5eb7-f9c8-4d68-b6f1-d4e645584253" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c4e3614d-d4be-4366-8cfb-b51b8cb20891" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1909c006-23b0-4a76-a6ed-44a81a8351c8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_c4e3614d-d4be-4366-8cfb-b51b8cb20891" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20220630.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_f294f2b9-9311-44c5-871b-a8b6141214bb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3627c074-b7b7-40a0-b601-ea295a51c348" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f294f2b9-9311-44c5-871b-a8b6141214bb" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3627c074-b7b7-40a0-b601-ea295a51c348" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_c1d654ef-a086-4b61-a5a1-9b98ffdba1e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f294f2b9-9311-44c5-871b-a8b6141214bb" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_c1d654ef-a086-4b61-a5a1-9b98ffdba1e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_58e373d0-f78f-4b0d-a817-5a34912c5509" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f294f2b9-9311-44c5-871b-a8b6141214bb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_58e373d0-f78f-4b0d-a817-5a34912c5509" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryNetDetails" xlink:type="simple" xlink:href="mgnx-20220630.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_bd8f70c8-5755-4728-b879-dadf5e0c69bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_a3e2a0c1-88dd-4988-80c5-0b805a0b8d9b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_bd8f70c8-5755-4728-b879-dadf5e0c69bc" xlink:to="loc_us-gaap_InventoryWorkInProcess_a3e2a0c1-88dd-4988-80c5-0b805a0b8d9b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_c9b034c9-03c1-4428-b684-cf26e46ffcd8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_bd8f70c8-5755-4728-b879-dadf5e0c69bc" xlink:to="loc_us-gaap_InventoryFinishedGoods_c9b034c9-03c1-4428-b684-cf26e46ffcd8" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
