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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:9e705a8a-069a-44cd-b18e-f5880d217ea3,g:819548c3-e75a-4775-a9b8-cf73d3b398cc-->
<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-20210630.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_Liabilities_b198f992-1a31-41dc-b296-6e9dc0536d5d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_5429d7d1-2e14-4ea1-8a65-35b7b555c3d6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b198f992-1a31-41dc-b296-6e9dc0536d5d" xlink:to="loc_us-gaap_LiabilitiesCurrent_5429d7d1-2e14-4ea1-8a65-35b7b555c3d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditNoncurrent_4633d3ec-42be-484f-a34f-f0c650d57940" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRentCreditNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_b198f992-1a31-41dc-b296-6e9dc0536d5d" xlink:to="loc_us-gaap_DeferredRentCreditNoncurrent_4633d3ec-42be-484f-a34f-f0c650d57940" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_19d3014f-3af2-4eb5-ae85-fc8e161bd592" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:to="loc_us-gaap_PreferredStockValue_19d3014f-3af2-4eb5-ae85-fc8e161bd592" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_dbd8592c-fd81-4547-afc5-8ae6ead2c39a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:to="loc_us-gaap_CommonStockValue_dbd8592c-fd81-4547-afc5-8ae6ead2c39a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_06b5ab45-6edb-4c15-b2bb-ade536cc2e0a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_06b5ab45-6edb-4c15-b2bb-ade536cc2e0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f325c6ed-995c-45e2-b024-1ad3acc1b8c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_f325c6ed-995c-45e2-b024-1ad3acc1b8c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6391b448-93f4-4a47-ad3a-6f53c57fa00f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4e2523c1-2abf-4c28-9449-10a283b4903f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6391b448-93f4-4a47-ad3a-6f53c57fa00f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_4da453ac-3913-456b-b8e8-1b049a970922" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_59acc684-7c6a-4cde-b05d-797aa41dc3f1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4da453ac-3913-456b-b8e8-1b049a970922" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_59acc684-7c6a-4cde-b05d-797aa41dc3f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_d91737e4-7240-4db6-91b7-40582def71d1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_4da453ac-3913-456b-b8e8-1b049a970922" xlink:to="loc_us-gaap_ShortTermInvestments_d91737e4-7240-4db6-91b7-40582def71d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_bbb20a45-be44-4bb2-a7bc-12ebefe66541" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ContractWithCustomerAssetNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4da453ac-3913-456b-b8e8-1b049a970922" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_bbb20a45-be44-4bb2-a7bc-12ebefe66541" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_720aee62-5072-4570-a97e-fd5862393eb5" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4da453ac-3913-456b-b8e8-1b049a970922" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_720aee62-5072-4570-a97e-fd5862393eb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueFromRelatedPartiesCurrent_3f6af7c2-a3ec-43c1-9b78-d375c49e1586" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DueFromRelatedPartiesCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_4da453ac-3913-456b-b8e8-1b049a970922" xlink:to="loc_us-gaap_DueFromRelatedPartiesCurrent_3f6af7c2-a3ec-43c1-9b78-d375c49e1586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_6845aa1c-e1c7-4138-a5c3-006648ecf8d0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_7f32e2d7-db96-4342-88bc-c2bba3d1718b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_6845aa1c-e1c7-4138-a5c3-006648ecf8d0" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_7f32e2d7-db96-4342-88bc-c2bba3d1718b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_f7dea094-5ed8-4f3b-bc5b-f1343b892cde" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_6845aa1c-e1c7-4138-a5c3-006648ecf8d0" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_f7dea094-5ed8-4f3b-bc5b-f1343b892cde" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditCurrent_0e15f4c2-d46d-4e7a-891f-25176bb6b0c8" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_DeferredRentCreditCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_6845aa1c-e1c7-4138-a5c3-006648ecf8d0" xlink:to="loc_us-gaap_DeferredRentCreditCurrent_0e15f4c2-d46d-4e7a-891f-25176bb6b0c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_00ca6bbe-f795-4b49-8c5b-a462717416a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_6845aa1c-e1c7-4138-a5c3-006648ecf8d0" xlink:to="loc_us-gaap_AccountsPayableCurrent_00ca6bbe-f795-4b49-8c5b-a462717416a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_038bcbed-5e98-488b-bfec-3c3e54f2468e" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_3ccea29f-3503-4dfa-9914-0babad48f598" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_038bcbed-5e98-488b-bfec-3c3e54f2468e" xlink:to="loc_us-gaap_AssetsCurrent_3ccea29f-3503-4dfa-9914-0babad48f598" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_f643c9a1-017c-4b6e-9d0b-2a9dac9a8adf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_038bcbed-5e98-488b-bfec-3c3e54f2468e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_f643c9a1-017c-4b6e-9d0b-2a9dac9a8adf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_653527e8-8338-412b-a12d-2e6459779ced" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_038bcbed-5e98-488b-bfec-3c3e54f2468e" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_653527e8-8338-412b-a12d-2e6459779ced" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_7141e709-87f2-4ca7-a285-ace47ee45f6a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_038bcbed-5e98-488b-bfec-3c3e54f2468e" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_7141e709-87f2-4ca7-a285-ace47ee45f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_252a0a86-c67b-4007-a7df-7715f54c5d41" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_fc91e5b0-3017-41e2-952a-a4d7aa03138b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_252a0a86-c67b-4007-a7df-7715f54c5d41" xlink:to="loc_us-gaap_Liabilities_fc91e5b0-3017-41e2-952a-a4d7aa03138b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_afa91bdc-849e-4486-a125-13f129af0d0a" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_252a0a86-c67b-4007-a7df-7715f54c5d41" xlink:to="loc_us-gaap_CommitmentsAndContingencies_afa91bdc-849e-4486-a125-13f129af0d0a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_d78e2973-7c87-423b-ba27-94832ad78fa6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_252a0a86-c67b-4007-a7df-7715f54c5d41" xlink:to="loc_us-gaap_StockholdersEquity_d78e2973-7c87-423b-ba27-94832ad78fa6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20210630.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_5f2b8ef5-c8f4-40df-be3c-b65dea3f3064" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_7951e085-1669-432f-9b2b-020d3bbab028" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5f2b8ef5-c8f4-40df-be3c-b65dea3f3064" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_7951e085-1669-432f-9b2b-020d3bbab028" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_66c6a81a-9238-4344-aede-1758f2b1f7d9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_5f2b8ef5-c8f4-40df-be3c-b65dea3f3064" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_66c6a81a-9238-4344-aede-1758f2b1f7d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_0c8055b3-7bd7-4fcf-9cfb-cfa88842aef4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_5a939a55-cff7-4540-8b4c-3045dd26caf1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0c8055b3-7bd7-4fcf-9cfb-cfa88842aef4" xlink:to="loc_us-gaap_OperatingIncomeLoss_5a939a55-cff7-4540-8b4c-3045dd26caf1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_f1e68b05-6ec2-4e65-a3b6-38957e168305" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0c8055b3-7bd7-4fcf-9cfb-cfa88842aef4" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_f1e68b05-6ec2-4e65-a3b6-38957e168305" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_90293096-e1a8-4691-8e55-cc950bffe69d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0c8055b3-7bd7-4fcf-9cfb-cfa88842aef4" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_90293096-e1a8-4691-8e55-cc950bffe69d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_a572de20-243d-4c39-9e0f-4b022b09d8af" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_80006544-8e0e-4abc-8d6d-3b983e8aaf73" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_a572de20-243d-4c39-9e0f-4b022b09d8af" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_80006544-8e0e-4abc-8d6d-3b983e8aaf73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_341a6d74-3124-449e-b5f1-554cf86e4a31" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_a572de20-243d-4c39-9e0f-4b022b09d8af" xlink:to="loc_us-gaap_OperatingExpenses_341a6d74-3124-449e-b5f1-554cf86e4a31" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20210630.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_11a1be5b-14f4-41b6-826e-7991ef67bbf6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_81881170-cfd1-40d8-a65f-dca0967086ff" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_11a1be5b-14f4-41b6-826e-7991ef67bbf6" xlink:to="loc_us-gaap_NetIncomeLoss_81881170-cfd1-40d8-a65f-dca0967086ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_48224181-69f6-43b3-86d7-043847c9add0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_11a1be5b-14f4-41b6-826e-7991ef67bbf6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_48224181-69f6-43b3-86d7-043847c9add0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20210630.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_ff526654-65b8-44f2-8310-9898ff90a292" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_ddd1ddc6-69ad-4f60-8aa5-a03b6dac22a2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_ddd1ddc6-69ad-4f60-8aa5-a03b6dac22a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_c5523b5f-2bc3-40b4-be4f-71a56b8a1461" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_c5523b5f-2bc3-40b4-be4f-71a56b8a1461" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_646705d8-9e45-403a-afcd-7848225fdcf0" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_646705d8-9e45-403a-afcd-7848225fdcf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_388c1086-c593-4223-a004-a7006a0813e9" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_ShareBasedCompensation_388c1086-c593-4223-a004-a7006a0813e9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_1ac8f9ed-7c53-45df-ae50-f35031bf44ec" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_ProfitLoss_1ac8f9ed-7c53-45df-ae50-f35031bf44ec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_d3f6c335-cf19-4e33-847a-5b1b8a8da9f9" xlink:href="ngm-20210630.xsd#ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssetsNoncash_d3f6c335-cf19-4e33-847a-5b1b8a8da9f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_9b258c5d-8fb6-4f78-ae23-b52942dd82c3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_9b258c5d-8fb6-4f78-ae23-b52942dd82c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_fff119cf-3884-4002-9298-645cea5967a7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_fff119cf-3884-4002-9298-645cea5967a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_e4a2aee6-4594-4582-9e3a-367b3876da3c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_Depreciation_e4a2aee6-4594-4582-9e3a-367b3876da3c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidRent_d9bf71a3-5f29-4536-9e92-b84e28fcdbe3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidRent"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidRent_d9bf71a3-5f29-4536-9e92-b84e28fcdbe3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_6baa3c27-869b-43a7-a000-6842ad77d4e3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_6baa3c27-869b-43a7-a000-6842ad77d4e3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_49ed518b-fade-4d68-9ce4-85e8170aa5c1" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerAsset"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerAsset_49ed518b-fade-4d68-9ce4-85e8170aa5c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_73cff398-0315-491d-9bd6-6e7f3eb82191" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="13" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ff526654-65b8-44f2-8310-9898ff90a292" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_73cff398-0315-491d-9bd6-6e7f3eb82191" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_51626f78-3846-448f-af37-ba972faaac2d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMarketableSecurities_2f8fa73f-dc98-48f9-ace9-7ce079e89ff6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_51626f78-3846-448f-af37-ba972faaac2d" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_2f8fa73f-dc98-48f9-ace9-7ce079e89ff6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_04066297-db2e-47be-9956-1d6084e82f1d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_51626f78-3846-448f-af37-ba972faaac2d" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_04066297-db2e-47be-9956-1d6084e82f1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_b0a5abda-c78e-42fe-b30d-17d692c679a6" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_51626f78-3846-448f-af37-ba972faaac2d" xlink:to="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_b0a5abda-c78e-42fe-b30d-17d692c679a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_b3e67539-92c7-4fbd-b59d-7404cbd66365" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f3f4c629-b901-450c-b2c7-d0ff79761fa3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b3e67539-92c7-4fbd-b59d-7404cbd66365" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_f3f4c629-b901-450c-b2c7-d0ff79761fa3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1bbfc652-9354-4c9a-8d64-fbddd7de9d29" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b3e67539-92c7-4fbd-b59d-7404cbd66365" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_1bbfc652-9354-4c9a-8d64-fbddd7de9d29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7b83d36-f5de-48c7-9f5c-8c9f6904582c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_b3e67539-92c7-4fbd-b59d-7404cbd66365" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_a7b83d36-f5de-48c7-9f5c-8c9f6904582c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af955d80-467d-4c32-98f7-34a553e9293f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_6733083f-cdd3-4b62-a322-9f3d7cfceb3d" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af955d80-467d-4c32-98f7-34a553e9293f" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_6733083f-cdd3-4b62-a322-9f3d7cfceb3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_b5e49440-4e22-4276-8bb6-2adae9c567f2" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_af955d80-467d-4c32-98f7-34a553e9293f" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_b5e49440-4e22-4276-8bb6-2adae9c567f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_83e193b1-56b8-41b4-8cbe-15d7b7b9505f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_af955d80-467d-4c32-98f7-34a553e9293f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_83e193b1-56b8-41b4-8cbe-15d7b7b9505f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_9bbb41ae-152f-48de-b626-d31a5f3d1881" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_af955d80-467d-4c32-98f7-34a553e9293f" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_9bbb41ae-152f-48de-b626-d31a5f3d1881" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20210630.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_0ef96809-8410-49bc-b9fc-4a25e7dae468" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_23ef7780-48f6-4415-a7c3-1ae3de4e53ee" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0ef96809-8410-49bc-b9fc-4a25e7dae468" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_23ef7780-48f6-4415-a7c3-1ae3de4e53ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5caebfbd-303e-43dd-9d5e-a78441bc1415" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0ef96809-8410-49bc-b9fc-4a25e7dae468" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_5caebfbd-303e-43dd-9d5e-a78441bc1415" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_89a2f1f4-68e6-4cbc-bdd8-4ccb0c6c45da" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_0ef96809-8410-49bc-b9fc-4a25e7dae468" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_89a2f1f4-68e6-4cbc-bdd8-4ccb0c6c45da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20210630.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_2513f3e0-12e5-4b6a-a30b-a10cfece49c7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5b8be8a8-8deb-4599-8249-5b8811d8fae4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_2513f3e0-12e5-4b6a-a30b-a10cfece49c7" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_5b8be8a8-8deb-4599-8249-5b8811d8fae4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_dce25695-5a2d-43f9-b314-49e382c701d3" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_2513f3e0-12e5-4b6a-a30b-a10cfece49c7" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_dce25695-5a2d-43f9-b314-49e382c701d3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ngm-20210630.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_01174a3a-9502-4133-9541-736bd89d1a3b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_7a020eeb-e636-4554-a398-c637e2ddb461" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_01174a3a-9502-4133-9541-736bd89d1a3b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_7a020eeb-e636-4554-a398-c637e2ddb461" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_30312307-713f-4bff-b63e-de6e883241db" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_01174a3a-9502-4133-9541-736bd89d1a3b" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_30312307-713f-4bff-b63e-de6e883241db" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20210630.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_b4e3a54a-9cee-4793-87f4-6464f40d0f64" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedManufacturingCostsCurrent_cedc4b91-90f0-4ceb-802c-54da2ccdc124" xlink:href="ngm-20210630.xsd#ngm_AccruedManufacturingCostsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_b4e3a54a-9cee-4793-87f4-6464f40d0f64" xlink:to="loc_ngm_AccruedManufacturingCostsCurrent_cedc4b91-90f0-4ceb-802c-54da2ccdc124" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedExpensesCurrent_657755f7-f298-42f0-b36d-f254a4f83ab7" xlink:href="ngm-20210630.xsd#ngm_AccruedExpensesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_b4e3a54a-9cee-4793-87f4-6464f40d0f64" xlink:to="loc_ngm_AccruedExpensesCurrent_657755f7-f298-42f0-b36d-f254a4f83ab7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_d3c46133-d7fa-4911-8b64-4b80669c9127" xlink:href="ngm-20210630.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_b4e3a54a-9cee-4793-87f4-6464f40d0f64" xlink:to="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_d3c46133-d7fa-4911-8b64-4b80669c9127" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedPersonnelExpenseCurrent_3e5923bd-d7f9-4060-a778-23bb3582a0cb" xlink:href="ngm-20210630.xsd#ngm_AccruedPersonnelExpenseCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrentAndNoncurrent_b4e3a54a-9cee-4793-87f4-6464f40d0f64" xlink:to="loc_ngm_AccruedPersonnelExpenseCurrent_3e5923bd-d7f9-4060-a778-23bb3582a0cb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails" xlink:type="simple" xlink:href="ngm-20210630.xsd#CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_3f5219eb-17d3-49d6-b98b-ba14836a3e27" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_4128bced-00c1-4b6c-b345-28398d1e60cf" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_3f5219eb-17d3-49d6-b98b-ba14836a3e27" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_4128bced-00c1-4b6c-b345-28398d1e60cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_bbf42a33-f56a-415e-a739-69aee241d0fb" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_3f5219eb-17d3-49d6-b98b-ba14836a3e27" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_bbf42a33-f56a-415e-a739-69aee241d0fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_OperatingLeasesFutureMinimumPaymentsYearOne_894e8787-41fd-47f4-aebd-b8b939a5b914" xlink:href="ngm-20210630.xsd#ngm_OperatingLeasesFutureMinimumPaymentsYearOne"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_3f5219eb-17d3-49d6-b98b-ba14836a3e27" xlink:to="loc_ngm_OperatingLeasesFutureMinimumPaymentsYearOne_894e8787-41fd-47f4-aebd-b8b939a5b914" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
