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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2022 Workiva-->
<!--r:02b09955-d9f6-4038-babc-9f320ce6cf37,g:d5a93dd4-76fd-4122-9fde-f43c3ccd2e21-->
<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-20220930.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_AssetsCurrent_1a97e09e-e8b2-4ca1-afcc-da33fd55cb27" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_41753a99-9df4-4f01-bc1a-1b19f21e9f62" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1a97e09e-e8b2-4ca1-afcc-da33fd55cb27" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_41753a99-9df4-4f01-bc1a-1b19f21e9f62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_0ab54f1d-fc6e-4601-86c6-42f6e26aa1fe" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1a97e09e-e8b2-4ca1-afcc-da33fd55cb27" xlink:to="loc_us-gaap_ShortTermInvestments_0ab54f1d-fc6e-4601-86c6-42f6e26aa1fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_9a1bfcdf-7024-40a6-b062-a659e61c4644" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_1a97e09e-e8b2-4ca1-afcc-da33fd55cb27" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_9a1bfcdf-7024-40a6-b062-a659e61c4644" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueFromRelatedPartiesCurrent_749f109e-22d5-4926-bd8b-fa67faf7b506" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DueFromRelatedPartiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_1a97e09e-e8b2-4ca1-afcc-da33fd55cb27" xlink:to="loc_us-gaap_DueFromRelatedPartiesCurrent_749f109e-22d5-4926-bd8b-fa67faf7b506" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_43dfd4e4-505f-44af-811d-2a1426ba0de9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:to="loc_us-gaap_AssetsCurrent_43dfd4e4-505f-44af-811d-2a1426ba0de9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_3ac5eb5d-bec6-432d-b315-f1bdb877ca3c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_3ac5eb5d-bec6-432d-b315-f1bdb877ca3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_56ad038f-0dba-419b-9197-edf4a2e216e4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_56ad038f-0dba-419b-9197-edf4a2e216e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_2c02981d-22f3-41d9-b679-eb1af65795cf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_2c02981d-22f3-41d9-b679-eb1af65795cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_d77fd73e-cf21-4490-aff9-0fdeaf7bed97" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_4e854c5f-56ce-42ac-b6c2-3339fd664923" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_d77fd73e-cf21-4490-aff9-0fdeaf7bed97" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_66a384f9-5d43-4316-8ea1-3a76b554e343" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_31d3e8f5-3bc5-4229-abc5-96c07c7a17ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_66a384f9-5d43-4316-8ea1-3a76b554e343" xlink:to="loc_us-gaap_Liabilities_31d3e8f5-3bc5-4229-abc5-96c07c7a17ae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_35b44317-84b9-4485-92c3-49c4b65e40c8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_66a384f9-5d43-4316-8ea1-3a76b554e343" xlink:to="loc_us-gaap_CommitmentsAndContingencies_35b44317-84b9-4485-92c3-49c4b65e40c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f448acac-f996-4216-b454-6c62c5282503" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_66a384f9-5d43-4316-8ea1-3a76b554e343" xlink:to="loc_us-gaap_StockholdersEquity_f448acac-f996-4216-b454-6c62c5282503" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_484a953a-0209-455c-a6e2-6c70f6303a40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_0291b322-4b1d-4a62-89c2-589e7b47498b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_484a953a-0209-455c-a6e2-6c70f6303a40" xlink:to="loc_us-gaap_LiabilitiesCurrent_0291b322-4b1d-4a62-89c2-589e7b47498b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_edb5bbcd-9547-4677-ab4e-5bae83052f54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_484a953a-0209-455c-a6e2-6c70f6303a40" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_edb5bbcd-9547-4677-ab4e-5bae83052f54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_ffaaeddc-0526-4847-83ac-598a4f6584f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_45993f92-caab-433f-83f5-6d557df1fc58" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ffaaeddc-0526-4847-83ac-598a4f6584f0" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_45993f92-caab-433f-83f5-6d557df1fc58" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_c9e8417d-19f3-4474-9412-9492dff6b47e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ffaaeddc-0526-4847-83ac-598a4f6584f0" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_c9e8417d-19f3-4474-9412-9492dff6b47e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_1b75a384-1ab1-4c93-ab8e-13ca353249ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_ffaaeddc-0526-4847-83ac-598a4f6584f0" xlink:to="loc_us-gaap_AccountsPayableCurrent_1b75a384-1ab1-4c93-ab8e-13ca353249ba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_c6e843ae-d751-40ab-ac15-c412c83a844a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ffaaeddc-0526-4847-83ac-598a4f6584f0" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_c6e843ae-d751-40ab-ac15-c412c83a844a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_198d7e6c-c7dc-49c2-927f-f56afff0404a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:to="loc_us-gaap_PreferredStockValue_198d7e6c-c7dc-49c2-927f-f56afff0404a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_99b9f1f1-9333-4b7a-83d5-5fd6c4156e52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:to="loc_us-gaap_CommonStockValue_99b9f1f1-9333-4b7a-83d5-5fd6c4156e52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_17e31d45-ec93-4c4c-a870-76a6f4750e82" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_17e31d45-ec93-4c4c-a870-76a6f4750e82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ad7e2c35-c147-4c27-9d13-e34d19605e48" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_ad7e2c35-c147-4c27-9d13-e34d19605e48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e535d0e5-8309-4e4b-a91f-eeb2db25d688" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_62a159ab-8f4a-42ae-993b-14ae06e35ecd" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_e535d0e5-8309-4e4b-a91f-eeb2db25d688" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20220930.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_89a5d5a8-3ac6-47b0-b11f-a70ceddad4f3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_fe84aace-c750-4e27-8491-73583d3e5f54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_89a5d5a8-3ac6-47b0-b11f-a70ceddad4f3" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_fe84aace-c750-4e27-8491-73583d3e5f54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_0c8de1bf-a8c7-44d4-874c-05e545644302" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingExpenses_89a5d5a8-3ac6-47b0-b11f-a70ceddad4f3" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_0c8de1bf-a8c7-44d4-874c-05e545644302" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_1e7692f4-0cfd-43ce-8fb6-6d5e91462b84" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_025df92c-8642-4fa6-af84-9b360b97aae0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_1e7692f4-0cfd-43ce-8fb6-6d5e91462b84" xlink:to="loc_us-gaap_OperatingIncomeLoss_025df92c-8642-4fa6-af84-9b360b97aae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_be5d2454-8801-420b-bb46-8212c5ae8f33" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1e7692f4-0cfd-43ce-8fb6-6d5e91462b84" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_be5d2454-8801-420b-bb46-8212c5ae8f33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_efe154b5-84b0-413d-bccd-71937efeec5e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_1e7692f4-0cfd-43ce-8fb6-6d5e91462b84" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_efe154b5-84b0-413d-bccd-71937efeec5e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_8e25ea23-c1ce-4f96-a83c-a8aa66cec26c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_bbf43dd1-f6c8-4cb8-96d5-dba4ad7d1acd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8e25ea23-c1ce-4f96-a83c-a8aa66cec26c" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_bbf43dd1-f6c8-4cb8-96d5-dba4ad7d1acd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_f9f0f694-08ed-40e2-ad99-f3460a33d3be" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_8e25ea23-c1ce-4f96-a83c-a8aa66cec26c" xlink:to="loc_us-gaap_OperatingExpenses_f9f0f694-08ed-40e2-ad99-f3460a33d3be" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20220930.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_0e229e78-18f1-4edb-b215-c0a6fc284df1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_587a3288-4ef4-41e0-8ff3-7e948f3ffee9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_0e229e78-18f1-4edb-b215-c0a6fc284df1" xlink:to="loc_us-gaap_NetIncomeLoss_587a3288-4ef4-41e0-8ff3-7e948f3ffee9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3f3a4bec-a0a3-43d8-aa0e-b1b2c7b87d64" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_0e229e78-18f1-4edb-b215-c0a6fc284df1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_3f3a4bec-a0a3-43d8-aa0e-b1b2c7b87d64" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20220930.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_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_c8deb68e-f2ba-495a-80f8-a1b5e776ab24" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_Depreciation_c8deb68e-f2ba-495a-80f8-a1b5e776ab24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_44d65288-4cc2-4937-955d-b58e422db0a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_44d65288-4cc2-4937-955d-b58e422db0a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_7cf50219-c6b3-4e49-b74d-99bbdb6c052e" xlink:href="ngm-20220930.xsd#ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_7cf50219-c6b3-4e49-b74d-99bbdb6c052e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_3307b034-2e8f-4553-b0e2-6a6fb0501317" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_3307b034-2e8f-4553-b0e2-6a6fb0501317" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_095a1704-8705-457c-8520-b3b89992774a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInOperatingLeaseLiability"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInOperatingLeaseLiability_095a1704-8705-457c-8520-b3b89992774a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_1c1f2952-5101-4c20-97b1-f3a1c316d649" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_ProfitLoss_1c1f2952-5101-4c20-97b1-f3a1c316d649" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_8903fd58-a3a4-4ee5-92b4-38907b372c8d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_8903fd58-a3a4-4ee5-92b4-38907b372c8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_ddd0d276-a1d1-496e-9f4e-7cedbe4df3df" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_ddd0d276-a1d1-496e-9f4e-7cedbe4df3df" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_10e6d099-05a0-4243-989f-0b32a8437033" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_10e6d099-05a0-4243-989f-0b32a8437033" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_ac50b0ea-d9e8-458c-ab7b-f67d36f8e6fc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_ShareBasedCompensation_ac50b0ea-d9e8-458c-ab7b-f67d36f8e6fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_3138cc72-5486-487d-a31f-165c56cc3233" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerAsset"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_3138cc72-5486-487d-a31f-165c56cc3233" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_4d08311b-cec4-40ed-87e0-b87125563f91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_4d08311b-cec4-40ed-87e0-b87125563f91" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_d8121ea5-c10d-48ab-96f6-8ca26306d86f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_d8121ea5-c10d-48ab-96f6-8ca26306d86f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_85b0c08d-cdb9-4b1f-b77b-7dc4268f670b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f87af05c-1928-446b-bb3b-7054ba33a8b0" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_85b0c08d-cdb9-4b1f-b77b-7dc4268f670b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_be1ed99c-4890-42b3-b34f-9cd9d7a6d2ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_38a7b343-e40c-4daa-a908-9976ffb01f59" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_be1ed99c-4890-42b3-b34f-9cd9d7a6d2ce" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_38a7b343-e40c-4daa-a908-9976ffb01f59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_e0c28a63-3746-4e7f-a378-a937bb414278" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_be1ed99c-4890-42b3-b34f-9cd9d7a6d2ce" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_e0c28a63-3746-4e7f-a378-a937bb414278" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_4e82e3c0-8c5f-46ad-bff7-741de850a826" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_be1ed99c-4890-42b3-b34f-9cd9d7a6d2ce" xlink:to="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_4e82e3c0-8c5f-46ad-bff7-741de850a826" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_69762f17-e55f-482f-aeef-19b400d30990" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_c235b9e5-5df0-4d38-960a-1ee6d5e3dbf9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_69762f17-e55f-482f-aeef-19b400d30990" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_c235b9e5-5df0-4d38-960a-1ee6d5e3dbf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_8db7a39a-8935-428e-a9a6-14f4024d7705" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_69762f17-e55f-482f-aeef-19b400d30990" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_8db7a39a-8935-428e-a9a6-14f4024d7705" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_ProceedsFromIssuanceOpenMarketAgreement_6d425e67-914f-48f4-8d6e-e32130b9c084" xlink:href="ngm-20220930.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_69762f17-e55f-482f-aeef-19b400d30990" xlink:to="loc_ngm_ProceedsFromIssuanceOpenMarketAgreement_6d425e67-914f-48f4-8d6e-e32130b9c084" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_2e081935-8593-4c91-8fe0-fdd12f78892f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_69762f17-e55f-482f-aeef-19b400d30990" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_2e081935-8593-4c91-8fe0-fdd12f78892f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_65d25ecc-28ea-45f2-b95d-88a9c0625626" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1d6687e8-a93e-4f17-8e2c-4be29719804e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_65d25ecc-28ea-45f2-b95d-88a9c0625626" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_1d6687e8-a93e-4f17-8e2c-4be29719804e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_967095f8-991b-4fe7-b18d-c37083cb4471" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_65d25ecc-28ea-45f2-b95d-88a9c0625626" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_967095f8-991b-4fe7-b18d-c37083cb4471" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_229e935d-7f82-4d82-9c53-7026ea2b3ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_65d25ecc-28ea-45f2-b95d-88a9c0625626" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_229e935d-7f82-4d82-9c53-7026ea2b3ff7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20220930.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_548019c0-bb04-4d0d-9481-7d937eade4f1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_82b17840-643c-409b-a0ac-81eb4afadba8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_548019c0-bb04-4d0d-9481-7d937eade4f1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_82b17840-643c-409b-a0ac-81eb4afadba8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_cdf9d311-05c2-4c89-ba96-5bd6c9a01f4c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_548019c0-bb04-4d0d-9481-7d937eade4f1" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_cdf9d311-05c2-4c89-ba96-5bd6c9a01f4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_5d66b932-4cd1-4d64-b1cd-d2b2285a81b5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_548019c0-bb04-4d0d-9481-7d937eade4f1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_5d66b932-4cd1-4d64-b1cd-d2b2285a81b5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20220930.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_57b2ff16-de5e-44e8-9086-f43cfa9138ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a9a180b4-83bf-4982-9bac-b60ed7c10117" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_57b2ff16-de5e-44e8-9086-f43cfa9138ce" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_a9a180b4-83bf-4982-9bac-b60ed7c10117" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_393b065b-af01-431b-914e-3ce372d8c40d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_57b2ff16-de5e-44e8-9086-f43cfa9138ce" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_393b065b-af01-431b-914e-3ce372d8c40d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ngm-20220930.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_a83eb087-5d90-424b-9bbe-c2a241ec0475" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_002258d1-43cc-4196-bb98-bc20f4fdfc40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a83eb087-5d90-424b-9bbe-c2a241ec0475" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_002258d1-43cc-4196-bb98-bc20f4fdfc40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0279fbd3-49ad-4539-b59b-daa06b7778a0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_a83eb087-5d90-424b-9bbe-c2a241ec0475" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_0279fbd3-49ad-4539-b59b-daa06b7778a0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20220930.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_AccruedLiabilitiesCurrentAndNoncurrent_dcd96303-eba2-451a-b4c8-d3e70b241bc5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedManufacturingCosts_a55a3c7a-da2a-4b61-b779-eb6a6830b343" xlink:href="ngm-20220930.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_AccruedLiabilitiesCurrentAndNoncurrent_dcd96303-eba2-451a-b4c8-d3e70b241bc5" xlink:to="loc_ngm_AccruedManufacturingCosts_a55a3c7a-da2a-4b61-b779-eb6a6830b343" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_74cac547-1e01-4270-bbff-c2b292032b23" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_dcd96303-eba2-451a-b4c8-d3e70b241bc5" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_74cac547-1e01-4270-bbff-c2b292032b23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_36fdf76c-366c-4e07-9821-71a4ea590bc3" xlink:href="ngm-20220930.xsd#ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_dcd96303-eba2-451a-b4c8-d3e70b241bc5" xlink:to="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_36fdf76c-366c-4e07-9821-71a4ea590bc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_fd82d72b-e80c-4814-9024-8c875065ee52" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_dcd96303-eba2-451a-b4c8-d3e70b241bc5" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_fd82d72b-e80c-4814-9024-8c875065ee52" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesComponentsofLeaseCostsDetails" xlink:type="simple" xlink:href="ngm-20220930.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_de2204c2-83b3-4537-bfc1-003f78db95e5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_7fd025e8-34c3-4b87-b030-6a23b46c432a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_de2204c2-83b3-4537-bfc1-003f78db95e5" xlink:to="loc_us-gaap_OperatingLeaseCost_7fd025e8-34c3-4b87-b030-6a23b46c432a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableLeaseCost_11b855c0-a246-4767-a7cf-b1ae49a8c138" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_de2204c2-83b3-4537-bfc1-003f78db95e5" xlink:to="loc_us-gaap_VariableLeaseCost_11b855c0-a246-4767-a7cf-b1ae49a8c138" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails" xlink:type="simple" xlink:href="ngm-20220930.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_b75e0cf9-0265-4249-931a-7cdc5d38a996" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a06e0f72-dfab-4f4b-9fb0-800c5ddb42e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b75e0cf9-0265-4249-931a-7cdc5d38a996" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_a06e0f72-dfab-4f4b-9fb0-800c5ddb42e1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_67a1c4fe-5628-4e76-9370-05696cac57b0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.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_b75e0cf9-0265-4249-931a-7cdc5d38a996" xlink:to="loc_us-gaap_OperatingLeaseLiability_67a1c4fe-5628-4e76-9370-05696cac57b0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails_1" xlink:type="simple" xlink:href="ngm-20220930.xsd#CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails_1"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesOperatingLeaseLiabilityMaturityDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_983b3aa4-634e-4d2f-b274-10112fbfe4f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a4f62e97-2eca-48a6-a349-79ae840dca60" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_983b3aa4-634e-4d2f-b274-10112fbfe4f0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_a4f62e97-2eca-48a6-a349-79ae840dca60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_e0d14bc4-08ce-4104-844e-637e1a402dc3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_983b3aa4-634e-4d2f-b274-10112fbfe4f0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_e0d14bc4-08ce-4104-844e-637e1a402dc3" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
