Quarterly report pursuant to Section 13 or 15(d)

Cover Page

Cover Page - shares
3 Months Ended
Mar. 31, 2020
Apr. 30, 2020
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Period End Date Mar. 31, 2020  
Document Transition Report false  
Entity File Number 001-34705  
Entity Registrant Name Codexis, Inc.  
Entity Incorporation, State or Country Code DE  
Entity Tax Identification Number 71-0872999  
Entity Address, Address Line One 200 Penobscot Drive,  
Entity Address, City or Town Redwood City,  
Entity Address, State or Province CA  
Entity Address, Postal Zip Code 94063  
City Area Code 650  
Local Phone Number 421-8100  
Title of 12(b) Security Common Stock, par value $0.0001 per share  
Trading Symbol CDXS  
Security Exchange Name NASDAQ  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Filer Category Large Accelerated Filer  
Entity Small Business false  
Entity Emerging Growth false  
Entity Shell Company false  
Entity Common Stock, Shares Outstanding   59,018,437
Entity Central Index Key 0001200375  
Amendment Flag false  
Document Fiscal Year Focus 2020  
Document Fiscal Period Focus Q1  
Current Fiscal Year End Date --12-31