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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:3c82c07d-bc16-44f0-a700-1d3c75e61c02,g:6a15c76d-c4e7-4b58-b44f-67519e12149e-->
<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-20220930.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_66647c6f-da5c-4ee0-b342-076c8bb400ca" 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_2af2817c-c39a-49df-aea1-f84a902bdca1" 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_66647c6f-da5c-4ee0-b342-076c8bb400ca" xlink:to="loc_us-gaap_AccountsPayableCurrent_2af2817c-c39a-49df-aea1-f84a902bdca1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_11630263-163e-4486-8bec-321597c8238e" 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_66647c6f-da5c-4ee0-b342-076c8bb400ca" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_11630263-163e-4486-8bec-321597c8238e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_ff04ee05-5f15-46fc-909a-493e6ce5b2b2" 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_66647c6f-da5c-4ee0-b342-076c8bb400ca" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_ff04ee05-5f15-46fc-909a-493e6ce5b2b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_a6f866d9-6c68-4e19-9efe-c9807b7613fd" 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_66647c6f-da5c-4ee0-b342-076c8bb400ca" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_a6f866d9-6c68-4e19-9efe-c9807b7613fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" 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_8974d053-516c-4a87-94d0-2e8abee3e901" 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_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" xlink:to="loc_us-gaap_Investments_8974d053-516c-4a87-94d0-2e8abee3e901" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_c8353575-1377-47d3-960e-7188d533ad9a" 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_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_c8353575-1377-47d3-960e-7188d533ad9a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_d3cbe002-78df-4760-a17b-4c42add7ed23" 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_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" xlink:to="loc_us-gaap_InventoryNet_d3cbe002-78df-4760-a17b-4c42add7ed23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_619cd847-217c-4edb-9d7f-20d3949eadbc" 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_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_619cd847-217c-4edb-9d7f-20d3949eadbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1b764f6e-ba58-40a8-979a-f3f1f558dee2" 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_8bfab0c8-d1bf-4623-b9c7-eac0524eeed1" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1b764f6e-ba58-40a8-979a-f3f1f558dee2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e158b6e0-8395-4afc-bb8b-0ac05cc264ce" 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_fb93cc84-9c2b-4c93-b3f2-4edfd4df8995" 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_e158b6e0-8395-4afc-bb8b-0ac05cc264ce" xlink:to="loc_us-gaap_AssetsCurrent_fb93cc84-9c2b-4c93-b3f2-4edfd4df8995" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_016c59d6-a83b-4c38-8e24-87f3675dcfea" 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_e158b6e0-8395-4afc-bb8b-0ac05cc264ce" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_016c59d6-a83b-4c38-8e24-87f3675dcfea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_4f6830f2-3c55-4faa-a9ff-08b3c1c0d44d" 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_e158b6e0-8395-4afc-bb8b-0ac05cc264ce" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_4f6830f2-3c55-4faa-a9ff-08b3c1c0d44d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_039f448d-b023-4fb2-bbc0-e6bac09e6a79" 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_9c30ca93-7dd7-4387-b652-c43da79082ee" 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_039f448d-b023-4fb2-bbc0-e6bac09e6a79" xlink:to="loc_us-gaap_Liabilities_9c30ca93-7dd7-4387-b652-c43da79082ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_eedf8abe-0e42-4a9e-b108-7a1a4464027f" 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_039f448d-b023-4fb2-bbc0-e6bac09e6a79" xlink:to="loc_us-gaap_StockholdersEquity_eedf8abe-0e42-4a9e-b108-7a1a4464027f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fc97fee6-b5e1-4f00-b280-34938674d565" 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_6024ceee-58bb-47a9-9221-13bfb4c0bc14" 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_fc97fee6-b5e1-4f00-b280-34938674d565" xlink:to="loc_us-gaap_LiabilitiesCurrent_6024ceee-58bb-47a9-9221-13bfb4c0bc14" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f35de9fa-36a3-4457-89aa-647f4b825e1d" 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_fc97fee6-b5e1-4f00-b280-34938674d565" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f35de9fa-36a3-4457-89aa-647f4b825e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_9ae8e9c5-5f19-4010-9fa6-47f3cfbabe53" 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_fc97fee6-b5e1-4f00-b280-34938674d565" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_9ae8e9c5-5f19-4010-9fa6-47f3cfbabe53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_f9a9c0fb-784e-4aab-ac6b-2595b1d38104" 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_fc97fee6-b5e1-4f00-b280-34938674d565" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_f9a9c0fb-784e-4aab-ac6b-2595b1d38104" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4a341d7c-252c-4820-b4ec-c1d592d49c06" 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_b05388fe-4060-4c0c-aab5-37eaaf55e151" 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_4a341d7c-252c-4820-b4ec-c1d592d49c06" xlink:to="loc_us-gaap_CommonStockValue_b05388fe-4060-4c0c-aab5-37eaaf55e151" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3c7e8031-eaab-4ae7-a3e3-6b47468036f0" 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_4a341d7c-252c-4820-b4ec-c1d592d49c06" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3c7e8031-eaab-4ae7-a3e3-6b47468036f0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ee2d3bb6-3ce4-4d9d-b7d2-91154b7ed00c" 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_4a341d7c-252c-4820-b4ec-c1d592d49c06" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_ee2d3bb6-3ce4-4d9d-b7d2-91154b7ed00c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_bd4b09fe-7e2e-4630-9335-5d69757b3491" 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_4a341d7c-252c-4820-b4ec-c1d592d49c06" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_bd4b09fe-7e2e-4630-9335-5d69757b3491" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20220930.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_bb0845eb-691e-4bfe-9e3e-5a363ec7bab1" 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_de2a6c0f-7a86-4abf-af59-7e251f79392a" 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_bb0845eb-691e-4bfe-9e3e-5a363ec7bab1" xlink:to="loc_us-gaap_OperatingIncomeLoss_de2a6c0f-7a86-4abf-af59-7e251f79392a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_6065e287-4e05-4ca8-a8c5-1ae0b930c520" 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_bb0845eb-691e-4bfe-9e3e-5a363ec7bab1" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_6065e287-4e05-4ca8-a8c5-1ae0b930c520" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_b386dc1f-5ed3-49e1-9af9-68b08d47ed33" 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_621af6bc-131c-4444-8db4-fd85d8f9c8e7" 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_b386dc1f-5ed3-49e1-9af9-68b08d47ed33" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_621af6bc-131c-4444-8db4-fd85d8f9c8e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_e3a74519-66b3-402d-81e4-6e35661eb1d0" 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_b386dc1f-5ed3-49e1-9af9-68b08d47ed33" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_e3a74519-66b3-402d-81e4-6e35661eb1d0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_CostOfManufacturingServices_64fa9566-dfa2-4503-84bb-a0ea35f93568" xlink:href="mgnx-20220930.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_b386dc1f-5ed3-49e1-9af9-68b08d47ed33" xlink:to="loc_mgnx_CostOfManufacturingServices_64fa9566-dfa2-4503-84bb-a0ea35f93568" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_8a91ac0a-dee7-4b24-a889-652d2ac67cc5" 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_b386dc1f-5ed3-49e1-9af9-68b08d47ed33" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_8a91ac0a-dee7-4b24-a889-652d2ac67cc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_407b3388-6e9d-4d37-9378-cba9b2f1026d" 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_f1bd0202-3f92-4cd2-a398-03f9bc4f3e77" 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_407b3388-6e9d-4d37-9378-cba9b2f1026d" xlink:to="loc_us-gaap_Revenues_f1bd0202-3f92-4cd2-a398-03f9bc4f3e77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_a79cf22d-17e2-45d0-ac23-e08af8123e7e" 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_407b3388-6e9d-4d37-9378-cba9b2f1026d" xlink:to="loc_us-gaap_CostsAndExpenses_a79cf22d-17e2-45d0-ac23-e08af8123e7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_9e5fca5d-8285-4d23-a9ec-8b68ab927719" 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_918cf91d-eac0-46f8-9eec-6df58f3fdac8" 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_9e5fca5d-8285-4d23-a9ec-8b68ab927719" xlink:to="loc_us-gaap_NetIncomeLoss_918cf91d-eac0-46f8-9eec-6df58f3fdac8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d9a1d777-370f-4b36-94d0-2a50edbf9eb3" 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_9e5fca5d-8285-4d23-a9ec-8b68ab927719" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_d9a1d777-370f-4b36-94d0-2a50edbf9eb3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20220930.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_43223908-6cd3-4767-9d48-ed8e8b4b6db4" 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_61b09fe3-47d2-46a3-bd7a-0c9382795ba2" 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_43223908-6cd3-4767-9d48-ed8e8b4b6db4" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_61b09fe3-47d2-46a3-bd7a-0c9382795ba2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_134b3f99-97e3-42dd-ab9c-90aaf36720d6" 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_43223908-6cd3-4767-9d48-ed8e8b4b6db4" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_134b3f99-97e3-42dd-ab9c-90aaf36720d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e22c497d-1b0a-4de7-8f06-2d3f8c06ca1a" 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_43223908-6cd3-4767-9d48-ed8e8b4b6db4" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_e22c497d-1b0a-4de7-8f06-2d3f8c06ca1a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_9c43b511-f742-45da-aa04-da968f40dba3" 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_afa08a6b-8235-48f7-8f1f-b626b470472e" 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_9c43b511-f742-45da-aa04-da968f40dba3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_afa08a6b-8235-48f7-8f1f-b626b470472e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_90221195-b771-4837-a876-54de4eed52b1" 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_9c43b511-f742-45da-aa04-da968f40dba3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_90221195-b771-4837-a876-54de4eed52b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0e2b484b-c1a3-4248-ae6d-63c9756d2ef4" 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_9c43b511-f742-45da-aa04-da968f40dba3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_0e2b484b-c1a3-4248-ae6d-63c9756d2ef4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" 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_IncreaseDecreaseInInventories_c5486592-fb00-466d-8a42-fc7422dc24bd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_c5486592-fb00-466d-8a42-fc7422dc24bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_55722649-4c48-432d-9fd1-9223ce0aa851" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_55722649-4c48-432d-9fd1-9223ce0aa851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_d84edab7-993c-4ce6-a2ce-f646f815daf8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherCurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherCurrentLiabilities_d84edab7-993c-4ce6-a2ce-f646f815daf8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ae329a38-63de-4ad3-93d6-6053b11056f5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_ae329a38-63de-4ad3-93d6-6053b11056f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a8b320f9-e441-4c84-b839-ce1ee43d6448" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_NetIncomeLoss_a8b320f9-e441-4c84-b839-ce1ee43d6448" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_a36fa0ed-07b9-41e8-b60d-2172ee0542ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_a36fa0ed-07b9-41e8-b60d-2172ee0542ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_2ccd29d6-1af0-40be-8a0c-7bcc79ca37dc" 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_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_ShareBasedCompensation_2ccd29d6-1af0-40be-8a0c-7bcc79ca37dc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_cc40240a-bd61-41fd-92f1-b2241f07ebbc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_cc40240a-bd61-41fd-92f1-b2241f07ebbc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_396e1714-75df-468b-9bc1-6741721b66e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_396e1714-75df-468b-9bc1-6741721b66e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_af1eb846-4aaf-4b69-b1f8-95ba23beff91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_af1eb846-4aaf-4b69-b1f8-95ba23beff91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_30d36f4e-8b7e-4748-887a-12b3f877fc39" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_30d36f4e-8b7e-4748-887a-12b3f877fc39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8586aa4f-d612-406b-bbab-e88e1bd627d5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_8586aa4f-d612-406b-bbab-e88e1bd627d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_a62d2a14-a027-4d15-ad10-7452f42053c7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_a62d2a14-a027-4d15-ad10-7452f42053c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_d4d4444e-f18e-4ec9-af30-9f7b9315fbb3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ac81a179-19d9-4299-a2b5-b115e18f2047" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_d4d4444e-f18e-4ec9-af30-9f7b9315fbb3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9bc68447-502a-4217-b5eb-e87ca92a5467" 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_aafc3e16-fe01-448c-8916-25298950b5d8" 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_9bc68447-502a-4217-b5eb-e87ca92a5467" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_aafc3e16-fe01-448c-8916-25298950b5d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_da357087-4e04-4efd-b2e6-93c1cf981878" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9bc68447-502a-4217-b5eb-e87ca92a5467" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_da357087-4e04-4efd-b2e6-93c1cf981878" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_6a8b7130-99aa-469f-9c27-edfc793a21f2" xlink:href="mgnx-20220930.xsd#mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9bc68447-502a-4217-b5eb-e87ca92a5467" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_6a8b7130-99aa-469f-9c27-edfc793a21f2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="mgnx-20220930.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_147c17fe-8e6c-4c67-97e6-1db2af2b3a6a" 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_e2ea4219-67fc-4b21-8245-ef567138cca3" 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_147c17fe-8e6c-4c67-97e6-1db2af2b3a6a" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_e2ea4219-67fc-4b21-8245-ef567138cca3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8b5b4afa-319f-454d-ba16-e5734005c6eb" 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_147c17fe-8e6c-4c67-97e6-1db2af2b3a6a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_8b5b4afa-319f-454d-ba16-e5734005c6eb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20220930.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_eb3fb574-9a0f-487e-9fc4-9b693853b425" 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_9f5fc69a-980a-4805-9ff8-46012e9ddbf9" 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_eb3fb574-9a0f-487e-9fc4-9b693853b425" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_9f5fc69a-980a-4805-9ff8-46012e9ddbf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_31c4bbb1-310e-4063-9def-4fd70811b03e" 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_eb3fb574-9a0f-487e-9fc4-9b693853b425" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_31c4bbb1-310e-4063-9def-4fd70811b03e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_51d8f236-76b7-4c44-b156-e3581318d386" 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_eb3fb574-9a0f-487e-9fc4-9b693853b425" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_51d8f236-76b7-4c44-b156-e3581318d386" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryNetDetails" xlink:type="simple" xlink:href="mgnx-20220930.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_5d377068-f3a9-47fc-a896-51dec18feb65" 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_990c6365-56f0-4952-a236-e6691cf17cc5" 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_5d377068-f3a9-47fc-a896-51dec18feb65" xlink:to="loc_us-gaap_InventoryWorkInProcess_990c6365-56f0-4952-a236-e6691cf17cc5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_296b4a18-177e-465e-b5a9-327e2149cdd5" 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_5d377068-f3a9-47fc-a896-51dec18feb65" xlink:to="loc_us-gaap_InventoryFinishedGoods_296b4a18-177e-465e-b5a9-327e2149cdd5" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
