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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:d53933b1-14bd-494b-8cce-8cba2979205d,g:20587bf3-b78b-44aa-91a6-858a00ef47ac-->
<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/Cover" xlink:type="simple" xlink:href="ngm-20210331.xsd#Cover"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/Cover" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="ngm-20210331.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_StockholdersEquity_d9f0ed0c-9195-4209-bc81-cae89eea746f" 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_367bf958-d305-4d3e-8ec4-df9557002c59" 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_d9f0ed0c-9195-4209-bc81-cae89eea746f" xlink:to="loc_us-gaap_PreferredStockValue_367bf958-d305-4d3e-8ec4-df9557002c59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_ad6e37bd-0bcd-4190-bd0f-eedcd4464b7b" 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_d9f0ed0c-9195-4209-bc81-cae89eea746f" xlink:to="loc_us-gaap_CommonStockValue_ad6e37bd-0bcd-4190-bd0f-eedcd4464b7b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_e235c395-aaf3-4417-aec8-c82a65a05434" 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_d9f0ed0c-9195-4209-bc81-cae89eea746f" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_e235c395-aaf3-4417-aec8-c82a65a05434" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b4fc2b78-a4f9-4e56-93f3-1c9d33928398" 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_d9f0ed0c-9195-4209-bc81-cae89eea746f" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_b4fc2b78-a4f9-4e56-93f3-1c9d33928398" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6d8381be-6282-48be-98ed-a0cdd01ecfe8" 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_d9f0ed0c-9195-4209-bc81-cae89eea746f" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_6d8381be-6282-48be-98ed-a0cdd01ecfe8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_9fa91405-6bfd-449f-b476-fb865aabe0b2" 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_863cbc78-dbfe-4cb2-91b0-51d1c0eca5bc" 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_9fa91405-6bfd-449f-b476-fb865aabe0b2" xlink:to="loc_us-gaap_Liabilities_863cbc78-dbfe-4cb2-91b0-51d1c0eca5bc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_a5d51393-67d9-4ae2-aa25-0cd2e395b745" 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_9fa91405-6bfd-449f-b476-fb865aabe0b2" xlink:to="loc_us-gaap_CommitmentsAndContingencies_a5d51393-67d9-4ae2-aa25-0cd2e395b745" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_f5223a8b-2c77-4c24-81c1-3b0cf850e299" 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_9fa91405-6bfd-449f-b476-fb865aabe0b2" xlink:to="loc_us-gaap_StockholdersEquity_f5223a8b-2c77-4c24-81c1-3b0cf850e299" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_ed11ae46-9ae9-4137-95c0-d2f5cffca1e7" 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_AccountsPayableCurrent_bfa2a124-d8b1-4c6f-afc1-256bb83b2ec4" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ed11ae46-9ae9-4137-95c0-d2f5cffca1e7" xlink:to="loc_us-gaap_AccountsPayableCurrent_bfa2a124-d8b1-4c6f-afc1-256bb83b2ec4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_7a7ac521-3280-42d0-814a-74f5ab94a65f" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_ed11ae46-9ae9-4137-95c0-d2f5cffca1e7" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_7a7ac521-3280-42d0-814a-74f5ab94a65f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditCurrent_048ff399-e835-4a27-ad8a-5d46e19a0ca3" 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_ed11ae46-9ae9-4137-95c0-d2f5cffca1e7" xlink:to="loc_us-gaap_DeferredRentCreditCurrent_048ff399-e835-4a27-ad8a-5d46e19a0ca3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ea4f87fe-ec7d-4a42-a3ca-caa7933eb26d" 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_7a523ed0-e2d4-471a-a1d6-fae06edc6ac7" 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_ea4f87fe-ec7d-4a42-a3ca-caa7933eb26d" xlink:to="loc_us-gaap_AssetsCurrent_7a523ed0-e2d4-471a-a1d6-fae06edc6ac7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_64ba62af-7c1d-4f59-ba4a-7bcf8d1e8859" 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_ea4f87fe-ec7d-4a42-a3ca-caa7933eb26d" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_64ba62af-7c1d-4f59-ba4a-7bcf8d1e8859" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_eeff0398-cf50-4bc9-ab15-affb49263323" 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_ea4f87fe-ec7d-4a42-a3ca-caa7933eb26d" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_eeff0398-cf50-4bc9-ab15-affb49263323" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_bd8663f4-07b2-4ca9-ae9a-263586deb466" 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_ea4f87fe-ec7d-4a42-a3ca-caa7933eb26d" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_bd8663f4-07b2-4ca9-ae9a-263586deb466" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_d5eb9f23-675f-4d30-b97f-354e43406c07" 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_42f37328-1388-4697-a3ef-982302ef89c0" 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_d5eb9f23-675f-4d30-b97f-354e43406c07" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_42f37328-1388-4697-a3ef-982302ef89c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_c9c8b240-bc3c-4386-92a8-d7a2fe2107d9" 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_d5eb9f23-675f-4d30-b97f-354e43406c07" xlink:to="loc_us-gaap_ShortTermInvestments_c9c8b240-bc3c-4386-92a8-d7a2fe2107d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetNetCurrent_1a0eeaa3-7363-4db4-bae4-ea3900732aa5" 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_d5eb9f23-675f-4d30-b97f-354e43406c07" xlink:to="loc_us-gaap_ContractWithCustomerAssetNetCurrent_1a0eeaa3-7363-4db4-bae4-ea3900732aa5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_120bb731-6589-4c95-a949-f8587d838c85" 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_d5eb9f23-675f-4d30-b97f-354e43406c07" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_120bb731-6589-4c95-a949-f8587d838c85" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueFromRelatedPartiesCurrent_b0bc3a4a-d268-4307-98de-42738ce52a1c" 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_d5eb9f23-675f-4d30-b97f-354e43406c07" xlink:to="loc_us-gaap_DueFromRelatedPartiesCurrent_b0bc3a4a-d268-4307-98de-42738ce52a1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_1d5112b9-811b-47f0-a469-9ce761abd4de" 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_c9078430-52e6-4e44-b5f8-b658a0c10a5f" 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_1d5112b9-811b-47f0-a469-9ce761abd4de" xlink:to="loc_us-gaap_LiabilitiesCurrent_c9078430-52e6-4e44-b5f8-b658a0c10a5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredRentCreditNoncurrent_c7ddf489-c396-41b0-8944-5b8af428bfb8" 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_1d5112b9-811b-47f0-a469-9ce761abd4de" xlink:to="loc_us-gaap_DeferredRentCreditNoncurrent_c7ddf489-c396-41b0-8944-5b8af428bfb8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="ngm-20210331.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_18e7bddc-b0a1-426c-8694-9017ce165b93" 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_461cc97c-ea12-40d1-b216-dcd40363c875" 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_18e7bddc-b0a1-426c-8694-9017ce165b93" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_461cc97c-ea12-40d1-b216-dcd40363c875" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_c893de06-1bae-405a-8c82-2aa827b56c29" 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_18e7bddc-b0a1-426c-8694-9017ce165b93" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_c893de06-1bae-405a-8c82-2aa827b56c29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_03963bd7-2aec-463c-b7e8-2028eb926380" 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_8d81b839-3c64-442a-8937-8358acfa8246" 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_03963bd7-2aec-463c-b7e8-2028eb926380" xlink:to="loc_us-gaap_OperatingIncomeLoss_8d81b839-3c64-442a-8937-8358acfa8246" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_41bf07cb-f5bb-4eb3-8f27-27a15f881eef" 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_03963bd7-2aec-463c-b7e8-2028eb926380" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_41bf07cb-f5bb-4eb3-8f27-27a15f881eef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_64877082-4802-4000-b3bf-0c51c8b040a0" 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_03963bd7-2aec-463c-b7e8-2028eb926380" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_64877082-4802-4000-b3bf-0c51c8b040a0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_38794a3f-8187-4532-a5db-fc0d7e16a6f4" 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_03938afb-6273-4626-834f-f03f98858277" 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_38794a3f-8187-4532-a5db-fc0d7e16a6f4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_03938afb-6273-4626-834f-f03f98858277" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_dcaf026d-ff7e-4caf-80f6-153fa5df91d6" 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_38794a3f-8187-4532-a5db-fc0d7e16a6f4" xlink:to="loc_us-gaap_OperatingExpenses_dcaf026d-ff7e-4caf-80f6-153fa5df91d6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSS" xlink:type="simple" xlink:href="ngm-20210331.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_3f7d1a50-3a7e-4b57-8548-2f6f62a922cd" 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_bd4d3bb8-ff32-4cf7-9037-94213c87505c" 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_3f7d1a50-3a7e-4b57-8548-2f6f62a922cd" xlink:to="loc_us-gaap_NetIncomeLoss_bd4d3bb8-ff32-4cf7-9037-94213c87505c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_8e81462b-c70f-4888-b698-986ff595607c" 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_3f7d1a50-3a7e-4b57-8548-2f6f62a922cd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_8e81462b-c70f-4888-b698-986ff595607c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="ngm-20210331.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="ngm-20210331.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_e9f24013-bada-4aab-969c-cc6bd53650e4" 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_ProfitLoss_26c9820a-585b-4380-9d45-718159b52bda" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_ProfitLoss_26c9820a-585b-4380-9d45-718159b52bda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_ea846b26-c257-430b-bdbb-8aa9f76ca417" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_Depreciation_ea846b26-c257-430b-bdbb-8aa9f76ca417" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_cb5daab3-24de-446f-8cf0-2f39843a80b7" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_cb5daab3-24de-446f-8cf0-2f39843a80b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_8c977df5-074c-435e-a673-f0405647d08b" 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_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_ShareBasedCompensation_8c977df5-074c-435e-a673-f0405647d08b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_d200391d-9245-4e3f-bc24-06a4f4cd954c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_d200391d-9245-4e3f-bc24-06a4f4cd954c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_900ba22c-c9cc-4b0d-b4fb-a455c6bf463b" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_900ba22c-c9cc-4b0d-b4fb-a455c6bf463b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_afa660d4-28e1-44e1-958a-dfa234f81f9c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_afa660d4-28e1-44e1-958a-dfa234f81f9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_3b64b80b-225f-426c-97d7-9a2a110a9b48" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_3b64b80b-225f-426c-97d7-9a2a110a9b48" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_97febe4f-13a3-4301-abda-106be49a0f0c" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_97febe4f-13a3-4301-abda-106be49a0f0c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidRent_799888b2-ba39-4640-9e33-cce840e66866" 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_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidRent_799888b2-ba39-4640-9e33-cce840e66866" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_5e793d87-0f2e-4479-9dc0-29e0608b7740" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_5e793d87-0f2e-4479-9dc0-29e0608b7740" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssets_586ca339-6f41-41b4-a4e4-50ff0a125f99" xlink:href="ngm-20210331.xsd#ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssets"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e9f24013-bada-4aab-969c-cc6bd53650e4" xlink:to="loc_ngm_IncreaseDecreaseInDueFromRelatedPartiesContractAssets_586ca339-6f41-41b4-a4e4-50ff0a125f99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_46ae2aa5-b69b-49dc-a940-a1c24fe6e24d" 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_19ca91c2-a044-4c26-ad82-a8ee23192db8" 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_46ae2aa5-b69b-49dc-a940-a1c24fe6e24d" xlink:to="loc_us-gaap_PaymentsToAcquireMarketableSecurities_19ca91c2-a044-4c26-ad82-a8ee23192db8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_1b6ad816-fcc7-4060-8e35-23250cbecf46" 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_46ae2aa5-b69b-49dc-a940-a1c24fe6e24d" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities_1b6ad816-fcc7-4060-8e35-23250cbecf46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_4845faa5-d920-4562-a7c8-de57134cee23" 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_46ae2aa5-b69b-49dc-a940-a1c24fe6e24d" xlink:to="loc_us-gaap_PaymentsToAcquireMachineryAndEquipment_4845faa5-d920-4562-a7c8-de57134cee23" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_0874fb1c-5292-49fa-b5ce-4736c943aab3" 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_217feaa9-f094-4a01-ad41-6f80195acda5" 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_0874fb1c-5292-49fa-b5ce-4736c943aab3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_217feaa9-f094-4a01-ad41-6f80195acda5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_77f0b92c-5c03-44f5-a056-75fe46db5877" 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_0874fb1c-5292-49fa-b5ce-4736c943aab3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_77f0b92c-5c03-44f5-a056-75fe46db5877" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c4f88895-3929-4b95-a394-a5f64924fefc" 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_0874fb1c-5292-49fa-b5ce-4736c943aab3" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_c4f88895-3929-4b95-a394-a5f64924fefc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_844ae8d8-efe0-45b5-ac24-4c9db8a81373" 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_ProceedsFromStockOptionsExercised_16d6d58a-43c9-4e92-bf53-298b890e8f99" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_844ae8d8-efe0-45b5-ac24-4c9db8a81373" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_16d6d58a-43c9-4e92-bf53-298b890e8f99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_efd9377d-06d6-47da-ba14-be2fc2c8c111" xlink:href="http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.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_844ae8d8-efe0-45b5-ac24-4c9db8a81373" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_efd9377d-06d6-47da-ba14-be2fc2c8c111" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/OrganizationandDescriptionofBusiness" xlink:type="simple" xlink:href="ngm-20210331.xsd#OrganizationandDescriptionofBusiness"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/OrganizationandDescriptionofBusiness" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesEstimatedUsefulLifeofAssetDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesComputationofNetLossPerCommonShareDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/SummaryofSignificantAccountingPoliciesPotentiallyDilutiveSecuritiesNotIncludedintheDilutedNetLossPerShareCalculationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurements"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofCashandCashEquivalentsandMarketableSecuritiesClassifiedasAvailableforsaleSecuritiesDetails" xlink:type="simple" xlink:href="ngm-20210331.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_49a7b22d-66b1-47ce-becd-83dc60bf8255" 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_6c3b5471-10b4-451c-b2e0-c460031369de" 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_49a7b22d-66b1-47ce-becd-83dc60bf8255" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_6c3b5471-10b4-451c-b2e0-c460031369de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a3c24d46-dbe4-4af6-a1ae-b4c3e2f2c961" 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_49a7b22d-66b1-47ce-becd-83dc60bf8255" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_a3c24d46-dbe4-4af6-a1ae-b4c3e2f2c961" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_cdd08d0f-0046-4349-adb3-694c6427491c" 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_49a7b22d-66b1-47ce-becd-83dc60bf8255" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_cdd08d0f-0046-4349-adb3-694c6427491c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/FairValueMeasurementsSummaryofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponents" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponents"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponents" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofReconciliationofCashCashEquivalentandRestrictedCashDetails" xlink:type="simple" xlink:href="ngm-20210331.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_751a3411-ffb2-4838-b8e4-51f0ad414d36" 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_526a5398-d50b-49d6-88af-b68c2c0e67a1" 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_751a3411-ffb2-4838-b8e4-51f0ad414d36" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_526a5398-d50b-49d6-88af-b68c2c0e67a1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_9d799563-bcf2-4da4-8c88-d7335d69f0a1" 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_751a3411-ffb2-4838-b8e4-51f0ad414d36" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_9d799563-bcf2-4da4-8c88-d7335d69f0a1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofPropertyandEquipmentDetails" xlink:type="simple" xlink:href="ngm-20210331.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_31db30d5-e7fa-425b-8c27-c25e94c01898" 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_314f53a0-974d-4f7e-a4a6-fdf6cca80e17" 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_31db30d5-e7fa-425b-8c27-c25e94c01898" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_314f53a0-974d-4f7e-a4a6-fdf6cca80e17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_cc590306-d821-4ec0-ac78-7fd3d36d1170" 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_31db30d5-e7fa-425b-8c27-c25e94c01898" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_cc590306-d821-4ec0-ac78-7fd3d36d1170" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#BalanceSheetComponentsNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/BalanceSheetComponentsNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/BalanceSheetComponentsScheduleofAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="ngm-20210331.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_68d50800-85fc-4e11-ad09-24cfbe3b6753" 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_5e94fb44-5b38-4590-9d91-5a141c777a24" xlink:href="ngm-20210331.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_68d50800-85fc-4e11-ad09-24cfbe3b6753" xlink:to="loc_ngm_AccruedManufacturingCostsCurrent_5e94fb44-5b38-4590-9d91-5a141c777a24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedExpensesCurrent_2dc5ff87-fab6-485b-b1fd-d5e844e1c06b" xlink:href="ngm-20210331.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_68d50800-85fc-4e11-ad09-24cfbe3b6753" xlink:to="loc_ngm_AccruedExpensesCurrent_2dc5ff87-fab6-485b-b1fd-d5e844e1c06b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_426ad241-deda-4fc2-8e2f-919fc6e934b0" xlink:href="ngm-20210331.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_68d50800-85fc-4e11-ad09-24cfbe3b6753" xlink:to="loc_ngm_AccruedClinicalTrialsAndResearchAndDevelopmentCostsCurrent_426ad241-deda-4fc2-8e2f-919fc6e934b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_AccruedPersonnelExpenseCurrent_f58c844c-296c-4025-9ee7-f686a8160d93" xlink:href="ngm-20210331.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_68d50800-85fc-4e11-ad09-24cfbe3b6753" xlink:to="loc_ngm_AccruedPersonnelExpenseCurrent_f58c844c-296c-4025-9ee7-f686a8160d93" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreements" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreements"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofMilestonePaymentsbyIndicationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/ResearchCollaborationandLicenseAgreementsScheduleofRecognizedRevenuefromCollaborationandLicenseAgreementsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingencies" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingencies"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingenciesTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#CommitmentsandContingenciesNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/CommitmentsandContingenciesNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/CommitmentsandContingenciesFutureMinimumCommitmentsunderUnassignedLeaseObligationsDetails" xlink:type="simple" xlink:href="ngm-20210331.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_803e5571-9b39-4e67-a238-6f356742bf27" 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_f4bea798-e97a-4a82-95b1-ed09dbefa028" 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_803e5571-9b39-4e67-a238-6f356742bf27" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsRemainderOfFiscalYear_f4bea798-e97a-4a82-95b1-ed09dbefa028" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ff4f1bad-e30b-4f3b-87d0-632eeae4d2eb" 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_803e5571-9b39-4e67-a238-6f356742bf27" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_ff4f1bad-e30b-4f3b-87d0-632eeae4d2eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ngm_OperatingLeasesFutureMinimumPaymentsYearOne_1e15bd32-2887-4d97-9c86-5c4da15b1dc6" xlink:href="ngm-20210331.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_803e5571-9b39-4e67-a238-6f356742bf27" xlink:to="loc_ngm_OperatingLeasesFutureMinimumPaymentsYearOne_1e15bd32-2887-4d97-9c86-5c4da15b1dc6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquity" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquity"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityTables" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityTables"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityNarrativeDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquityScheduleofSharesofCommonStockReservedforIssuanceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquitySummaryofActivityunder2008Planand2018PlanDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/StockholdersEquitySummaryofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="ngm-20210331.xsd#StockholdersEquitySummaryofStockBasedCompensationExpenseDetails"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/StockholdersEquitySummaryofStockBasedCompensationExpenseDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.ngmbio.com/role/IncomeTaxes" xlink:type="simple" xlink:href="ngm-20210331.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.ngmbio.com/role/IncomeTaxes" xlink:type="extended"/>
</link:linkbase>
