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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e6c04-3b5f-725a-82ef-46cfd3592b7a,g:868a9f83-0b37-4e6f-afe9-a5f0e84e0d78-->
<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:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.codexis.com/role/CondensedConsolidatedBalanceSheets" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CondensedConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CondensedConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019e6c04-3c30-783f-a1a8-200fa7e8b559" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_RestrictedCash_019e6c04-3c30-783f-a1a8-200fa7e8b559" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShortTermInvestments_019e6c04-3c30-7aa8-bef2-ef5d0715fc8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShortTermInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_ShortTermInvestments_019e6c04-3c30-7aa8-bef2-ef5d0715fc8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019e6c04-3c30-72b1-871f-0b517005888d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_InventoryNet_019e6c04-3c30-72b1-871f-0b517005888d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e6c04-3c30-7db6-8c38-9bd7248122ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e6c04-3c30-7db6-8c38-9bd7248122ef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e6c04-3c30-7b57-9c7c-ddd55c779a0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e6c04-3c30-7b57-9c7c-ddd55c779a0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_019e6c04-3c30-7339-b5c3-222649429003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsNotesAndLoansReceivableNetCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019e6c04-3c30-7eb9-bab1-a9a8985abdcf" xlink:to="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_019e6c04-3c30-7339-b5c3-222649429003" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7923-875c-5b59918f6003" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NotesReceivableGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnbilledReceivablesCurrent_019e6c04-3c30-7565-a829-a4c1b3096f89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnbilledReceivablesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7923-875c-5b59918f6003" xlink:to="loc_us-gaap_UnbilledReceivablesCurrent_019e6c04-3c30-7565-a829-a4c1b3096f89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019e6c04-3c30-7e14-9593-9a744f9305d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerAssetGrossCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7923-875c-5b59918f6003" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019e6c04-3c30-7e14-9593-9a744f9305d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableGrossCurrent_019e6c04-3c30-712e-a10b-da5543af12b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableGrossCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7923-875c-5b59918f6003" xlink:to="loc_us-gaap_AccountsReceivableGrossCurrent_019e6c04-3c30-712e-a10b-da5543af12b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e6c04-3c30-7ca3-a885-fcdd2c48407d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e6c04-3c30-7985-8b30-2ebf5b330308" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e6c04-3c30-7ca3-a885-fcdd2c48407d" xlink:to="loc_us-gaap_Liabilities_019e6c04-3c30-7985-8b30-2ebf5b330308" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019e6c04-3c30-75ea-b7bd-e124ea5c2f15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e6c04-3c30-7ca3-a885-fcdd2c48407d" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019e6c04-3c30-75ea-b7bd-e124ea5c2f15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7fa2-a23d-df86414953ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e6c04-3c30-7ca3-a885-fcdd2c48407d" xlink:to="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7fa2-a23d-df86414953ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019e6c04-3c30-77ed-bccc-be017a12475b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_AccountsPayableCurrent_019e6c04-3c30-77ed-bccc-be017a12475b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019e6c04-3c30-70a6-b92a-ac5538c5d3c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_EmployeeRelatedLiabilitiesCurrent_019e6c04-3c30-70a6-b92a-ac5538c5d3c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-7b30-85c9-4b3699af1d5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-7b30-85c9-4b3699af1d5d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e6c04-3c30-71df-b23f-d3e38c94d88d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e6c04-3c30-71df-b23f-d3e38c94d88d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019e6c04-3c30-74e0-a8e2-ef704f554645" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_LongTermDebtCurrent_019e6c04-3c30-74e0-a8e2-ef704f554645" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019fbf66-7487-7aa5-8bd0-61d4d64dffcf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7817-b6f3-556c973c2e5d" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019fbf66-7487-7aa5-8bd0-61d4d64dffcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019e6c04-3c30-7a2b-b5ed-64e191527d10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_Goodwill_019e6c04-3c30-7a2b-b5ed-64e191527d10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019e6c04-3c30-7e2b-ab87-2f5355d03615" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019e6c04-3c30-7e2b-ab87-2f5355d03615" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_019e6c04-3c30-7e68-b046-c11b83f04c1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsNoncurrent_019e6c04-3c30-7e68-b046-c11b83f04c1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentsAndOtherNoncurrentAssets_019e6c04-3c30-7892-9bbb-a57b5169ea44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentsAndOtherNoncurrentAssets"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_InvestmentsAndOtherNoncurrentAssets_019e6c04-3c30-7892-9bbb-a57b5169ea44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e6c04-3c30-7f5d-a59a-f5a4ae6c430e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e6c04-3c30-7f5d-a59a-f5a4ae6c430e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019e6c04-3c30-76e3-9581-418661c6fc46" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019e6c04-3c30-76e3-9581-418661c6fc46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e6c04-3c30-78af-b9a4-ba71ffebef35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e6c04-3c30-7cf2-baec-5e08dae7fd25" xlink:to="loc_us-gaap_AssetsCurrent_019e6c04-3c30-78af-b9a4-ba71ffebef35" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_019e6c04-3c30-7917-a8d8-79bc0a7de02e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsNotesAndLoansReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7853-b169-6b07cb1286e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NotesReceivableGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_019e6c04-3c30-7917-a8d8-79bc0a7de02e" xlink:to="loc_us-gaap_NotesReceivableGross_019e6c04-3c30-7853-b169-6b07cb1286e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForNotesAndLoansReceivableCurrent_019e6c04-3c30-7082-862c-40e36d188cad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForNotesAndLoansReceivableCurrent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsNotesAndLoansReceivableNetCurrent_019e6c04-3c30-7917-a8d8-79bc0a7de02e" xlink:to="loc_us-gaap_AllowanceForNotesAndLoansReceivableCurrent_019e6c04-3c30-7082-862c-40e36d188cad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e6c04-3c30-71ed-b4b5-34ee84d0a914" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e6c04-3c30-71ed-b4b5-34ee84d0a914" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e6c04-3c30-7686-8e7e-d0244ee0377a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:to="loc_us-gaap_CommonStockValue_019e6c04-3c30-7686-8e7e-d0244ee0377a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019e6c04-3c30-78ed-8436-411f62242b3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019e6c04-3c30-78ed-8436-411f62242b3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e6c04-3c30-70de-9de5-bfe685df243f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e6c04-3c30-70de-9de5-bfe685df243f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019e6c04-3c30-77b1-bea3-33f43e7716fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e6c04-3c30-7d1e-90b6-6ab53b262977" xlink:to="loc_us-gaap_PreferredStockValue_019e6c04-3c30-77b1-bea3-33f43e7716fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7007-a847-871d62028f76" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:to="loc_us-gaap_LiabilitiesCurrent_019e6c04-3c30-7007-a847-871d62028f76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019e6c04-3c30-7397-a91e-a017abd86f16" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019e6c04-3c30-7397-a91e-a017abd86f16" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e6c04-3c30-75fb-bf95-30f664424213" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e6c04-3c30-75fb-bf95-30f664424213" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019e6c04-3c30-700e-a720-f1be47dd97c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019e6c04-3c30-700e-a720-f1be47dd97c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019e6c04-3c30-7c76-9058-b297c7a13b11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e6c04-3c30-7bfe-8fb0-1100075b3994" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019e6c04-3c30-7c76-9058-b297c7a13b11" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CondensedConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CondensedConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-7dc8-89ce-56c46307f740" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019e6c04-3c30-7ad6-8659-b386a76ccafe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-7dc8-89ce-56c46307f740" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019e6c04-3c30-7ad6-8659-b386a76ccafe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019e6c04-3c30-72ba-89f3-34ad0026043b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-7dc8-89ce-56c46307f740" xlink:to="loc_us-gaap_SellingGeneralAndAdministrativeExpense_019e6c04-3c30-72ba-89f3-34ad0026043b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_019e6c04-3c30-787a-a8b2-f0de0d9523ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-7dc8-89ce-56c46307f740" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_019e6c04-3c30-787a-a8b2-f0de0d9523ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-76eb-9b51-68f0ed7877f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e6c04-3c30-77e4-a5d7-cc0fd12f7302" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-76eb-9b51-68f0ed7877f3" xlink:to="loc_us-gaap_OperatingIncomeLoss_019e6c04-3c30-77e4-a5d7-cc0fd12f7302" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_019e6c04-3c30-7995-a017-43fd0863694c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-76eb-9b51-68f0ed7877f3" xlink:to="loc_us-gaap_InvestmentIncomeInterest_019e6c04-3c30-7995-a017-43fd0863694c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019e6c04-3c30-7977-8008-4ad7f9ea6ef9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-76eb-9b51-68f0ed7877f3" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019e6c04-3c30-7977-8008-4ad7f9ea6ef9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019e6c04-3c30-77ce-9adf-caf3aa995725" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7a47-ac4d-89e0333de15e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e6c04-3c30-77ce-9adf-caf3aa995725" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7a47-ac4d-89e0333de15e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-77cf-ae7f-89d8d9165b13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019e6c04-3c30-77ce-9adf-caf3aa995725" xlink:to="loc_us-gaap_CostsAndExpenses_019e6c04-3c30-77cf-ae7f-89d8d9165b13" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-73a6-bcce-8d1416a7a0ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-7716-97ce-b9e5d707651a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-73a6-bcce-8d1416a7a0ee" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e6c04-3c30-7716-97ce-b9e5d707651a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019e6c04-3c30-70db-a5aa-887449288122" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-73a6-bcce-8d1416a7a0ee" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019e6c04-3c30-70db-a5aa-887449288122" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/CondensedConsolidatedStatementsofComprehensiveLoss" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CondensedConsolidatedStatementsofComprehensiveLoss"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CondensedConsolidatedStatementsofComprehensiveLoss" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e6c04-3c30-7da5-ba9c-35fc59f58daa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-759d-ab1c-8e7bbdd9eec7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e6c04-3c30-7da5-ba9c-35fc59f58daa" xlink:to="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-759d-ab1c-8e7bbdd9eec7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019e6c04-3c30-70e8-a9b5-368fd095af74" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e6c04-3c30-7da5-ba9c-35fc59f58daa" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax_019e6c04-3c30-70e8-a9b5-368fd095af74" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CondensedConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CondensedConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-72f7-86ef-294cb307034c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e6c04-3c30-7072-82a3-b3ad77ed8292" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-72f7-86ef-294cb307034c" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019e6c04-3c30-7072-82a3-b3ad77ed8292" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireShortTermInvestments_019e6c04-3c30-789a-8518-034cd0c46140" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireShortTermInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-72f7-86ef-294cb307034c" xlink:to="loc_us-gaap_PaymentsToAcquireShortTermInvestments_019e6c04-3c30-789a-8518-034cd0c46140" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments_019e6c04-3c30-788a-87a9-e7efdd17e69f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-72f7-86ef-294cb307034c" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfShorttermInvestments_019e6c04-3c30-788a-87a9-e7efdd17e69f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019e8372-1b53-702e-bf32-371da64334c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-72f7-86ef-294cb307034c" xlink:to="loc_us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment_019e8372-1b53-702e-bf32-371da64334c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-7dfd-a0e6-52bfee10ab7e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_NetIncomeLoss_019e6c04-3c30-7dfd-a0e6-52bfee10ab7e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019e6c04-3c30-754e-bc6b-e95897d0268c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019e6c04-3c30-754e-bc6b-e95897d0268c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019e6c04-3c30-7c65-8166-78f02d52f635" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAssetAmortizationExpense_019e6c04-3c30-7c65-8166-78f02d52f635" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019e6c04-3c30-7ab1-ba0b-115bfcb8bb75" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_ShareBasedCompensation_019e6c04-3c30-7ab1-ba0b-115bfcb8bb75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForDoubtfulAccounts_019e6c04-3c30-79f8-9905-da1e8e0bcf8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForDoubtfulAccounts"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_ProvisionForDoubtfulAccounts_019e6c04-3c30-79f8-9905-da1e8e0bcf8f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_019e6c04-3c30-75f1-a57e-98b3a8a25938" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfFinancingCosts"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_019e6c04-3c30-75f1-a57e-98b3a8a25938" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_AmortizationOfDiscountOnShortTermInvestments_019e6c04-3c30-71d1-b39d-db19116f9e6a" xlink:href="cdxs-20260630.xsd#cdxs_AmortizationOfDiscountOnShortTermInvestments"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_cdxs_AmortizationOfDiscountOnShortTermInvestments_019e6c04-3c30-71d1-b39d-db19116f9e6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFinanceReceivables_019e6c04-3c30-720f-a0de-3f8c41bc75bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInFinanceReceivables"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInFinanceReceivables_019e6c04-3c30-720f-a0de-3f8c41bc75bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019e6c04-3c30-7c90-9551-8b0fc08b4274" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019e6c04-3c30-7c90-9551-8b0fc08b4274" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e6c04-3c30-79a9-8187-55f1ef6546ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019e6c04-3c30-79a9-8187-55f1ef6546ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e6c04-3c30-7c94-9ee0-e9186332b1bb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019e6c04-3c30-7c94-9ee0-e9186332b1bb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_IncreaseDecreaseInEmployeeRelatedLiabilitiesAndOtherAccruedLiabilities_019e6c04-3c30-7795-b6c7-13a433d18069" xlink:href="cdxs-20260630.xsd#cdxs_IncreaseDecreaseInEmployeeRelatedLiabilitiesAndOtherAccruedLiabilities"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_cdxs_IncreaseDecreaseInEmployeeRelatedLiabilitiesAndOtherAccruedLiabilities_019e6c04-3c30-7795-b6c7-13a433d18069" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_019e6c04-3c30-745a-9484-a4d6f1c110a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherNoncurrentLiabilities_019e6c04-3c30-745a-9484-a4d6f1c110a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019e6c04-3c30-79cd-81d4-54e2d3786b5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7b62-9e5c-af4315613d47" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019e6c04-3c30-79cd-81d4-54e2d3786b5f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019e6c04-3c30-73f8-ad2d-daf87d5ac1d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019e6c04-3c30-73f8-ad2d-daf87d5ac1d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_CostsIncurredInConnectionWithEquitySalesAgreements_019e6c04-3c30-7589-a23f-79401cd22d54" xlink:href="cdxs-20260630.xsd#cdxs_CostsIncurredInConnectionWithEquitySalesAgreements"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_cdxs_CostsIncurredInConnectionWithEquitySalesAgreements_019e6c04-3c30-7589-a23f-79401cd22d54" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockPlans_019e8375-95e9-7c21-b783-cb6cc2503f88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockPlans"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_us-gaap_ProceedsFromStockPlans_019e8375-95e9-7c21-b783-cb6cc2503f88" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e8375-95e9-73f7-a8c0-9314e694ae37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e8375-95e9-73f7-a8c0-9314e694ae37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019e8375-95e9-7062-8b23-ea16fe426607" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_019e8375-95e9-7062-8b23-ea16fe426607" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e8375-95e9-74cc-83e9-a7dafe134c29" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7a48-bf7d-245329c5aa5d" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019e8375-95e9-74cc-83e9-a7dafe134c29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e6c04-3c30-7b28-bb27-345db4e9a75d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e6c04-3c30-711d-ad43-7c406d9bb0d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e6c04-3c30-7b28-bb27-345db4e9a75d" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e6c04-3c30-711d-ad43-7c406d9bb0d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019e6c04-3c30-7d9f-9a9b-acadfa7cf4ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019e6c04-3c30-7b28-bb27-345db4e9a75d" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019e6c04-3c30-7d9f-9a9b-acadfa7cf4ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e6c04-3c30-7c1d-8044-0c1a168b9a27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7dd5-9999-746f76ac8323" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e6c04-3c30-7c1d-8044-0c1a168b9a27" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e6c04-3c30-7dd5-9999-746f76ac8323" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-78a2-afe0-095e168e62b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e6c04-3c30-7c1d-8044-0c1a168b9a27" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e6c04-3c30-78a2-afe0-095e168e62b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7233-9ad0-b5f6e795aba6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e6c04-3c30-7c1d-8044-0c1a168b9a27" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e6c04-3c30-7233-9ad0-b5f6e795aba6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/RevenueRecognitionRevenueRecognizedDuringPeriodDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#RevenueRecognitionRevenueRecognizedDuringPeriodDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/RevenueRecognitionRevenueRecognizedDuringPeriodDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7711-96d0-c2acf3501ece" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_019e6c04-3c30-74cc-8cf8-21ad4c64d541" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityRevenueRecognized"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7711-96d0-c2acf3501ece" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityRevenueRecognized_019e6c04-3c30-74cc-8cf8-21ad4c64d541" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCumulativeCatchUpAdjustmentToRevenueChangeInEstimateOfTransactionPrice_019e6c04-3c30-7e99-82c7-abece701f644" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCumulativeCatchUpAdjustmentToRevenueChangeInEstimateOfTransactionPrice"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7711-96d0-c2acf3501ece" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCumulativeCatchUpAdjustmentToRevenueChangeInEstimateOfTransactionPrice_019e6c04-3c30-7e99-82c7-abece701f644" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_019e6c04-3c30-7d1c-9cea-2bba1eb928d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7711-96d0-c2acf3501ece" xlink:to="loc_us-gaap_ContractWithCustomerPerformanceObligationSatisfiedInPreviousPeriod_019e6c04-3c30-7d1c-9cea-2bba1eb928d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_ContractwithCustomerLiabilityNewActivitiesPerformanceObligationSatisfiedRevenueRecognition_019fbf8d-cd83-7ac3-a0f0-c8d7039401d1" xlink:href="cdxs-20260630.xsd#cdxs_ContractwithCustomerLiabilityNewActivitiesPerformanceObligationSatisfiedRevenueRecognition"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019e6c04-3c30-7711-96d0-c2acf3501ece" xlink:to="loc_cdxs_ContractwithCustomerLiabilityNewActivitiesPerformanceObligationSatisfiedRevenueRecognition_019fbf8d-cd83-7ac3-a0f0-c8d7039401d1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/FairValueMeasurementFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#FairValueMeasurementFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/FairValueMeasurementFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e6c04-3c30-78ca-80d0-73c6b810fac6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e6c04-3c30-7911-b88d-4e69cd115e7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e6c04-3c30-78ca-80d0-73c6b810fac6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e6c04-3c30-7911-b88d-4e69cd115e7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e6c04-3c30-7b9a-ab08-3bb58ab89269" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e6c04-3c30-78ca-80d0-73c6b810fac6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e6c04-3c30-7b9a-ab08-3bb58ab89269" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e6c04-3c30-7c08-9fc2-7497136b1a0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e6c04-3c30-78ca-80d0-73c6b810fac6" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e6c04-3c30-7c08-9fc2-7497136b1a0a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/BalanceSheetDetailsInventoriesDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#BalanceSheetDetailsInventoriesDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/BalanceSheetDetailsInventoriesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019e6c04-3c30-7961-9714-fd09c821eb40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryFinishedGoods_019e6c04-3c30-70cc-9b5e-17da02ae2e35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryFinishedGoods"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_019e6c04-3c30-7961-9714-fd09c821eb40" xlink:to="loc_us-gaap_InventoryFinishedGoods_019e6c04-3c30-70cc-9b5e-17da02ae2e35" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/BalanceSheetDetailsPropertyandEquipmentnetDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#BalanceSheetDetailsPropertyandEquipmentnetDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/BalanceSheetDetailsPropertyandEquipmentnetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019e6c04-3c30-7a92-b3df-48675c6bf1b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019e6c04-3c30-7255-834e-a8fee13d44e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019e6c04-3c30-7a92-b3df-48675c6bf1b2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019e6c04-3c30-7255-834e-a8fee13d44e8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019e6c04-3c30-7487-9b80-a30eee611b3c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_019e6c04-3c30-7a92-b3df-48675c6bf1b2" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019e6c04-3c30-7487-9b80-a30eee611b3c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/BalanceSheetDetailsOtherAccruedLiabilitiesDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#BalanceSheetDetailsOtherAccruedLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/BalanceSheetDetailsOtherAccruedLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-75c6-9bfa-4bb649250ee3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_019e6c04-3c30-7cb9-b691-a5e1ac3eb317" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PurchaseObligation"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-75c6-9bfa-4bb649250ee3" xlink:to="loc_us-gaap_PurchaseObligation_019e6c04-3c30-7cb9-b691-a5e1ac3eb317" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrentAndNoncurrent_019e6c04-3c30-77c5-afdd-f21f78541b47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedProfessionalFeesCurrentAndNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-75c6-9bfa-4bb649250ee3" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrentAndNoncurrent_019e6c04-3c30-77c5-afdd-f21f78541b47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrentAndNoncurrent_019e6c04-3c30-7787-b0aa-ac9edf7018c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAccruedLiabilitiesCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesCurrent_019e6c04-3c30-75c6-9bfa-4bb649250ee3" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrentAndNoncurrent_019e6c04-3c30-7787-b0aa-ac9edf7018c3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_019e6c04-3cf7-7dee-88cb-182a72af81c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsRemainderOfFiscalYear_019e6c04-3cf7-7dee-88cb-182a72af81c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019e6c04-3cf7-7bc6-9284-3508032549c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019e6c04-3cf7-7bc6-9284-3508032549c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019e6c04-3cf7-72f5-9bc4-c35a61b13b0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019e6c04-3cf7-72f5-9bc4-c35a61b13b0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019e6c04-3cf7-7faf-acfc-038d3e7c3b8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019e6c04-3cf7-7faf-acfc-038d3e7c3b8e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019e6c04-3cf7-7e01-b7d3-a3311049fae7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019e6c04-3cf7-7e01-b7d3-a3311049fae7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_019e6c04-3cf7-7996-b92b-06ae2003bd2f" xlink:href="cdxs-20260630.xsd#cdxs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7980-8732-fa9bbe9c9e61" xlink:to="loc_cdxs_LesseeOperatingLeaseLiabilityToBePaidAfterYearFour_019e6c04-3cf7-7996-b92b-06ae2003bd2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019e6c04-3cf7-7d43-a4f1-cb62a1149b8d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e6c04-3cf7-7a8e-bdf3-863a366a3da3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_019e6c04-3cf7-7d43-a4f1-cb62a1149b8d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e6c04-3cf7-7a8e-bdf3-863a366a3da3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e6c04-3cf7-7391-b0ec-1cb7e257af00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeaseLiability_019e6c04-3cf7-7d43-a4f1-cb62a1149b8d" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e6c04-3cf7-7391-b0ec-1cb7e257af00" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails_1" xlink:type="simple" xlink:href="cdxs-20260630.xsd#CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails_1"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/CommitmentsandContingenciesMaturityAnalysisofOperatingLeaseDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7b44-ad8f-433807d7d600" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019e6c04-3cf7-79ab-8d7d-1b182c61b7c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7b44-ad8f-433807d7d600" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019e6c04-3cf7-79ab-8d7d-1b182c61b7c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019e6c04-3cf7-7de9-8a31-76503ca096a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019e6c04-3cf7-7b44-ad8f-433807d7d600" xlink:to="loc_us-gaap_OperatingLeaseLiability_019e6c04-3cf7-7de9-8a31-76503ca096a9" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/DebtLongTermDebtInstrumentsDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#DebtLongTermDebtInstrumentsDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/DebtLongTermDebtInstrumentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019e6c04-3cf7-7812-b9c8-2efa54ceceeb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019e6c04-3cf7-7812-b9c8-2efa54ceceeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_019e6c04-3cf7-7ab2-b315-eaea355f03f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnamortizedDebtIssuanceExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_019e6c04-3cf7-7ab2-b315-eaea355f03f1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_DebtInstrumentAmortizedExitFee_019e6c04-3cf7-7406-8a1a-cd0e1309b393" xlink:href="cdxs-20260630.xsd#cdxs_DebtInstrumentAmortizedExitFee"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:to="loc_cdxs_DebtInstrumentAmortizedExitFee_019e6c04-3cf7-7406-8a1a-cd0e1309b393" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_DebtInstrumentPaymentInKindInterest_019e6c04-3cf7-7b99-8df8-6db7d34b8a7f" xlink:href="cdxs-20260630.xsd#cdxs_DebtInstrumentPaymentInKindInterest"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:to="loc_cdxs_DebtInstrumentPaymentInKindInterest_019e6c04-3cf7-7b99-8df8-6db7d34b8a7f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019e6c04-3cf7-7ff4-b1a0-8df8416a51be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-714a-92e3-77b4dce623a0" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019e6c04-3cf7-7ff4-b1a0-8df8416a51be" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/DebtLongTermDebtInstrumentsDetails_1" xlink:type="simple" xlink:href="cdxs-20260630.xsd#DebtLongTermDebtInstrumentsDetails_1"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/DebtLongTermDebtInstrumentsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019fbf84-1bd9-7108-9d22-c6800e660ff7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019fbf84-1bd9-7059-9841-c592ee6ae583" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fbf84-1bd9-7108-9d22-c6800e660ff7" xlink:to="loc_us-gaap_LongTermDebtCurrent_019fbf84-1bd9-7059-9841-c592ee6ae583" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019fbf84-1bd9-72bd-8849-aa70d84a142d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019fbf84-1bd9-7108-9d22-c6800e660ff7" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019fbf84-1bd9-72bd-8849-aa70d84a142d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.codexis.com/role/DebtMaturitiesofLongTermDebtDetails" xlink:type="simple" xlink:href="cdxs-20260630.xsd#DebtMaturitiesofLongTermDebtDetails"/>
  <link:calculationLink xlink:role="http://www.codexis.com/role/DebtMaturitiesofLongTermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnamortizedDebtIssuanceExpense_019e6c04-3cf7-765a-b88f-ba6628d87891" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnamortizedDebtIssuanceExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:to="loc_us-gaap_UnamortizedDebtIssuanceExpense_019e6c04-3cf7-765a-b88f-ba6628d87891" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_DebtInstrumentUncapitalizedPaymentInKindInterest_019e6c04-3cf7-7c23-8f66-14a8c607817a" xlink:href="cdxs-20260630.xsd#cdxs_DebtInstrumentUncapitalizedPaymentInKindInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:to="loc_cdxs_DebtInstrumentUncapitalizedPaymentInKindInterest_019e6c04-3cf7-7c23-8f66-14a8c607817a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_cdxs_DebtInstrumentAmortizedExitFee_019e6c04-3cf7-7b41-b2ce-ee6f9745555e" xlink:href="cdxs-20260630.xsd#cdxs_DebtInstrumentAmortizedExitFee"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:to="loc_cdxs_DebtInstrumentAmortizedExitFee_019e6c04-3cf7-7b41-b2ce-ee6f9745555e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019e6c04-3cf7-702f-95d3-40e3d55c633a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019e6c04-3cf7-702f-95d3-40e3d55c633a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-72ee-8472-6d54d225ffe3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019e6c04-3cf7-7605-8b32-6f66892434e4" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-72ee-8472-6d54d225ffe3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-7157-96f4-bbca8d64960b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_019e6c04-3cf7-7d33-b1d6-7a3fc1a1a837" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-7157-96f4-bbca8d64960b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalRemainderOfFiscalYear_019e6c04-3cf7-7d33-b1d6-7a3fc1a1a837" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019e6c04-3cf7-7650-a18a-feb169d07ca7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-7157-96f4-bbca8d64960b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_019e6c04-3cf7-7650-a18a-feb169d07ca7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019e6c04-3cf7-7b4b-8b11-2cdc17928694" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-7157-96f4-bbca8d64960b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_019e6c04-3cf7-7b4b-8b11-2cdc17928694" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019e6c04-3cf7-7721-a745-650ff0637261" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_019e6c04-3cf7-7157-96f4-bbca8d64960b" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_019e6c04-3cf7-7721-a745-650ff0637261" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
