| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.20.4 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 409 </ContextCount> |
| <ElementCount> 480 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> true </FootnotesReported> |
| <SegmentCount> 132 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 11 </UnitCount> |
| <MyReports> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 0001001 - Document - Cover Page </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CoverPage </Role> |
| | | <ShortName> Cover Page </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 1 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 1001002 - Statement - Consolidated Balance Sheets </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedBalanceSheets </Role> |
| | | <ShortName> Consolidated Balance Sheets </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 2 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R3.htm </HtmlFileName> |
| | | <LongName> 1002003 - Statement - Consolidated Balance Sheets (Parenthetical) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedBalanceSheetsParenthetical </Role> |
| | | <ShortName> Consolidated Balance Sheets (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 3 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 1003004 - Statement - Consolidated Statements of Operations </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedStatementsofOperations </Role> |
| | | <ShortName> Consolidated Statements of Operations </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 4 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 1004005 - Statement - Consolidated Statements Stockholders' Equity </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedStatementsStockholdersEquity </Role> |
| | | <ShortName> Consolidated Statements Stockholders' Equity </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 5 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 1005006 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedStatementsofStockholdersEquityParenthetical </Role> |
| | | <ShortName> Consolidated Statements of Stockholders' Equity (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 1006007 - Statement - Consolidated Statements of Cash Flows </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/ConsolidatedStatementsofCashFlows </Role> |
| | | <ShortName> Consolidated Statements of Cash Flows </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 7 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 2101101 - Disclosure - Description of Business </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/DescriptionofBusiness </Role> |
| | | <ShortName> Description of Business </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 8 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 2103102 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPolicies </Role> |
| | | <ShortName> Basis of Presentation and Summary of Significant Accounting Policies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 9 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 2108103 - Disclosure - Revenue Recognition </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognition </Role> |
| | | <ShortName> Revenue Recognition </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 10 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 2115104 - Disclosure - Net Loss per Share </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/NetLossperShare </Role> |
| | | <ShortName> Net Loss per Share </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 11 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 2118105 - Disclosure - Collaborative Arrangements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangements </Role> |
| | | <ShortName> Collaborative Arrangements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 12 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 2131106 - Disclosure - Investments in Non-Marketable Securities </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/InvestmentsinNonMarketableSecurities </Role> |
| | | <ShortName> Investments in Non-Marketable Securities </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 13 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 2134107 - Disclosure - Fair Value Measurements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/FairValueMeasurements </Role> |
| | | <ShortName> Fair Value Measurements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 14 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 2137108 - Disclosure - Balance Sheets Details </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetails </Role> |
| | | <ShortName> Balance Sheets Details </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 2144109 - Disclosure - Stock-based Compensation </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensation </Role> |
| | | <ShortName> Stock-based Compensation </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 2151110 - Disclosure - Capital Stock </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CapitalStock </Role> |
| | | <ShortName> Capital Stock </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 17 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 2153111 - Disclosure - 401(k) Plan </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/A401kPlan </Role> |
| | | <ShortName> 401(k) Plan </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 18 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 2155112 - Disclosure - Income Taxes </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxes </Role> |
| | | <ShortName> Income Taxes </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 2164113 - Disclosure - Commitments and Contingencies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingencies </Role> |
| | | <ShortName> Commitments and Contingencies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 20 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 2171114 - Disclosure - Related Party Transactions </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RelatedPartyTransactions </Role> |
| | | <ShortName> Related Party Transactions </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 2173115 - Disclosure - Segment, Geographical and Other Revenue Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformation </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 2180116 - Disclosure - Allowance for Credit Losses </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/AllowanceforCreditLosses </Role> |
| | | <ShortName> Allowance for Credit Losses </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 2184117 - Disclosure - Subsequent Events </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SubsequentEvents </Role> |
| | | <ShortName> Subsequent Events </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 24 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 2204201 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesPolicies </Role> |
| | | <ShortName> Basis of Presentation and Summary of Significant Accounting Policies (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPolicies </ParentRole> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 2305301 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables </Role> |
| | | <ShortName> Basis of Presentation and Summary of Significant Accounting Policies (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPolicies </ParentRole> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 2309302 - Disclosure - Revenue Recognition (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionTables </Role> |
| | | <ShortName> Revenue Recognition (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/RevenueRecognition </ParentRole> |
| | | <Position> 27 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 2316303 - Disclosure - Net Loss per Share (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/NetLossperShareTables </Role> |
| | | <ShortName> Net Loss per Share (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/NetLossperShare </ParentRole> |
| | | <Position> 28 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 2332304 - Disclosure - Investments in Non-Marketable Securities (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/InvestmentsinNonMarketableSecuritiesTables </Role> |
| | | <ShortName> Investments in Non-Marketable Securities (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/InvestmentsinNonMarketableSecurities </ParentRole> |
| | | <Position> 29 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 2335305 - Disclosure - Fair Value Measurements (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/FairValueMeasurementsTables </Role> |
| | | <ShortName> Fair Value Measurements (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/FairValueMeasurements </ParentRole> |
| | | <Position> 30 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 2338306 - Disclosure - Balance Sheets Details (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsTables </Role> |
| | | <ShortName> Balance Sheets Details (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/BalanceSheetsDetails </ParentRole> |
| | | <Position> 31 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 2345307 - Disclosure - Stock-based Compensation (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationTables </Role> |
| | | <ShortName> Stock-based Compensation (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/StockbasedCompensation </ParentRole> |
| | | <Position> 32 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 2356308 - Disclosure - Income Taxes (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesTables </Role> |
| | | <ShortName> Income Taxes (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/IncomeTaxes </ParentRole> |
| | | <Position> 33 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 2365309 - Disclosure - Commitments and Contingencies (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesTables </Role> |
| | | <ShortName> Commitments and Contingencies (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/CommitmentsandContingencies </ParentRole> |
| | | <Position> 34 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 2374310 - Disclosure - Segment, Geographical and Other Revenue Information (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationTables </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformation </ParentRole> |
| | | <Position> 35 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 2381311 - Disclosure - Allowance for Credit Losses (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/AllowanceforCreditLossesTables </Role> |
| | | <ShortName> Allowance for Credit Losses (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/AllowanceforCreditLosses </ParentRole> |
| | | <Position> 36 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 2385312 - Disclosure - Subsequent Events (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SubsequentEventsTables </Role> |
| | | <ShortName> Subsequent Events (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/SubsequentEvents </ParentRole> |
| | | <Position> 37 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 2402401 - Disclosure - Description of Business (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/DescriptionofBusinessDetails </Role> |
| | | <ShortName> Description of Business (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/DescriptionofBusiness </ParentRole> |
| | | <Position> 38 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 2406402 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesNarrativeDetails </Role> |
| | | <ShortName> Basis of Presentation and Summary of Significant Accounting Policies - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables </ParentRole> |
| | | <Position> 39 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 2407403 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies - Plant, Property, and Equipment (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesPlantPropertyandEquipmentDetails </Role> |
| | | <ShortName> Basis of Presentation and Summary of Significant Accounting Policies - Plant, Property, and Equipment (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 40 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 2410404 - Disclosure - Revenue Recognition - Disaggregation of Revenue (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionDisaggregationofRevenueDetails </Role> |
| | | <ShortName> Revenue Recognition - Disaggregation of Revenue (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 41 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 2411405 - Disclosure - Revenue Recognition - Contracts with Customer (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionContractswithCustomerDetails </Role> |
| | | <ShortName> Revenue Recognition - Contracts with Customer (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 2412406 - Disclosure - Revenue Recognition - Additional Information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionAdditionalInformationDetails </Role> |
| | | <ShortName> Revenue Recognition - Additional Information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 43 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 2413407 - Disclosure - Revenue Recognition - Revenue Recognized (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionRevenueRecognizedDetails </Role> |
| | | <ShortName> Revenue Recognition - Revenue Recognized (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 44 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 2414408 - Disclosure - Revenue Recognition - Performance Obligation (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RevenueRecognitionPerformanceObligationDetails </Role> |
| | | <ShortName> Revenue Recognition - Performance Obligation (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 45 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 2417409 - Disclosure - Net Loss per Share (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/NetLossperShareDetails </Role> |
| | | <ShortName> Net Loss per Share (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/NetLossperShareTables </ParentRole> |
| | | <Position> 46 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 2419410 - Disclosure - Collaborative Arrangements - GSK Platform Technology Transfer, Collaboration and License Agreement (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsGSKPlatformTechnologyTransferCollaborationandLicenseAgreementDetails </Role> |
| | | <ShortName> Collaborative Arrangements - GSK Platform Technology Transfer, Collaboration and License Agreement (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 47 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 2420411 - Disclosure - Collaborative Arrangements - Merck Platform Technology Transfer and License Agreement (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsMerckPlatformTechnologyTransferandLicenseAgreementDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Merck Platform Technology Transfer and License Agreement (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 48 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 2421412 - Disclosure - Collaborative Arrangements - Merck Sitagliptin Catalyst Supply Agreement (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsMerckSitagliptinCatalystSupplyAgreementDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Merck Sitagliptin Catalyst Supply Agreement (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 49 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 2422413 - Disclosure - Collaborative Arrangements - Enzyme Supply Agreement (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsEnzymeSupplyAgreementDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Enzyme Supply Agreement (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 50 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 2423414 - Disclosure - Collaborative Arrangements - Tate & Lyle (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsTateLyleDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Tate & Lyle (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 51 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 2424415 - Disclosure - Collaborative Arrangements - Nestle Global Development Agreement (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsNestleGlobalDevelopmentAgreementDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Nestle Global Development Agreement (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 52 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 2425416 - Disclosure - Collaborative Arrangements - Porton (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsPortonDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Porton (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 53 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 2426417 - Disclosure - Collaborative Arrangements - Novartis (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsNovartisDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Novartis (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 54 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 2427418 - Disclosure - Collaborative Arrangements - Roche (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsRocheDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Roche (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 55 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 2428419 - Disclosure - Collaborative Arrangements - Takeda (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsTakedaDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Takeda (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 56 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 2429420 - Disclosure - Collaborative Arrangements - Molecular Associates Inc (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsMolecularAssociatesIncDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Molecular Associates Inc (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 57 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 2430421 - Disclosure - Collaborative Arrangements - Performance Period (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CollaborativeArrangementsPerformancePeriodDetails </Role> |
| | | <ShortName> Collaborative Arrangements - Performance Period (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 58 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 2433422 - Disclosure - Investments in Non-Marketable Securities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/InvestmentsinNonMarketableSecuritiesDetails </Role> |
| | | <ShortName> Investments in Non-Marketable Securities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/InvestmentsinNonMarketableSecuritiesTables </ParentRole> |
| | | <Position> 59 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R60.htm </HtmlFileName> |
| | | <LongName> 2436423 - Disclosure - Fair Value Measurements (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/FairValueMeasurementsDetails </Role> |
| | | <ShortName> Fair Value Measurements (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/FairValueMeasurementsTables </ParentRole> |
| | | <Position> 60 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R61.htm </HtmlFileName> |
| | | <LongName> 2439424 - Disclosure - Balance Sheets Details - Cash and Cash Equivalents (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsCashandCashEquivalentsDetails </Role> |
| | | <ShortName> Balance Sheets Details - Cash and Cash Equivalents (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 61 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R62.htm </HtmlFileName> |
| | | <LongName> 2440425 - Disclosure - Balance Sheets Details - Schedule of Inventory Components (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsScheduleofInventoryComponentsDetails </Role> |
| | | <ShortName> Balance Sheets Details - Schedule of Inventory Components (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 62 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R63.htm </HtmlFileName> |
| | | <LongName> 2441426 - Disclosure - Balance Sheets Details - Property and Equipment, net (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsPropertyandEquipmentnetDetails </Role> |
| | | <ShortName> Balance Sheets Details - Property and Equipment, net (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 63 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R64.htm </HtmlFileName> |
| | | <LongName> 2442427 - Disclosure - Balance Sheets Details - Goodwill (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsGoodwillDetails </Role> |
| | | <ShortName> Balance Sheets Details - Goodwill (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 64 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R65.htm </HtmlFileName> |
| | | <LongName> 2443428 - Disclosure - Balance Sheets Details - Accrued Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/BalanceSheetsDetailsAccruedLiabilitiesDetails </Role> |
| | | <ShortName> Balance Sheets Details - Accrued Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 65 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R66.htm </HtmlFileName> |
| | | <LongName> 2446429 - Disclosure - Stock-based Compensation - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationNarrativeDetails </Role> |
| | | <ShortName> Stock-based Compensation - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 66 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R67.htm </HtmlFileName> |
| | | <LongName> 2447430 - Disclosure - Stock-based Compensation - Stock-Based Compensation Expense (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationStockBasedCompensationExpenseDetails </Role> |
| | | <ShortName> Stock-based Compensation - Stock-Based Compensation Expense (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 67 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R68.htm </HtmlFileName> |
| | | <LongName> 2448431 - Disclosure - Stock-based Compensation - Assumptions Used (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationAssumptionsUsedDetails </Role> |
| | | <ShortName> Stock-based Compensation - Assumptions Used (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 68 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R69.htm </HtmlFileName> |
| | | <LongName> 2449432 - Disclosure - Stock-based Compensation - Option Activity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationOptionActivityDetails </Role> |
| | | <ShortName> Stock-based Compensation - Option Activity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 69 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R70.htm </HtmlFileName> |
| | | <LongName> 2450433 - Disclosure - Stock-based Compensation - Award Activity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/StockbasedCompensationAwardActivityDetails </Role> |
| | | <ShortName> Stock-based Compensation - Award Activity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 70 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R71.htm </HtmlFileName> |
| | | <LongName> 2452434 - Disclosure - Capital Stock (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CapitalStockDetails </Role> |
| | | <ShortName> Capital Stock (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/CapitalStock </ParentRole> |
| | | <Position> 71 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R72.htm </HtmlFileName> |
| | | <LongName> 2454435 - Disclosure - 401(k) Plan (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/A401kPlanDetails </Role> |
| | | <ShortName> 401(k) Plan (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/A401kPlan </ParentRole> |
| | | <Position> 72 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R73.htm </HtmlFileName> |
| | | <LongName> 2457436 - Disclosure - Income Taxes - Components of Loss Before Provision for Income Taxes (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesComponentsofLossBeforeProvisionforIncomeTaxesDetails </Role> |
| | | <ShortName> Income Taxes - Components of Loss Before Provision for Income Taxes (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 73 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R74.htm </HtmlFileName> |
| | | <LongName> 2458437 - Disclosure - Income Taxes - Components of Provision for Income Taxes (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesComponentsofProvisionforIncomeTaxesDetails </Role> |
| | | <ShortName> Income Taxes - Components of Provision for Income Taxes (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 74 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R75.htm </HtmlFileName> |
| | | <LongName> 2459438 - Disclosure - Income Taxes - Tax Rate Reconciliation (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesTaxRateReconciliationDetails </Role> |
| | | <ShortName> Income Taxes - Tax Rate Reconciliation (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 75 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R76.htm </HtmlFileName> |
| | | <LongName> 2460439 - Disclosure - Income Taxes - Components of Deferred Tax Assets and Liabilities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesComponentsofDeferredTaxAssetsandLiabilitiesDetails </Role> |
| | | <ShortName> Income Taxes - Components of Deferred Tax Assets and Liabilities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 76 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R77.htm </HtmlFileName> |
| | | <LongName> 2461440 - Disclosure - Income Taxes - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesNarrativeDetails </Role> |
| | | <ShortName> Income Taxes - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 77 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R78.htm </HtmlFileName> |
| | | <LongName> 2462441 - Disclosure - Income Taxes - NOL Carryforwards and Federal Research and Development Tax Credits (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesNOLCarryforwardsandFederalResearchandDevelopmentTaxCreditsDetails </Role> |
| | | <ShortName> Income Taxes - NOL Carryforwards and Federal Research and Development Tax Credits (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 78 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R79.htm </HtmlFileName> |
| | | <LongName> 2463442 - Disclosure - Income Taxes - Reconciliation of Unrecognized Tax Benefits (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/IncomeTaxesReconciliationofUnrecognizedTaxBenefitsDetails </Role> |
| | | <ShortName> Income Taxes - Reconciliation of Unrecognized Tax Benefits (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 79 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R80.htm </HtmlFileName> |
| | | <LongName> 2466443 - Disclosure - Commitments and Contingencies - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesNarrativeDetails </Role> |
| | | <ShortName> Commitments and Contingencies - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 80 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R81.htm </HtmlFileName> |
| | | <LongName> 2467444 - Disclosure - Commitments and Contingencies - Lease Costs (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesLeaseCostsDetails </Role> |
| | | <ShortName> Commitments and Contingencies - Lease Costs (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 81 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R82.htm </HtmlFileName> |
| | | <LongName> 2468445 - Disclosure - Commitments and Contingencies - Other Lease Information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesOtherLeaseInformationDetails </Role> |
| | | <ShortName> Commitments and Contingencies - Other Lease Information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 82 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R83.htm </HtmlFileName> |
| | | <LongName> 2469446 - Disclosure - Commitments and Contingencies - Lease Maturity Under Topic 842 (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesLeaseMaturityUnderTopic842Details </Role> |
| | | <ShortName> Commitments and Contingencies - Lease Maturity Under Topic 842 (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 83 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R84.htm </HtmlFileName> |
| | | <LongName> 2470447 - Disclosure - Commitments and Contingencies - Other Commitments (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/CommitmentsandContingenciesOtherCommitmentsDetails </Role> |
| | | <ShortName> Commitments and Contingencies - Other Commitments (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 84 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R85.htm </HtmlFileName> |
| | | <LongName> 2472448 - Disclosure - Related Party Transactions (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/RelatedPartyTransactionsDetails </Role> |
| | | <ShortName> Related Party Transactions (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/RelatedPartyTransactions </ParentRole> |
| | | <Position> 85 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R86.htm </HtmlFileName> |
| | | <LongName> 2475449 - Disclosure - Segment, Geographical and Other Revenue Information - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationNarrativeDetails </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationTables </ParentRole> |
| | | <Position> 86 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R87.htm </HtmlFileName> |
| | | <LongName> 2476450 - Disclosure - Segment, Geographical and Other Revenue Information - Segment Reporting (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationSegmentReportingDetails </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information - Segment Reporting (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 87 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R88.htm </HtmlFileName> |
| | | <LongName> 2477451 - Disclosure - Segment, Geographical and Other Revenue Information - Concentration Risk (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationConcentrationRiskDetails </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information - Concentration Risk (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 88 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R89.htm </HtmlFileName> |
| | | <LongName> 2478452 - Disclosure - Segment, Geographical and Other Revenue Information - Revenues (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationRevenuesDetails </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information - Revenues (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationTables </ParentRole> |
| | | <Position> 89 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R90.htm </HtmlFileName> |
| | | <LongName> 2479453 - Disclosure - Segment, Geographical and Other Revenue Information - Goodwill (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationGoodwillDetails </Role> |
| | | <ShortName> Segment, Geographical and Other Revenue Information - Goodwill (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.codexis.com/role/SegmentGeographicalandOtherRevenueInformationTables </ParentRole> |
| | | <Position> 90 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R91.htm </HtmlFileName> |
| | | <LongName> 2482454 - Disclosure - Allowance for Credit Losses - Analysis of Allowance for Credit Losses (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/AllowanceforCreditLossesAnalysisofAllowanceforCreditLossesDetails </Role> |
| | | <ShortName> Allowance for Credit Losses - Analysis of Allowance for Credit Losses (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 91 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R92.htm </HtmlFileName> |
| | | <LongName> 2483455 - Disclosure - Allowance for Credit Losses - Summary of Accounts Receivable by Aging Category (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/AllowanceforCreditLossesSummaryofAccountsReceivablebyAgingCategoryDetails </Role> |
| | | <ShortName> Allowance for Credit Losses - Summary of Accounts Receivable by Aging Category (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 92 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R93.htm </HtmlFileName> |
| | | <LongName> 2486456 - Disclosure - Subsequent Events - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SubsequentEventsNarrativeDetails </Role> |
| | | <ShortName> Subsequent Events - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 93 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R94.htm </HtmlFileName> |
| | | <LongName> 2487457 - Disclosure - Subsequent Events - Lease Maturity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.codexis.com/role/SubsequentEventsLeaseMaturityDetails </Role> |
| | | <ShortName> Subsequent Events - Lease Maturity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 94 </Position> |
| | | </Report> |
| | <Report instance="cdxs-20201231.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9999.htm </HtmlFileName> |
| | | <LongName> Uncategorized Items - cdxs-20201231.htm </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://xbrl.sec.gov/role/uncategorizedFacts </Role> |
| | | <ShortName> Uncategorized Items - cdxs-20201231.htm </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 95 </Position> |
| | | </Report> |
| | <Report> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <LongName> All Reports </LongName> |
| | | <ReportType> Book </ReportType> |
| | | <ShortName> All Reports </ShortName> |
| | | </Report> |
| | </MyReports> |
| <InputFiles> |
| | <File doctype="10-K" original="cdxs-20201231.htm"> cdxs-20201231.htm </File> |
| | <File> cdxs-20201231.xsd </File> |
| | <File> cdxs-20201231_cal.xml </File> |
| | <File> cdxs-20201231_def.xml </File> |
| | <File> cdxs-20201231_lab.xml </File> |
| | <File> cdxs-20201231_pre.xml </File> |
| | <File> ex231auditconsent.htm </File> |
| | <File> exhibit311cdxs-20201231.htm </File> |
| | <File> exhibit312cdxs-20201231.htm </File> |
| | <File> exhibit321cdxs-20201231.htm </File> |
| | </InputFiles> |
| <SupplementalFiles> |
| | <File> cdxs-20201231_g1.jpg </File> |
| | </SupplementalFiles> |
| <BaseTaxonomies> |
| | <BaseTaxonomy> http://xbrl.sec.gov/country/2020-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://fasb.org/us-gaap/2020-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://xbrl.sec.gov/dei/2020-01-31 </BaseTaxonomy> |
| | <BaseTaxonomy> http://fasb.org/srt/2020-01-31 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |