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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:59bb20c4-5c1a-4a0e-beb9-86917c8a787b,g:b7cb11f9-6794-4c52-a8f4-2e88b753cf0d-->
<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-20230630.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://macrogenics.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_b2e143d5-654e-465e-9a62-58b8aadfa9b5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d44775a2-cd52-47a3-b873-7d2da3c9180a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b2e143d5-654e-465e-9a62-58b8aadfa9b5" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_d44775a2-cd52-47a3-b873-7d2da3c9180a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_13a5c2f5-30cb-46f3-a10e-ebf7aa6701f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b2e143d5-654e-465e-9a62-58b8aadfa9b5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_13a5c2f5-30cb-46f3-a10e-ebf7aa6701f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_6f0d7268-51fc-4bec-8ab5-31e041575040" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b2e143d5-654e-465e-9a62-58b8aadfa9b5" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_6f0d7268-51fc-4bec-8ab5-31e041575040" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_a3656ee2-9b9a-4fb7-b9e1-61d66ef9701b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_b2e143d5-654e-465e-9a62-58b8aadfa9b5" xlink:to="loc_us-gaap_AssetsCurrent_a3656ee2-9b9a-4fb7-b9e1-61d66ef9701b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d67a8523-5a5a-43de-af61-010400ae5e81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_68b32233-6892-4e34-b2ca-a0ea7e271fcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d67a8523-5a5a-43de-af61-010400ae5e81" xlink:to="loc_us-gaap_Liabilities_68b32233-6892-4e34-b2ca-a0ea7e271fcb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_9528b09c-2a82-4b3e-94b4-a6bff8fc6e96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_d67a8523-5a5a-43de-af61-010400ae5e81" xlink:to="loc_us-gaap_StockholdersEquity_9528b09c-2a82-4b3e-94b4-a6bff8fc6e96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b8d7c20a-fa52-47b8-a485-c785c4403d81" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_f4af5b5c-c31b-4fcc-a443-bdafc66cc891" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8d7c20a-fa52-47b8-a485-c785c4403d81" xlink:to="loc_us-gaap_CommonStockValue_f4af5b5c-c31b-4fcc-a443-bdafc66cc891" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_1069931a-b018-4e59-a242-cea9a9ae745b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8d7c20a-fa52-47b8-a485-c785c4403d81" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_1069931a-b018-4e59-a242-cea9a9ae745b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_078e483a-4eb6-4126-b348-83a8c42c6120" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8d7c20a-fa52-47b8-a485-c785c4403d81" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_078e483a-4eb6-4126-b348-83a8c42c6120" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_99afd3ed-7082-4ba4-a8b7-8b66f07c598a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b8d7c20a-fa52-47b8-a485-c785c4403d81" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_99afd3ed-7082-4ba4-a8b7-8b66f07c598a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_62eaf89d-5bba-4560-8b58-5253afb7d416" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_3510ff2a-5d7e-42cd-8503-cb9899cbc778" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_62eaf89d-5bba-4560-8b58-5253afb7d416" xlink:to="loc_us-gaap_AccountsPayableCurrent_3510ff2a-5d7e-42cd-8503-cb9899cbc778" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_ae5e1a5e-a030-41e9-92f5-df81e8eda0ab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_62eaf89d-5bba-4560-8b58-5253afb7d416" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_ae5e1a5e-a030-41e9-92f5-df81e8eda0ab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d2dea8f3-4aed-45ff-9afb-2cf9763e1241" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_62eaf89d-5bba-4560-8b58-5253afb7d416" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_d2dea8f3-4aed-45ff-9afb-2cf9763e1241" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_b8d9a1ae-0c05-45eb-bea6-c9d3d22d3cbd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_62eaf89d-5bba-4560-8b58-5253afb7d416" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_b8d9a1ae-0c05-45eb-bea6-c9d3d22d3cbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_f1170215-dac8-4013-a7f9-13484c9b16dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_d702605c-2345-4949-8350-56e8f6bba204" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f1170215-dac8-4013-a7f9-13484c9b16dc" xlink:to="loc_us-gaap_LiabilitiesCurrent_d702605c-2345-4949-8350-56e8f6bba204" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_fb033d5b-b225-4873-a001-9876bb497533" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f1170215-dac8-4013-a7f9-13484c9b16dc" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_fb033d5b-b225-4873-a001-9876bb497533" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b59d00a0-ee5c-4303-9a83-c13777c3f2a1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f1170215-dac8-4013-a7f9-13484c9b16dc" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_b59d00a0-ee5c-4303-9a83-c13777c3f2a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_f3bff376-16ec-46d4-88a8-e8e8cfd81148" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f1170215-dac8-4013-a7f9-13484c9b16dc" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_f3bff376-16ec-46d4-88a8-e8e8cfd81148" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_dedfc398-4df6-4f97-872f-ae23b84054f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:to="loc_us-gaap_Investments_dedfc398-4df6-4f97-872f-ae23b84054f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a79545d0-fce2-4da6-a000-79efd9c01ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_a79545d0-fce2-4da6-a000-79efd9c01ca6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_5b4d3113-400a-4e07-9341-92388f916977" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:to="loc_us-gaap_InventoryNet_5b4d3113-400a-4e07-9341-92388f916977" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_7e261a1b-9429-4b5b-90be-cd85c0eefe34" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_7e261a1b-9429-4b5b-90be-cd85c0eefe34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_bd84412d-61c1-4097-ba2e-1b5aad2a059c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_f511dbf9-575c-4b74-b197-ebe457e96ef8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_bd84412d-61c1-4097-ba2e-1b5aad2a059c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="mgnx-20230630.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_4be010a3-39ba-4fd9-a520-3c28f76a6813" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_aac6c858-d44e-40c6-8c4e-38784f2286f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4be010a3-39ba-4fd9-a520-3c28f76a6813" xlink:to="loc_us-gaap_NetIncomeLoss_aac6c858-d44e-40c6-8c4e-38784f2286f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_9e31e0f2-4126-4bf1-993c-d7c1e145d662" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_4be010a3-39ba-4fd9-a520-3c28f76a6813" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_9e31e0f2-4126-4bf1-993c-d7c1e145d662" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_8b6845d7-454b-4396-bb83-7377bd46ed80" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncome_0b1646d1-5c02-42c4-9a09-41521782fd5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b6845d7-454b-4396-bb83-7377bd46ed80" xlink:to="loc_us-gaap_OtherNonoperatingIncome_0b1646d1-5c02-42c4-9a09-41521782fd5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_39a27c6c-1ed8-460e-b74e-b929bc04f2da" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b6845d7-454b-4396-bb83-7377bd46ed80" xlink:to="loc_us-gaap_OperatingIncomeLoss_39a27c6c-1ed8-460e-b74e-b929bc04f2da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_01c358e4-874c-43f1-a14e-583d74407688" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b6845d7-454b-4396-bb83-7377bd46ed80" xlink:to="loc_us-gaap_InterestExpense_01c358e4-874c-43f1-a14e-583d74407688" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_GainOnRoyaltyMonetizationArrangement_d085d7d7-cd8e-42fb-98f8-6dac14802fb5" xlink:href="mgnx-20230630.xsd#mgnx_GainOnRoyaltyMonetizationArrangement"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_8b6845d7-454b-4396-bb83-7377bd46ed80" xlink:to="loc_mgnx_GainOnRoyaltyMonetizationArrangement_d085d7d7-cd8e-42fb-98f8-6dac14802fb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_b52d63d9-8175-4da2-8e58-58a065a3a2b3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_7fb4ec44-e2ca-472f-8a28-c420dabeb493" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b52d63d9-8175-4da2-8e58-58a065a3a2b3" xlink:to="loc_us-gaap_Revenues_7fb4ec44-e2ca-472f-8a28-c420dabeb493" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_a495e996-cf8f-4024-8e37-079a52ebcbf3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b52d63d9-8175-4da2-8e58-58a065a3a2b3" xlink:to="loc_us-gaap_CostsAndExpenses_a495e996-cf8f-4024-8e37-079a52ebcbf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_ce6cbcd6-084a-4ea0-8ed2-2d6a9b03ed9b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_821aee76-d56a-4d53-8fed-fca07466cbe9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ce6cbcd6-084a-4ea0-8ed2-2d6a9b03ed9b" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_821aee76-d56a-4d53-8fed-fca07466cbe9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_11774eca-ee13-45e5-8888-ebe4319837bd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ce6cbcd6-084a-4ea0-8ed2-2d6a9b03ed9b" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_11774eca-ee13-45e5-8888-ebe4319837bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_CostOfManufacturingServices_3dfdf0f0-0b47-42f0-964f-f573947b8218" xlink:href="mgnx-20230630.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_ce6cbcd6-084a-4ea0-8ed2-2d6a9b03ed9b" xlink:to="loc_mgnx_CostOfManufacturingServices_3dfdf0f0-0b47-42f0-964f-f573947b8218" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_38bcf2f9-2920-4562-8903-bf4fcd1c8682" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ce6cbcd6-084a-4ea0-8ed2-2d6a9b03ed9b" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_38bcf2f9-2920-4562-8903-bf4fcd1c8682" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mgnx-20230630.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_219d358a-dace-49dd-8995-f9a3eb0a8327" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_addfe6e3-0689-487c-9c21-c2c856123aa4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_219d358a-dace-49dd-8995-f9a3eb0a8327" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_addfe6e3-0689-487c-9c21-c2c856123aa4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_74073d65-455e-4914-829b-46ee6aae0b52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_219d358a-dace-49dd-8995-f9a3eb0a8327" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_74073d65-455e-4914-829b-46ee6aae0b52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cd20e5ae-56e0-4d66-9f74-04055ede4ade" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_219d358a-dace-49dd-8995-f9a3eb0a8327" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_cd20e5ae-56e0-4d66-9f74-04055ede4ade" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_OperatingLeaseNoncashExpense_42948d23-f302-4572-9495-4fa6283053b3" xlink:href="mgnx-20230630.xsd#mgnx_OperatingLeaseNoncashExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_mgnx_OperatingLeaseNoncashExpense_42948d23-f302-4572-9495-4fa6283053b3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_dd359094-28cf-4ca5-b78b-a9c7542c6bfc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_dd359094-28cf-4ca5-b78b-a9c7542c6bfc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_GainOnRoyaltyMonetizationArrangement_090a0df9-5447-4826-ae21-1580f1d5cc91" xlink:href="mgnx-20230630.xsd#mgnx_GainOnRoyaltyMonetizationArrangement"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_mgnx_GainOnRoyaltyMonetizationArrangement_090a0df9-5447-4826-ae21-1580f1d5cc91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_9511e67c-3ba1-4fe9-816f-156d73f8bcdb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_9511e67c-3ba1-4fe9-816f-156d73f8bcdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_NonCashInterestExpenseRecognized_2b0f4c60-2e57-497d-8dbf-22e23a9841d8" xlink:href="mgnx-20230630.xsd#mgnx_NonCashInterestExpenseRecognized"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_mgnx_NonCashInterestExpenseRecognized_2b0f4c60-2e57-497d-8dbf-22e23a9841d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets_d002c827-fd05-4336-9f78-7db22d3b30e6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets_d002c827-fd05-4336-9f78-7db22d3b30e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_b371d4db-8883-4aad-9a2c-bfb81cd39e5c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_b371d4db-8883-4aad-9a2c-bfb81cd39e5c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_b64a929c-826d-443f-b881-de28554c396d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_NetIncomeLoss_b64a929c-826d-443f-b881-de28554c396d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_4db200a4-b240-4265-84c2-cfd146a25615" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_4db200a4-b240-4265-84c2-cfd146a25615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_570add7c-b7c3-4d37-bdac-f63744963728" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_ShareBasedCompensation_570add7c-b7c3-4d37-bdac-f63744963728" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_afe2d7f2-cee6-425c-b487-226c209a0709" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_afe2d7f2-cee6-425c-b487-226c209a0709" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_46738fa9-7b3d-40a9-b9e5-1c955a6d1362" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_46738fa9-7b3d-40a9-b9e5-1c955a6d1362" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_f8c46ebb-fed4-4b80-9fe3-85f42263d669" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_f8c46ebb-fed4-4b80-9fe3-85f42263d669" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_ba241a51-da8c-4455-8cdf-07a2df270595" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_ba241a51-da8c-4455-8cdf-07a2df270595" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_a71d671e-f030-430c-a2d0-0f7e69222d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_a71d671e-f030-430c-a2d0-0f7e69222d5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2ca828a1-c1dd-4caf-9e26-44f34e9b0c73" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_2ca828a1-c1dd-4caf-9e26-44f34e9b0c73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_14304665-ceca-4e05-ad47-c95c0e2b1527" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_a089d3e8-5c93-48ae-bfb8-86787f8f9b1f" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayableAndOtherOperatingLiabilities_14304665-ceca-4e05-ad47-c95c0e2b1527" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_629754cb-ba35-4daa-86b6-c0ea1b83f28f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_629754cb-ba35-4daa-86b6-c0ea1b83f28f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_5ddcfad2-bbcb-4b3e-9ecc-06e7a5f0f91c" xlink:href="mgnx-20230630.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_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:to="loc_mgnx_ProceedsfromStockOptionsExercisedAndESPPPurchases_5ddcfad2-bbcb-4b3e-9ecc-06e7a5f0f91c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_PrincipalPaymentsOnRoyaltyMonetizationArrangement_22e63a72-88cf-4028-a44b-802c499ed66d" xlink:href="mgnx-20230630.xsd#mgnx_PrincipalPaymentsOnRoyaltyMonetizationArrangement"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:to="loc_mgnx_PrincipalPaymentsOnRoyaltyMonetizationArrangement_22e63a72-88cf-4028-a44b-802c499ed66d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mgnx_NetProceedsFromSaleOfFutureRoyalties_f5be3bb6-b6ab-408b-ad92-5c60834140e2" xlink:href="mgnx-20230630.xsd#mgnx_NetProceedsFromSaleOfFutureRoyalties"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:to="loc_mgnx_NetProceedsFromSaleOfFutureRoyalties_f5be3bb6-b6ab-408b-ad92-5c60834140e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8abf8cb3-2db9-40bc-9833-7e479ee218f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_ee74a631-6707-42d7-a4bf-2c721a5882af" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_8abf8cb3-2db9-40bc-9833-7e479ee218f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d0b45ca4-51d4-452c-9bb3-23def636ea7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_03ac4f7a-3a51-44ee-8ca0-1c8f8deed045" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d0b45ca4-51d4-452c-9bb3-23def636ea7b" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_03ac4f7a-3a51-44ee-8ca0-1c8f8deed045" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_9665d94f-1ca9-400f-ba46-31ee41468a25" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleOfMachineryAndEquipment"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d0b45ca4-51d4-452c-9bb3-23def636ea7b" xlink:to="loc_us-gaap_ProceedsFromSaleOfMachineryAndEquipment_9665d94f-1ca9-400f-ba46-31ee41468a25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_2c01c8e4-7d18-4cfc-90cf-160dd123aa67" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d0b45ca4-51d4-452c-9bb3-23def636ea7b" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_2c01c8e4-7d18-4cfc-90cf-160dd123aa67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_dcc9cb71-26cc-4bca-8947-339fcfb5cd0e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_d0b45ca4-51d4-452c-9bb3-23def636ea7b" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities_dcc9cb71-26cc-4bca-8947-339fcfb5cd0e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/FairValueofFinancialInstrumentsDetails" xlink:type="simple" xlink:href="mgnx-20230630.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_40bbac0d-aded-4528-b3b0-3658ff642e95" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_77733c87-48aa-49b7-ae47-cba4d8895cca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_40bbac0d-aded-4528-b3b0-3658ff642e95" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_77733c87-48aa-49b7-ae47-cba4d8895cca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3f79ae6a-e401-49a8-8aaf-fc34eb4464b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_40bbac0d-aded-4528-b3b0-3658ff642e95" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3f79ae6a-e401-49a8-8aaf-fc34eb4464b2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/MarketableSecuritiesDetails" xlink:type="simple" xlink:href="mgnx-20230630.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_b28c808a-42ef-41e0-a27a-21dc12311117" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3f893f6b-4c5f-4faa-b935-650a0aaa976a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b28c808a-42ef-41e0-a27a-21dc12311117" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_3f893f6b-4c5f-4faa-b935-650a0aaa976a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_85164adb-25ff-47b2-b1d4-d32868f3761e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b28c808a-42ef-41e0-a27a-21dc12311117" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_85164adb-25ff-47b2-b1d4-d32868f3761e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_80ac5375-361b-43c3-b1f8-2582637b56d5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_b28c808a-42ef-41e0-a27a-21dc12311117" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_80ac5375-361b-43c3-b1f8-2582637b56d5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://macrogenics.com/role/InventoryNetDetails" xlink:type="simple" xlink:href="mgnx-20230630.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_bf45c6b0-218a-4f5d-9c54-57433f48659d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcess_67aea7ab-ff6d-45b9-887c-9d9a224dc94e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bf45c6b0-218a-4f5d-9c54-57433f48659d" xlink:to="loc_us-gaap_InventoryWorkInProcess_67aea7ab-ff6d-45b9-887c-9d9a224dc94e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_e66da82d-5c00-42e4-acda-cf7b255389c7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bf45c6b0-218a-4f5d-9c54-57433f48659d" xlink:to="loc_us-gaap_InventoryFinishedGoods_e66da82d-5c00-42e4-acda-cf7b255389c7" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
