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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:56304a98-2684-4a57-a978-eb6ad4c4c661,g:5581d466-452b-4f28-aa19-2e786a2c960f-->
<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/CoverPage" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CoverPage"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CoverPage" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_9c8f3a87-f301-48fb-98bf-b08e70326940" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_0bf07859-320d-4585-abdf-45c02cd67ae9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9c8f3a87-f301-48fb-98bf-b08e70326940" xlink:to="loc_us-gaap_AccountsPayableCurrent_0bf07859-320d-4585-abdf-45c02cd67ae9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_35d0ba23-d173-4214-b2a3-f55aaafe1db2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9c8f3a87-f301-48fb-98bf-b08e70326940" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_35d0ba23-d173-4214-b2a3-f55aaafe1db2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_27e0869e-16f2-4b00-87f9-1064fa3cfa4e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9c8f3a87-f301-48fb-98bf-b08e70326940" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_27e0869e-16f2-4b00-87f9-1064fa3cfa4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_0f7b7c87-e3b8-4483-9cd3-5ad72688c4aa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_9c8f3a87-f301-48fb-98bf-b08e70326940" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_0f7b7c87-e3b8-4483-9cd3-5ad72688c4aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_df8aa107-f9ab-4065-96b2-3352e3b9fa69" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_5d4db413-c86c-4abd-873e-d36abe850315" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_df8aa107-f9ab-4065-96b2-3352e3b9fa69" xlink:to="loc_us-gaap_LiabilitiesCurrent_5d4db413-c86c-4abd-873e-d36abe850315" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_ece62f41-4e1b-4c1d-a114-a3adf7553df4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_df8aa107-f9ab-4065-96b2-3352e3b9fa69" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_ece62f41-4e1b-4c1d-a114-a3adf7553df4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_3ce1c4a0-008e-4bab-b324-6bd74cfbff59" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_df8aa107-f9ab-4065-96b2-3352e3b9fa69" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_3ce1c4a0-008e-4bab-b324-6bd74cfbff59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_ee012e12-12be-4d1f-aacf-5f05c17f6f36" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_df8aa107-f9ab-4065-96b2-3352e3b9fa69" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_ee012e12-12be-4d1f-aacf-5f05c17f6f36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4507bed8-433a-45bb-adfb-b98293e3bace" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_9f7cd726-c7ff-4241-b9ef-0c102fc75a98" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4507bed8-433a-45bb-adfb-b98293e3bace" xlink:to="loc_us-gaap_AssetsCurrent_9f7cd726-c7ff-4241-b9ef-0c102fc75a98" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_0700cab0-64ba-4427-943c-a439564e69e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4507bed8-433a-45bb-adfb-b98293e3bace" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_0700cab0-64ba-4427-943c-a439564e69e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_5f6e6bed-aea1-4377-9f0a-fc0f88972239" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4507bed8-433a-45bb-adfb-b98293e3bace" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_5f6e6bed-aea1-4377-9f0a-fc0f88972239" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_ac29fcff-1aa3-451e-950d-b0f34a622ed8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5f6df3e3-42cb-406d-aeaf-e10514675e3f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ac29fcff-1aa3-451e-950d-b0f34a622ed8" xlink:to="loc_us-gaap_Liabilities_5f6df3e3-42cb-406d-aeaf-e10514675e3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_34e74240-4221-4edd-beff-f52130cb2835" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_ac29fcff-1aa3-451e-950d-b0f34a622ed8" xlink:to="loc_us-gaap_StockholdersEquity_34e74240-4221-4edd-beff-f52130cb2835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_995feb9e-6184-4686-8b05-cd46736ade50" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:to="loc_us-gaap_Investments_995feb9e-6184-4686-8b05-cd46736ade50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_1b7df0bd-d122-463b-9a74-7877686700fa" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_1b7df0bd-d122-463b-9a74-7877686700fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_14280aa7-767c-435f-bb61-e822a3127178" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:to="loc_us-gaap_InventoryNet_14280aa7-767c-435f-bb61-e822a3127178" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_2e25ab5b-5806-4b57-9b22-4d705eff0b2b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_2e25ab5b-5806-4b57-9b22-4d705eff0b2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3f784c53-d165-4f0c-9da7-948cd6c58adf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_f608da85-72d2-41e4-b97f-ed7ee9b19af7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_3f784c53-d165-4f0c-9da7-948cd6c58adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_568c5599-1efb-407a-84a7-f28465fdb59b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_65312183-ec7e-4528-9e48-b50d1103eb85" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_568c5599-1efb-407a-84a7-f28465fdb59b" xlink:to="loc_us-gaap_CommonStockValue_65312183-ec7e-4528-9e48-b50d1103eb85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_76348b25-7404-43b5-9858-1d057dc527b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_568c5599-1efb-407a-84a7-f28465fdb59b" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_76348b25-7404-43b5-9858-1d057dc527b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5ed9971c-d71b-4c1f-bc4f-ffb19c1d43cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_568c5599-1efb-407a-84a7-f28465fdb59b" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_5ed9971c-d71b-4c1f-bc4f-ffb19c1d43cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_365391d8-4f1b-49ed-8c6f-efcbd04b8c1f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_568c5599-1efb-407a-84a7-f28465fdb59b" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_365391d8-4f1b-49ed-8c6f-efcbd04b8c1f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20210331.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_0d14c6e4-749b-4d73-a114-615ad982a283" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ad5da855-1c8f-43f3-848c-ef3cb339d5e1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d14c6e4-749b-4d73-a114-615ad982a283" xlink:to="loc_us-gaap_NetIncomeLoss_ad5da855-1c8f-43f3-848c-ef3cb339d5e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3a9ed1ad-cffa-40a4-80a6-03845caa1753" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0d14c6e4-749b-4d73-a114-615ad982a283" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3a9ed1ad-cffa-40a4-80a6-03845caa1753" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_0fe30772-d84f-408c-a5c2-8255814cf789" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_32562a4b-74da-4252-8157-2c56b5ee20da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0fe30772-d84f-408c-a5c2-8255814cf789" xlink:to="loc_us-gaap_Revenues_32562a4b-74da-4252-8157-2c56b5ee20da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_9298ceb4-868f-471e-ac6b-d9b6266d33cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_0fe30772-d84f-408c-a5c2-8255814cf789" xlink:to="loc_us-gaap_CostsAndExpenses_9298ceb4-868f-471e-ac6b-d9b6266d33cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bc3ab9c5-b796-4406-b6e4-2905abb44b57" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6fac536c-d051-4723-9b76-ce2925156a92" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_bc3ab9c5-b796-4406-b6e4-2905abb44b57" xlink:to="loc_us-gaap_OperatingIncomeLoss_6fac536c-d051-4723-9b76-ce2925156a92" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_aa72c203-4ee7-4056-a142-46ce8581eaa3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_bc3ab9c5-b796-4406-b6e4-2905abb44b57" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_aa72c203-4ee7-4056-a142-46ce8581eaa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_416f8a8b-9c8b-4bc0-91d8-4f604a2debfd" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_f2d319a0-105a-4e49-82fc-7b5bd877d91c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_416f8a8b-9c8b-4bc0-91d8-4f604a2debfd" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_f2d319a0-105a-4e49-82fc-7b5bd877d91c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_214a5040-063c-4453-9d13-c1f1d27bdad2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_416f8a8b-9c8b-4bc0-91d8-4f604a2debfd" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_214a5040-063c-4453-9d13-c1f1d27bdad2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_401e8c97-b7b7-48d2-8ad8-ba21c175a7fe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_416f8a8b-9c8b-4bc0-91d8-4f604a2debfd" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_401e8c97-b7b7-48d2-8ad8-ba21c175a7fe" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_db5f3a0b-6fb9-49bc-b103-e3063f700bbe" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_706988cd-0748-454f-92f7-9e97faba175b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_db5f3a0b-6fb9-49bc-b103-e3063f700bbe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_706988cd-0748-454f-92f7-9e97faba175b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_18d9fc8a-3117-42be-9e0e-0f28e6d87e18" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_db5f3a0b-6fb9-49bc-b103-e3063f700bbe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_18d9fc8a-3117-42be-9e0e-0f28e6d87e18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_96b3600d-30db-495f-ac9a-5c090acbbc73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_db5f3a0b-6fb9-49bc-b103-e3063f700bbe" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_96b3600d-30db-495f-ac9a-5c090acbbc73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_5dc501a9-45e7-4305-8966-b47cab08a057" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_NetIncomeLoss_5dc501a9-45e7-4305-8966-b47cab08a057" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_806d27f1-3b64-4b5e-a404-56c9bb3c90b0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_806d27f1-3b64-4b5e-a404-56c9bb3c90b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_b89e7cfe-2ad8-483f-8dae-6019f1611bb5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_b89e7cfe-2ad8-483f-8dae-6019f1611bb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_b6a25845-1d68-4162-9349-cd89e182f7d5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_ShareBasedCompensation_b6a25845-1d68-4162-9349-cd89e182f7d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_555df338-c58d-4b3c-a8d1-bef96b28cb08" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_555df338-c58d-4b3c-a8d1-bef96b28cb08" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_caa18caa-5e97-4703-a795-c3b3ef084239" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_caa18caa-5e97-4703-a795-c3b3ef084239" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_9f17c459-66c5-4cbf-910e-8a1674dd99b5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_9f17c459-66c5-4cbf-910e-8a1674dd99b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_27922266-de56-43bf-a534-05ba5761a08d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_27922266-de56-43bf-a534-05ba5761a08d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_2ce4eb1e-1d45-4625-9985-3cd3ad10f9db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_2ce4eb1e-1d45-4625-9985-3cd3ad10f9db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b8f5d199-25c6-4a17-8345-671ca43661e0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_b8f5d199-25c6-4a17-8345-671ca43661e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_IncreaseDecreaseInLeaseLiabilities_b697efd1-2639-4065-b37a-871941bf7d01" xlink:href="mgnx-20210331.xsd#mgnx_IncreaseDecreaseInLeaseLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_mgnx_IncreaseDecreaseInLeaseLiabilities_b697efd1-2639-4065-b37a-871941bf7d01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_18a97f56-4d87-4f59-8469-ce794f7b8435" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_18a97f56-4d87-4f59-8469-ce794f7b8435" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_c8725228-a983-4b9c-ba3c-4592f4f33215" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_8f2cff69-dfaa-4721-ad36-282dd8d59ead" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_c8725228-a983-4b9c-ba3c-4592f4f33215" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_007e7430-6ec6-4f32-8330-6ab739a38469" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_974240a7-c781-469a-86fb-8a4aac08175e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_007e7430-6ec6-4f32-8330-6ab739a38469" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_974240a7-c781-469a-86fb-8a4aac08175e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_a084416a-d6ee-4403-afce-2382838ba1d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_007e7430-6ec6-4f32-8330-6ab739a38469" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_a084416a-d6ee-4403-afce-2382838ba1d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ef63a537-1cd3-4087-8438-d07ba4b8c6c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_007e7430-6ec6-4f32-8330-6ab739a38469" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_ef63a537-1cd3-4087-8438-d07ba4b8c6c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4886f1f2-3692-4e21-8587-e36571cc5373" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_8e72d0b3-cc26-4ff8-a314-025ee101824e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_4886f1f2-3692-4e21-8587-e36571cc5373" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_8e72d0b3-cc26-4ff8-a314-025ee101824e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_2e6c37aa-b118-4e3b-b6b3-4b34258cc80a" xlink:href="mgnx-20210331.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_4886f1f2-3692-4e21-8587-e36571cc5373" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_2e6c37aa-b118-4e3b-b6b3-4b34258cc80a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/NatureofOperations" xlink:type="simple" xlink:href="mgnx-20210331.xsd#NatureofOperations"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/NatureofOperations" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="mgnx-20210331.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="mgnx-20210331.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstruments" xlink:type="simple" xlink:href="mgnx-20210331.xsd#FairValueofFinancialInstruments"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/FairValueofFinancialInstruments" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsTables" xlink:type="simple" xlink:href="mgnx-20210331.xsd#FairValueofFinancialInstrumentsTables"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/FairValueofFinancialInstrumentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="mgnx-20210331.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_1544a236-fa1a-4544-bed0-0d3bccf3e415" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_eda8d938-0bee-4778-a8c7-76a5cdd958fc" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_1544a236-fa1a-4544-bed0-0d3bccf3e415" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_eda8d938-0bee-4778-a8c7-76a5cdd958fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_85380a5d-ab66-42ba-ac60-58de274e2085" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_1544a236-fa1a-4544-bed0-0d3bccf3e415" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_85380a5d-ab66-42ba-ac60-58de274e2085" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecurities" xlink:type="simple" xlink:href="mgnx-20210331.xsd#MarketableSecurities"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/MarketableSecurities" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesTables" xlink:type="simple" xlink:href="mgnx-20210331.xsd#MarketableSecuritiesTables"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/MarketableSecuritiesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20210331.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_e87af1c1-4116-4b09-abf0-5344231bd7c9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_42b60b0d-4d08-4197-95b1-cd3b8ebc665f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e87af1c1-4116-4b09-abf0-5344231bd7c9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_42b60b0d-4d08-4197-95b1-cd3b8ebc665f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e74a8f8a-458c-42d6-8cc5-2a952e182fb2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e87af1c1-4116-4b09-abf0-5344231bd7c9" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_e74a8f8a-458c-42d6-8cc5-2a952e182fb2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_9ceb7080-5a1c-49a1-afa1-659f7f0b74f9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_e87af1c1-4116-4b09-abf0-5344231bd7c9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_9ceb7080-5a1c-49a1-afa1-659f7f0b74f9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/Inventory" xlink:type="simple" xlink:href="mgnx-20210331.xsd#Inventory"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/Inventory" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryTables" xlink:type="simple" xlink:href="mgnx-20210331.xsd#InventoryTables"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/InventoryTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#InventoryDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/InventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessAndRawMaterials_50f9343b-2ec9-4650-953d-b2b76df71fe0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryWorkInProcessAndRawMaterials"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_14e2d52b-5dc5-4a32-b42e-abf469d2bd2e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-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_InventoryWorkInProcessAndRawMaterials_50f9343b-2ec9-4650-953d-b2b76df71fe0" xlink:to="loc_us-gaap_InventoryWorkInProcess_14e2d52b-5dc5-4a32-b42e-abf469d2bd2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterials_8b8a13c7-8682-4672-826b-87d7b92da6c2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_InventoryRawMaterials"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryWorkInProcessAndRawMaterials_50f9343b-2ec9-4650-953d-b2b76df71fe0" xlink:to="loc_us-gaap_InventoryRawMaterials_8b8a13c7-8682-4672-826b-87d7b92da6c2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/StockholdersEquity" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockholdersEquity"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockholdersEquityDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockholdersEquityDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockholdersEquityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreements" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreements"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreements" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreementsIncyteCorporationDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreementsIncyteCorporationDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreementsIncyteCorporationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreementsZaiLabDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreementsZaiLabDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreementsZaiLabDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreementsJanssenDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreementsJanssenDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreementsJanssenDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreementsIMabBiopharmaDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreementsIMabBiopharmaDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreementsIMabBiopharmaDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CollaborationandOtherAgreementsNIAIDContractDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CollaborationandOtherAgreementsNIAIDContractDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CollaborationandOtherAgreementsNIAIDContractDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockBasedCompensation" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockBasedCompensation"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockBasedCompensation" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockBasedCompensationTables" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockBasedCompensationTables"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockBasedCompensationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockBasedCompensationStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockBasedCompensationStockBasedCompensationExpenseDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockBasedCompensationOptionPricingAssumptionsDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockBasedCompensationOptionPricingAssumptionsDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockBasedCompensationOptionPricingAssumptionsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockBasedCompensationStockOptionActivityDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockBasedCompensationStockOptionActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/StockbasedCompensationRestrictedStockUnitActivityDetails" xlink:type="simple" xlink:href="mgnx-20210331.xsd#StockbasedCompensationRestrictedStockUnitActivityDetails"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/StockbasedCompensationRestrictedStockUnitActivityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://macrogenics.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="mgnx-20210331.xsd#CommitmentsandContingencies"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CommitmentsandContingencies" xlink:type="extended"/>
</link:linkbase>
