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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:d9f88f3d-028a-4310-a264-456342c30742,g:6b18c329-ca84-4240-a644-6cfe23d04cbc-->
<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://www.ngmbio.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ngm-20231231.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4085743d-436b-4531-862b-3ee40251d54d" 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_CashAndCashEquivalentsAtCarryingValue_bbd8dfc6-5f79-4ed0-a0fa-e8bd5388be52" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4085743d-436b-4531-862b-3ee40251d54d" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_bbd8dfc6-5f79-4ed0-a0fa-e8bd5388be52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_498c569b-e7c8-45d1-88e5-1e82280caacb" 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_4085743d-436b-4531-862b-3ee40251d54d" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_498c569b-e7c8-45d1-88e5-1e82280caacb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_5e0b65fa-092a-4c45-84c8-59861a245b35" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4085743d-436b-4531-862b-3ee40251d54d" xlink:to="loc_us-gaap_ShortTermInvestments_5e0b65fa-092a-4c45-84c8-59861a245b35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_4a5e0e12-3e18-4238-b373-86ef53a8f8ad" 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_4085743d-436b-4531-862b-3ee40251d54d" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_4a5e0e12-3e18-4238-b373-86ef53a8f8ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_eb9b25d2-6539-42e2-9eec-e838072c1a09" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4085743d-436b-4531-862b-3ee40251d54d" xlink:to="loc_us-gaap_RestrictedCashCurrent_eb9b25d2-6539-42e2-9eec-e838072c1a09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_550ef880-5e85-466a-9ae0-a5c2b15af456" 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_OperatingLeaseLiabilityCurrent_2e906792-94fc-4955-abe7-6a16aaae8a9c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_550ef880-5e85-466a-9ae0-a5c2b15af456" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_2e906792-94fc-4955-abe7-6a16aaae8a9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_7508093a-7cb3-4ea8-a3b2-0928e706ddf9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_550ef880-5e85-466a-9ae0-a5c2b15af456" xlink:to="loc_us-gaap_AccountsPayableCurrent_7508093a-7cb3-4ea8-a3b2-0928e706ddf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_c0c71189-7bb5-4a8e-854b-3c28f77d4af2" 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_550ef880-5e85-466a-9ae0-a5c2b15af456" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_c0c71189-7bb5-4a8e-854b-3c28f77d4af2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_381ea5e3-4acb-4a12-99f2-e8e21891d448" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_550ef880-5e85-466a-9ae0-a5c2b15af456" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_381ea5e3-4acb-4a12-99f2-e8e21891d448" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_02b985cc-dfe8-45af-adbf-c0b94df6793a" 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_OtherLiabilitiesNoncurrent_947a0a50-d930-4df5-9b5a-cc60b3a7f650" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_02b985cc-dfe8-45af-adbf-c0b94df6793a" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_947a0a50-d930-4df5-9b5a-cc60b3a7f650" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_edeae527-f7e4-4230-b339-82c88b2268f8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_02b985cc-dfe8-45af-adbf-c0b94df6793a" xlink:to="loc_us-gaap_LiabilitiesCurrent_edeae527-f7e4-4230-b339-82c88b2268f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" 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_PreferredStockValue_16781393-0441-47e5-9540-0c70172ff018" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" xlink:to="loc_us-gaap_PreferredStockValue_16781393-0441-47e5-9540-0c70172ff018" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_737c2c51-cf83-4cd8-b16b-139ee3ded739" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" xlink:to="loc_us-gaap_CommonStockValue_737c2c51-cf83-4cd8-b16b-139ee3ded739" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_c9ee6d8a-52df-45ce-a06c-c370d86bd924" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_c9ee6d8a-52df-45ce-a06c-c370d86bd924" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c7ba6669-9acc-4406-9288-4ad2f204a8b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_c7ba6669-9acc-4406-9288-4ad2f204a8b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_83d11535-b650-4968-94ee-a060cc36e489" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_2fa2455d-0481-4c1d-a81f-976f30789d25" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_83d11535-b650-4968-94ee-a060cc36e489" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_bb07d172-e117-4887-bfb2-dc365f983819" 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_AssetsCurrent_7399383f-5361-42b1-bea4-8a99b981c195" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_bb07d172-e117-4887-bfb2-dc365f983819" xlink:to="loc_us-gaap_AssetsCurrent_7399383f-5361-42b1-bea4-8a99b981c195" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_167c16d0-6806-4984-a172-770bbf28c65f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_bb07d172-e117-4887-bfb2-dc365f983819" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_167c16d0-6806-4984-a172-770bbf28c65f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1c580b17-7e09-4bcb-835d-2419f5c146eb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_bb07d172-e117-4887-bfb2-dc365f983819" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1c580b17-7e09-4bcb-835d-2419f5c146eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_55934c42-c923-4395-879c-f58c7b86fb6f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_bb07d172-e117-4887-bfb2-dc365f983819" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_55934c42-c923-4395-879c-f58c7b86fb6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_d64056a3-34cf-4c25-af0c-51d2d92dc1b9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_bb07d172-e117-4887-bfb2-dc365f983819" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_d64056a3-34cf-4c25-af0c-51d2d92dc1b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_a10b75b4-715f-4744-8253-d8fd6c4348f4" 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_8bda1e53-b9ca-4bc1-8591-953784344e46" 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_a10b75b4-715f-4744-8253-d8fd6c4348f4" xlink:to="loc_us-gaap_Liabilities_8bda1e53-b9ca-4bc1-8591-953784344e46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_6c10171a-e098-45a6-8ec0-9e7c4e51be74" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_a10b75b4-715f-4744-8253-d8fd6c4348f4" xlink:to="loc_us-gaap_CommitmentsAndContingencies_6c10171a-e098-45a6-8ec0-9e7c4e51be74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f7bc7e7d-ec6d-4b1f-9436-cf6a96593dee" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_a10b75b4-715f-4744-8253-d8fd6c4348f4" xlink:to="loc_us-gaap_StockholdersEquity_f7bc7e7d-ec6d-4b1f-9436-cf6a96593dee" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20231231.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6dba0a06-8257-4c3d-905d-02897389226f" 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_RevenueFromContractWithCustomerExcludingAssessedTax_4f7430c8-3012-42ba-9df3-1fd9d9dc628f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6dba0a06-8257-4c3d-905d-02897389226f" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4f7430c8-3012-42ba-9df3-1fd9d9dc628f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_19bbd136-59e8-4e5f-9ec3-3ebc45224a89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_6dba0a06-8257-4c3d-905d-02897389226f" xlink:to="loc_us-gaap_OperatingExpenses_19bbd136-59e8-4e5f-9ec3-3ebc45224a89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_b29e5206-c9f3-4432-abf5-c7ff7f8d6ef8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_410c51a2-87f2-4f7d-922d-65bfd03c1d76" 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_OperatingExpenses_b29e5206-c9f3-4432-abf5-c7ff7f8d6ef8" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_410c51a2-87f2-4f7d-922d-65bfd03c1d76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_06e4802f-2d4e-4c1c-88c3-119383b7e5ed" 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_OperatingExpenses_b29e5206-c9f3-4432-abf5-c7ff7f8d6ef8" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_06e4802f-2d4e-4c1c-88c3-119383b7e5ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_c647a080-76d6-4d62-af55-dd8d8d5a304f" 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_OperatingIncomeLoss_d3189144-77bd-4fbd-9b03-5fae87858995" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.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_c647a080-76d6-4d62-af55-dd8d8d5a304f" xlink:to="loc_us-gaap_OperatingIncomeLoss_d3189144-77bd-4fbd-9b03-5fae87858995" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_62f4dd6d-b35c-419a-acc3-deeaf1002670" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_c647a080-76d6-4d62-af55-dd8d8d5a304f" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_62f4dd6d-b35c-419a-acc3-deeaf1002670" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_75109dde-77fd-4dbc-b87e-575db8e9736a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_c647a080-76d6-4d62-af55-dd8d8d5a304f" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_75109dde-77fd-4dbc-b87e-575db8e9736a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_a24e0f37-e534-48a8-bf6a-296f933f5149" 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_5c8601ea-5304-44ca-a082-b56364f5dc53" 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_a24e0f37-e534-48a8-bf6a-296f933f5149" xlink:to="loc_us-gaap_NetIncomeLoss_5c8601ea-5304-44ca-a082-b56364f5dc53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_83ad38ca-4fbb-4d3d-9259-6d3ca1232db6" 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_a24e0f37-e534-48a8-bf6a-296f933f5149" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_83ad38ca-4fbb-4d3d-9259-6d3ca1232db6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20231231.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_01a4ebed-59b0-42c9-9356-25bd50210d58" 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_ddd2f7ba-7467-4e3e-8cd1-38246c133be1" 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_01a4ebed-59b0-42c9-9356-25bd50210d58" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ddd2f7ba-7467-4e3e-8cd1-38246c133be1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_9446b758-7299-4a3f-9be5-1707add5f5b4" 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_01a4ebed-59b0-42c9-9356-25bd50210d58" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_9446b758-7299-4a3f-9be5-1707add5f5b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fa547ba7-abc2-47bc-a70e-3338a5342ece" 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_01a4ebed-59b0-42c9-9356-25bd50210d58" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_fa547ba7-abc2-47bc-a70e-3338a5342ece" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" 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_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_bddc4a79-a08f-4f95-bd58-0c2bbccd435c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_bddc4a79-a08f-4f95-bd58-0c2bbccd435c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_bfb6de38-0ca9-43b8-b792-6d05c649d421" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_Depreciation_bfb6de38-0ca9-43b8-b792-6d05c649d421" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_8b46ebac-a3fb-4e78-b1a8-5e851eb9333d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_8b46ebac-a3fb-4e78-b1a8-5e851eb9333d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_fa64e483-407c-4e54-88f0-e501c2cac33c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_fa64e483-407c-4e54-88f0-e501c2cac33c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_217275d9-2762-4f31-b464-2192598c6b97" xlink:href="ngm-20231231.xsd#ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_217275d9-2762-4f31-b464-2192598c6b97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_ce2a3f67-74f3-4457-a558-d9a4bb10b51c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_ProfitLoss_ce2a3f67-74f3-4457-a558-d9a4bb10b51c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_f8e5f528-cd02-4ee7-8a7d-6c150af482a2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_f8e5f528-cd02-4ee7-8a7d-6c150af482a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_c4f7b5a9-f726-46a7-b546-d4786d5295fb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_c4f7b5a9-f726-46a7-b546-d4786d5295fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_5acc8861-8316-4419-8412-8804bc04eb06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerAsset"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_5acc8861-8316-4419-8412-8804bc04eb06" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_cd966a09-9484-4c18-8d3e-833a615e2b53" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_cd966a09-9484-4c18-8d3e-833a615e2b53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_2fff66e9-1b00-499b-9a59-c921ac5a4311" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_2fff66e9-1b00-499b-9a59-c921ac5a4311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_01bfaee2-a9b1-4318-bec7-316f85742001" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_01bfaee2-a9b1-4318-bec7-316f85742001" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_32f85fb0-61cd-440d-804f-8e790913536d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_ShareBasedCompensation_32f85fb0-61cd-440d-804f-8e790913536d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_831c2f91-4d64-4631-94c9-47103fdef1d6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_831c2f91-4d64-4631-94c9-47103fdef1d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_7b9a8b55-6842-43a3-8b89-d4c03fa06c19" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="15" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_01450861-59a4-414c-a62b-9e2813c91866" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_7b9a8b55-6842-43a3-8b89-d4c03fa06c19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4334ab10-c613-4ad7-9913-ce49b693215e" 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_ngm_ProceedsFromIssuanceOpenMarketAgreement_f5ba960c-50ad-47f4-8389-a81b43580ef0" xlink:href="ngm-20231231.xsd#ngm_ProceedsFromIssuanceOpenMarketAgreement"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4334ab10-c613-4ad7-9913-ce49b693215e" xlink:to="loc_ngm_ProceedsFromIssuanceOpenMarketAgreement_f5ba960c-50ad-47f4-8389-a81b43580ef0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_8a63c162-697d-4ceb-9fd1-6278520e5e76" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4334ab10-c613-4ad7-9913-ce49b693215e" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_8a63c162-697d-4ceb-9fd1-6278520e5e76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_cc6ea876-828b-436a-b62a-9d06161b72fe" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4334ab10-c613-4ad7-9913-ce49b693215e" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_cc6ea876-828b-436a-b62a-9d06161b72fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_4c6b1b14-5a35-4df5-8517-31c9a0ff2168" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4334ab10-c613-4ad7-9913-ce49b693215e" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_4c6b1b14-5a35-4df5-8517-31c9a0ff2168" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0120afa8-ecf1-4aea-a974-bd6135f073a2" 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_PaymentsToAcquireMarketableSecurities_6ac04836-b887-4dec-9066-83405c1abfcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireMarketableSecurities"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0120afa8-ecf1-4aea-a974-bd6135f073a2" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_6ac04836-b887-4dec-9066-83405c1abfcb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_aeaa7386-3326-45fe-8581-224405aab7f1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0120afa8-ecf1-4aea-a974-bd6135f073a2" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_aeaa7386-3326-45fe-8581-224405aab7f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_019dc3c4-6d79-434f-ac60-e8d70e51953e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquireMachineryAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0120afa8-ecf1-4aea-a974-bd6135f073a2" xlink:to="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_019dc3c4-6d79-434f-ac60-e8d70e51953e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_6b1f4639-3485-4aba-bb7d-17869c973547" 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_fc85a840-9602-4406-9f80-b3df14f086c5" 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_6b1f4639-3485-4aba-bb7d-17869c973547" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_fc85a840-9602-4406-9f80-b3df14f086c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_802a9f15-afe3-40fc-9f4d-b282b4b001f3" 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_6b1f4639-3485-4aba-bb7d-17869c973547" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_802a9f15-afe3-40fc-9f4d-b282b4b001f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3309c1fb-af5a-4f9d-8779-3978fa9b639f" 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_6b1f4639-3485-4aba-bb7d-17869c973547" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_3309c1fb-af5a-4f9d-8779-3978fa9b639f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0ed0d222-e546-41b4-9150-accb4428d8b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5527c728-3ad7-4b83-9f60-b30c60ddc593" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0ed0d222-e546-41b4-9150-accb4428d8b2" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5527c728-3ad7-4b83-9f60-b30c60ddc593" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_1c52b855-e9fc-4e4d-b31e-9196e0844000" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_0ed0d222-e546-41b4-9150-accb4428d8b2" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_1c52b855-e9fc-4e4d-b31e-9196e0844000" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_854dc116-617e-4c24-8a00-a2f67b4ff4d8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_5132682b-4345-4fd3-9b1c-dc9ebf4f1d26" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_854dc116-617e-4c24-8a00-a2f67b4ff4d8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_5132682b-4345-4fd3-9b1c-dc9ebf4f1d26" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0a68f64b-cf95-481f-a0b9-0bc47ec19947" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_854dc116-617e-4c24-8a00-a2f67b4ff4d8" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0a68f64b-cf95-481f-a0b9-0bc47ec19947" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_55b02887-5d22-4a62-8857-6613da84c083" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_34db8b20-8c6c-4bb4-9adb-d7f85a20a36b" xlink:href="ngm-20231231.xsd#ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_55b02887-5d22-4a62-8857-6613da84c083" xlink:to="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_34db8b20-8c6c-4bb4-9adb-d7f85a20a36b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedManufacturingCostsCurrent_05c2fafb-bda5-40dc-906b-ee5587857ea2" xlink:href="ngm-20231231.xsd#ngm_AccruedManufacturingCostsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_55b02887-5d22-4a62-8857-6613da84c083" xlink:to="loc_ngm_AccruedManufacturingCostsCurrent_05c2fafb-bda5-40dc-906b-ee5587857ea2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedPersonnelExpenseCurrent_8aea8e32-9526-4643-aac7-e30e9daa0a47" xlink:href="ngm-20231231.xsd#ngm_AccruedPersonnelExpenseCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_55b02887-5d22-4a62-8857-6613da84c083" xlink:to="loc_ngm_AccruedPersonnelExpenseCurrent_8aea8e32-9526-4643-aac7-e30e9daa0a47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedExpensesCurrent_bdfac4c7-daec-42bb-b980-3ee8736c8ac4" xlink:href="ngm-20231231.xsd#ngm_AccruedExpensesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_55b02887-5d22-4a62-8857-6613da84c083" xlink:to="loc_ngm_AccruedExpensesCurrent_bdfac4c7-daec-42bb-b980-3ee8736c8ac4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#CommitmentsandContingenciesComponentsofLeaseCostsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesComponentsofLeaseCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_e05975b2-c171-4630-bd60-cdd4320badf9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_00817dcd-1003-429c-ba41-70072ba7419a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_e05975b2-c171-4630-bd60-cdd4320badf9" xlink:to="loc_us-gaap_OperatingLeaseCost_00817dcd-1003-429c-ba41-70072ba7419a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_0c4051ca-fcef-4471-b11b-496a74e91f17" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_VariableLeaseCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_e05975b2-c171-4630-bd60-cdd4320badf9" xlink:to="loc_us-gaap_VariableLeaseCost_0c4051ca-fcef-4471-b11b-496a74e91f17" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/IncomeTaxesScheduleofComponentsofLossesBeforeIncomeTaxesDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#IncomeTaxesScheduleofComponentsofLossesBeforeIncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/IncomeTaxesScheduleofComponentsofLossesBeforeIncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_61c08062-075c-4954-a1ef-a589760bd07f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_c8e7936d-a50f-43e9-bb40-afa87401d93d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_61c08062-075c-4954-a1ef-a589760bd07f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic_c8e7936d-a50f-43e9-bb40-afa87401d93d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_4e2a5718-ac9a-4f93-be9b-bbd8ff461208" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_61c08062-075c-4954-a1ef-a589760bd07f" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign_4e2a5718-ac9a-4f93-be9b-bbd8ff461208" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/IncomeTaxesScheduleofReconciliationofStatutoryUSFederalRatetoEffectiveTaxRateDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#IncomeTaxesScheduleofReconciliationofStatutoryUSFederalRatetoEffectiveTaxRateDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/IncomeTaxesScheduleofReconciliationofStatutoryUSFederalRatetoEffectiveTaxRateDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_d9557704-69e1-4cdf-a5e1-26632d3bae66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_d9557704-69e1-4cdf-a5e1-26632d3bae66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_3fcda56b-6592-416a-a8fb-3bc684f75675" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_3fcda56b-6592-416a-a8fb-3bc684f75675" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_37573014-cbba-4e8f-b673-486b6ae9be34" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_37573014-cbba-4e8f-b673-486b6ae9be34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_3d88a9ee-15db-4cad-b055-e0abe340c3f5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_3d88a9ee-15db-4cad-b055-e0abe340c3f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_2fd8941f-c688-4a11-bdea-cf5e85184ce0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_2fd8941f-c688-4a11-bdea-cf5e85184ce0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_d172c1d7-cfb3-4689-8904-21bfe208459a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_91d0118d-cd84-4938-9d59-61b993711502" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent_d172c1d7-cfb3-4689-8904-21bfe208459a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/IncomeTaxesScheduleofComponentsofNetDeferredTaxAssetsDetails" xlink:type="simple" xlink:href="ngm-20231231.xsd#IncomeTaxesScheduleofComponentsofNetDeferredTaxAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/IncomeTaxesScheduleofComponentsofNetDeferredTaxAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_7d88e4a1-42c5-4a32-ac1b-f5203c44ceaf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DeferredTaxAssetsNetBeforeValuationAllowance_7b99bf91-6fb2-44c0-b950-b1c2088fdf60" xlink:href="ngm-20231231.xsd#ngm_DeferredTaxAssetsNetBeforeValuationAllowance"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_7d88e4a1-42c5-4a32-ac1b-f5203c44ceaf" xlink:to="loc_ngm_DeferredTaxAssetsNetBeforeValuationAllowance_7b99bf91-6fb2-44c0-b950-b1c2088fdf60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_ca7c2085-c1c2-49be-b9e5-4a4bfc4dba62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_7d88e4a1-42c5-4a32-ac1b-f5203c44ceaf" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_ca7c2085-c1c2-49be-b9e5-4a4bfc4dba62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_d5256e72-e02c-4866-b5cb-c3b80bbdff69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_d5256e72-e02c-4866-b5cb-c3b80bbdff69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_5b59b716-01ac-43ff-abee-30a587a1807a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_5b59b716-01ac-43ff-abee-30a587a1807a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_331c7182-ae8c-4aaf-bef3-90e34d2547c1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_331c7182-ae8c-4aaf-bef3-90e34d2547c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DeferredTaxAssetsCapitalizedResearchAndDevelopmentCosts_d6f19e31-baf0-47a7-bcaa-59170fad4be1" xlink:href="ngm-20231231.xsd#ngm_DeferredTaxAssetsCapitalizedResearchAndDevelopmentCosts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_ngm_DeferredTaxAssetsCapitalizedResearchAndDevelopmentCosts_d6f19e31-baf0-47a7-bcaa-59170fad4be1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DeferredTaxAssetLeaseLiability_9a433fa6-aeba-4032-afc2-c2de9ddf46ae" xlink:href="ngm-20231231.xsd#ngm_DeferredTaxAssetLeaseLiability"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_ngm_DeferredTaxAssetLeaseLiability_9a433fa6-aeba-4032-afc2-c2de9ddf46ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_a218be94-d87a-446a-8bc3-2772083b06e1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_37ed2d8b-6f70-4ac7-b1df-8c173bc15d11" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_a218be94-d87a-446a-8bc3-2772083b06e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DeferredTaxAssetsNetBeforeValuationAllowance_88b0858f-c68c-4be2-bbd1-e70467e8169f" xlink:href="ngm-20231231.xsd#ngm_DeferredTaxAssetsNetBeforeValuationAllowance"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_27658137-374c-4cfa-baa0-ef50eb912232" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ngm_DeferredTaxAssetsNetBeforeValuationAllowance_88b0858f-c68c-4be2-bbd1-e70467e8169f" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_27658137-374c-4cfa-baa0-ef50eb912232" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_658ae682-288b-4548-9476-26528b7979ef" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_ngm_DeferredTaxAssetsNetBeforeValuationAllowance_88b0858f-c68c-4be2-bbd1-e70467e8169f" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_658ae682-288b-4548-9476-26528b7979ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_9426dc06-141c-499e-9a36-0414d737eb8b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_6856b0be-0e8b-4314-a980-9233ae8fec2f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_9426dc06-141c-499e-9a36-0414d737eb8b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_6856b0be-0e8b-4314-a980-9233ae8fec2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_DeferredTaxLiabilitiesNonQualifiedStockOptions_de019967-8767-4993-8fe6-ef2f28c399d9" xlink:href="ngm-20231231.xsd#ngm_DeferredTaxLiabilitiesNonQualifiedStockOptions"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_9426dc06-141c-499e-9a36-0414d737eb8b" xlink:to="loc_ngm_DeferredTaxLiabilitiesNonQualifiedStockOptions_de019967-8767-4993-8fe6-ef2f28c399d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_bbe68f98-97e7-47a2-a002-c4797651780d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_9426dc06-141c-499e-9a36-0414d737eb8b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesLeasingArrangements_bbe68f98-97e7-47a2-a002-c4797651780d" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
