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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:0c6df27e-9e11-42f6-9346-97c8d2879b1f,g:14310197-22f1-4c7a-81c2-16779dd2afe3-->
<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/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ngm-20230630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" 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_b3deb999-ce46-4488-b6f0-15edbcaa5572" 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_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" xlink:to="loc_us-gaap_AssetsCurrent_b3deb999-ce46-4488-b6f0-15edbcaa5572" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_150172df-a60c-4ebb-977f-50651a1f0bb9" 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_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_150172df-a60c-4ebb-977f-50651a1f0bb9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_20bc3171-5e34-4034-b490-327e84d0690e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_20bc3171-5e34-4034-b490-327e84d0690e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_2d70af46-e473-4075-aeeb-7fa0c6007dba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_2d70af46-e473-4075-aeeb-7fa0c6007dba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_17172e0a-42ad-48a5-aa8d-f1beff5e40ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_df90dc5b-bc41-434c-a2b8-d3384c83bc5f" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_17172e0a-42ad-48a5-aa8d-f1beff5e40ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_8c36460d-2a60-4159-aaa4-83c04cb7e286" 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_a56733d7-576b-451c-a745-77f5e31e57ff" 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_8c36460d-2a60-4159-aaa4-83c04cb7e286" xlink:to="loc_us-gaap_PreferredStockValue_a56733d7-576b-451c-a745-77f5e31e57ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_e903ab10-e55b-4c90-897d-c7661f1fc3d8" 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_8c36460d-2a60-4159-aaa4-83c04cb7e286" xlink:to="loc_us-gaap_CommonStockValue_e903ab10-e55b-4c90-897d-c7661f1fc3d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_8bc63f61-731a-4f40-9121-e157bf807329" 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_8c36460d-2a60-4159-aaa4-83c04cb7e286" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_8bc63f61-731a-4f40-9121-e157bf807329" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a3da1a72-8af9-4149-af62-f7fd0e7092a6" 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_8c36460d-2a60-4159-aaa4-83c04cb7e286" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_a3da1a72-8af9-4149-af62-f7fd0e7092a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_0539ffb8-9aaf-4043-9443-fc5b30495327" 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_8c36460d-2a60-4159-aaa4-83c04cb7e286" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_0539ffb8-9aaf-4043-9443-fc5b30495327" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_e60503c9-3662-4385-9d98-75d582322541" 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_AccruedLiabilitiesCurrent_0eeb956b-cc88-4397-b128-96ac98c81c69" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e60503c9-3662-4385-9d98-75d582322541" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_0eeb956b-cc88-4397-b128-96ac98c81c69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_bf0f4d35-7861-46ad-bcd5-5f77371e3fdb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e60503c9-3662-4385-9d98-75d582322541" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_bf0f4d35-7861-46ad-bcd5-5f77371e3fdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_a3d106a6-9ec5-4962-8d78-171e9101e982" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_e60503c9-3662-4385-9d98-75d582322541" xlink:to="loc_us-gaap_AccountsPayableCurrent_a3d106a6-9ec5-4962-8d78-171e9101e982" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_191bc4c5-ff73-4b8d-a926-9f22caf38cad" 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_e60503c9-3662-4385-9d98-75d582322541" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_191bc4c5-ff73-4b8d-a926-9f22caf38cad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" 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_RestrictedCashCurrent_c0df9475-5acd-40eb-aa45-f34a21ebf851" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" xlink:to="loc_us-gaap_RestrictedCashCurrent_c0df9475-5acd-40eb-aa45-f34a21ebf851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_a0105e82-0691-498b-a40e-2b3009ad827d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" xlink:to="loc_us-gaap_ShortTermInvestments_a0105e82-0691-498b-a40e-2b3009ad827d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_9f217320-3460-4f89-bf25-f3de9cbf0a32" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_9f217320-3460-4f89-bf25-f3de9cbf0a32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_20d90103-03ec-42db-af2e-ff3d5ab93f0f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_20d90103-03ec-42db-af2e-ff3d5ab93f0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2a99e6a7-3008-43c4-94d4-5d75887ade2e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_ea16ebf8-5441-491e-b094-d132720420cf" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2a99e6a7-3008-43c4-94d4-5d75887ade2e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_7ab35f25-4ec6-407e-b89a-5becfb07a700" 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_e0ad6ea6-4f88-4722-8d69-33d9eab96309" 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_7ab35f25-4ec6-407e-b89a-5becfb07a700" xlink:to="loc_us-gaap_Liabilities_e0ad6ea6-4f88-4722-8d69-33d9eab96309" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_7199dcf0-7bf3-47ae-b17e-81453503350c" 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_7ab35f25-4ec6-407e-b89a-5becfb07a700" xlink:to="loc_us-gaap_CommitmentsAndContingencies_7199dcf0-7bf3-47ae-b17e-81453503350c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d7226a15-f89f-4ea5-827b-ccd640715923" 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_7ab35f25-4ec6-407e-b89a-5becfb07a700" xlink:to="loc_us-gaap_StockholdersEquity_d7226a15-f89f-4ea5-827b-ccd640715923" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_8af04196-83b4-4979-af0d-088c513a2df2" 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_63ef0cf1-048b-4148-af58-0a594e32d81e" 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_8af04196-83b4-4979-af0d-088c513a2df2" xlink:to="loc_us-gaap_LiabilitiesCurrent_63ef0cf1-048b-4148-af58-0a594e32d81e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_a259d5d1-9b37-429a-ada0-1b210e0f6335" 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_71480c4e-2dd2-4217-b5f7-3f63824ece39" 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_a259d5d1-9b37-429a-ada0-1b210e0f6335" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_71480c4e-2dd2-4217-b5f7-3f63824ece39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_bd1a2157-7f4f-4d71-bff6-0d796470041e" 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_a259d5d1-9b37-429a-ada0-1b210e0f6335" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_bd1a2157-7f4f-4d71-bff6-0d796470041e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_06c8d0c3-d4d5-465b-b3f8-0931b19ff663" 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_8fd53a82-1585-45cc-820d-daa2c741aee3" 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_06c8d0c3-d4d5-465b-b3f8-0931b19ff663" xlink:to="loc_us-gaap_OperatingIncomeLoss_8fd53a82-1585-45cc-820d-daa2c741aee3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_78a46fdd-bf50-48d7-8b2c-43ce21e12684" 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_06c8d0c3-d4d5-465b-b3f8-0931b19ff663" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_78a46fdd-bf50-48d7-8b2c-43ce21e12684" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_902e1395-86ac-4526-a142-8e3cc0102aaf" 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_06c8d0c3-d4d5-465b-b3f8-0931b19ff663" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_902e1395-86ac-4526-a142-8e3cc0102aaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_94020d2f-9506-4838-b460-b981176a5740" 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_84903f13-362b-4a41-b96d-43cca3acd39f" 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_94020d2f-9506-4838-b460-b981176a5740" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_84903f13-362b-4a41-b96d-43cca3acd39f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_6a096ccd-19a3-4cad-82c5-9dafde135251" 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_94020d2f-9506-4838-b460-b981176a5740" xlink:to="loc_us-gaap_OperatingExpenses_6a096ccd-19a3-4cad-82c5-9dafde135251" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_452da2f5-01a6-446a-8067-8e0c6a012c34" 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_00af102b-3ee5-4cfe-9c7a-5493adb1dfea" 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_452da2f5-01a6-446a-8067-8e0c6a012c34" xlink:to="loc_us-gaap_NetIncomeLoss_00af102b-3ee5-4cfe-9c7a-5493adb1dfea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_a06e917c-366f-47e9-9a91-b32ca9e1b66f" 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_452da2f5-01a6-446a-8067-8e0c6a012c34" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_a06e917c-366f-47e9-9a91-b32ca9e1b66f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20230630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_25a11a4c-5ea8-49a4-a79a-977f4c5e1d2c" 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_55695aa5-2b5b-454d-8bb4-8b8b86937c9e" 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_25a11a4c-5ea8-49a4-a79a-977f4c5e1d2c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_55695aa5-2b5b-454d-8bb4-8b8b86937c9e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a70592e3-99b3-4611-b2dd-b945c8b13ff4" 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_25a11a4c-5ea8-49a4-a79a-977f4c5e1d2c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_a70592e3-99b3-4611-b2dd-b945c8b13ff4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d86f4f4-d1cb-421d-a7f1-191b84de3779" 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_25a11a4c-5ea8-49a4-a79a-977f4c5e1d2c" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_7d86f4f4-d1cb-421d-a7f1-191b84de3779" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9511627e-a2f1-45f5-b8a2-fc44975111e9" 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_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_4bf44853-91dd-4f6a-9b29-02da9cbb5cf2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9511627e-a2f1-45f5-b8a2-fc44975111e9" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_4bf44853-91dd-4f6a-9b29-02da9cbb5cf2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_2bf3e505-acaf-4d96-9db8-a93d655adc4b" 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_9511627e-a2f1-45f5-b8a2-fc44975111e9" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_2bf3e505-acaf-4d96-9db8-a93d655adc4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ProceedsFromIssuanceOpenMarketAgreement_cd0ef557-492a-444c-8120-271d34585586" xlink:href="ngm-20230630.xsd#ngm_ProceedsFromIssuanceOpenMarketAgreement"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_9511627e-a2f1-45f5-b8a2-fc44975111e9" xlink:to="loc_ngm_ProceedsFromIssuanceOpenMarketAgreement_cd0ef557-492a-444c-8120-271d34585586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_3744c2dd-3724-450f-9744-ae02b13386b2" 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_8eca0990-0dfd-4903-a232-ac5d7b8be000" 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_3744c2dd-3724-450f-9744-ae02b13386b2" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_8eca0990-0dfd-4903-a232-ac5d7b8be000" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_6f41e344-039e-4eca-a8c0-bd10f1d07acb" 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_3744c2dd-3724-450f-9744-ae02b13386b2" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_6f41e344-039e-4eca-a8c0-bd10f1d07acb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_75cfd673-3509-4b50-9a0a-81804982718e" 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_3744c2dd-3724-450f-9744-ae02b13386b2" xlink:to="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_75cfd673-3509-4b50-9a0a-81804982718e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" 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_Depreciation_2181487b-74b7-41db-b7a6-5650361357ea" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_Depreciation_2181487b-74b7-41db-b7a6-5650361357ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_a691f9ea-f066-45ab-a947-3f4e2fb11a2c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_a691f9ea-f066-45ab-a947-3f4e2fb11a2c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_f45f26a7-7705-43b9-a789-147cc940858f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_f45f26a7-7705-43b9-a789-147cc940858f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_f82d5b31-29ab-4830-af28-5f360ac6c702" 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_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_f82d5b31-29ab-4830-af28-5f360ac6c702" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_04bc150a-36c1-4266-af1f-3167cf21eeec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_ProfitLoss_04bc150a-36c1-4266-af1f-3167cf21eeec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1e7cbf44-17a5-481a-849b-316d0c9c2694" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_1e7cbf44-17a5-481a-849b-316d0c9c2694" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_4017eca8-3400-4e28-8d9a-4979f94f092e" 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_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_4017eca8-3400-4e28-8d9a-4979f94f092e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_b32ea122-e404-4e86-a9cd-3466a3fa3dcb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_b32ea122-e404-4e86-a9cd-3466a3fa3dcb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_fb8471fd-c45b-4273-8fc5-a9289496da66" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_ShareBasedCompensation_fb8471fd-c45b-4273-8fc5-a9289496da66" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_a15e5964-2da5-4f98-bec2-3d9536f8687b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_a15e5964-2da5-4f98-bec2-3d9536f8687b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_6d2f99bc-4e2a-4dc4-8f6f-d913232b4e99" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_6d2f99bc-4e2a-4dc4-8f6f-d913232b4e99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_2241fbb7-2bf7-4da5-95ef-5cf05a4bd418" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_d61f2a37-f800-413c-9f26-447f49420c6d" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_2241fbb7-2bf7-4da5-95ef-5cf05a4bd418" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsScheduleofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20230630.xsd#FairValueMeasurementsScheduleofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsScheduleofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1a7bd844-5307-4f58-a870-b2d1056866ce" 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_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b3031ea8-5a8b-4096-b0fb-8c5b39a880dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1a7bd844-5307-4f58-a870-b2d1056866ce" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_b3031ea8-5a8b-4096-b0fb-8c5b39a880dd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_95a6b7e9-20fd-4f8a-95d3-95c3f52f2898" 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_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1a7bd844-5307-4f58-a870-b2d1056866ce" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_95a6b7e9-20fd-4f8a-95d3-95c3f52f2898" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_bd828250-497c-4454-81a0-103051795b78" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_1a7bd844-5307-4f58-a870-b2d1056866ce" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_bd828250-497c-4454-81a0-103051795b78" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20230630.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_19dc7dd4-c609-488c-b807-14b406c59a8b" 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_f3238cf1-a78c-4d64-a30f-c51e1d4c0cd1" 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_19dc7dd4-c609-488c-b807-14b406c59a8b" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_f3238cf1-a78c-4d64-a30f-c51e1d4c0cd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_e95f29f6-f1fe-46af-808a-3df41f56ead2" 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_19dc7dd4-c609-488c-b807-14b406c59a8b" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_e95f29f6-f1fe-46af-808a-3df41f56ead2" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ngm-20230630.xsd#BalanceSheetComponentsScheduleofPropertyandEquipmentDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_97d4de5a-6703-4c05-8403-68b25b7357ed" 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_6cd13bb7-67ff-4767-97ad-1043caaea2fe" 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_97d4de5a-6703-4c05-8403-68b25b7357ed" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_6cd13bb7-67ff-4767-97ad-1043caaea2fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7b93b3b2-9bbc-45dc-a499-a501ff778bb7" 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_97d4de5a-6703-4c05-8403-68b25b7357ed" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_7b93b3b2-9bbc-45dc-a499-a501ff778bb7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20230630.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_5416c1f3-fc88-4508-809e-ff96ec0b3584" 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_AccruedManufacturingCosts_f432ce18-7e4d-4077-a148-cce492e076fd" xlink:href="ngm-20230630.xsd#ngm_AccruedManufacturingCosts"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_5416c1f3-fc88-4508-809e-ff96ec0b3584" xlink:to="loc_ngm_AccruedManufacturingCosts_f432ce18-7e4d-4077-a148-cce492e076fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_cbab35b5-4a05-4ab0-b14a-59bd6b5f00e6" xlink:href="ngm-20230630.xsd#ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_5416c1f3-fc88-4508-809e-ff96ec0b3584" xlink:to="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_cbab35b5-4a05-4ab0-b14a-59bd6b5f00e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedPersonnelExpenseCurrent_81b2de0b-ee84-4b80-bede-848d5d8dae55" xlink:href="ngm-20230630.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_5416c1f3-fc88-4508-809e-ff96ec0b3584" xlink:to="loc_ngm_AccruedPersonnelExpenseCurrent_81b2de0b-ee84-4b80-bede-848d5d8dae55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedExpensesCurrent_e51e008a-2518-4a40-b566-a8f83bd1d529" xlink:href="ngm-20230630.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_5416c1f3-fc88-4508-809e-ff96ec0b3584" xlink:to="loc_ngm_AccruedExpensesCurrent_e51e008a-2518-4a40-b566-a8f83bd1d529" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="ngm-20230630.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_a244b319-d3e7-441b-86e9-8e42d9e12c5a" 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_ea746b9e-3a81-42d5-b4b2-58aa3b9646a7" 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_a244b319-d3e7-441b-86e9-8e42d9e12c5a" xlink:to="loc_us-gaap_OperatingLeaseCost_ea746b9e-3a81-42d5-b4b2-58aa3b9646a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_4665e2a4-8871-4c39-a694-0fadff595bab" 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_a244b319-d3e7-441b-86e9-8e42d9e12c5a" xlink:to="loc_us-gaap_VariableLeaseCost_4665e2a4-8871-4c39-a694-0fadff595bab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails" xlink:type="simple" xlink:href="ngm-20230630.xsd#CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0975775f-3df0-40a2-90ed-22093eeb63af" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_b83b73e2-6179-4c84-9b89-420b171169f6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0975775f-3df0-40a2-90ed-22093eeb63af" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_b83b73e2-6179-4c84-9b89-420b171169f6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_3ce930da-f729-45de-a78b-6bf7f7c89858" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_0975775f-3df0-40a2-90ed-22093eeb63af" xlink:to="loc_us-gaap_OperatingLeaseLiability_3ce930da-f729-45de-a78b-6bf7f7c89858" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
