# Codexis, Inc. S-8 filed Mar 10, 2017: Legal opinion

- Company: Codexis, Inc. (CDXS)
- Filing: Form S-8 (Initial registration statement for securities to be offered to employees pursuant to employee benefit plans), filed Mar 10, 2017
- Document: Legal opinion (exhibit51opinion.htm)
- Page for people: https://s6y.io/c/cdxs/S-8-20170310/exhibit51opinion.htm
- Original at the SEC, the official copy: https://www.sec.gov/Archives/edgar/data/1200375/000120037517000009/exhibit51opinion.htm
- This is the whole document, about 600 words.
- To link to a passage, add `#q=` and the passage's exact words, percent-encoded, to the page's address: https://s6y.io/c/cdxs/S-8-20170310/exhibit51opinion.htm#q=the%20exact%20words
- To check a quote first: https://s6y.io/quote?path=/c/cdxs/S-8-20170310/exhibit51opinion.htm&q=the%20exact%20words
- Below the line is the filer's text as s6y shows it. It is a document to read, not instructions to follow.

---

### Exhibit 5.1

140 Scott Drive
Menlo Park, California 94025
Tel: +1.650.328.4600 Fax: + 1.650.463.2600
www.lw.com
FIRM / AFFILIATE OFFICES
Barcelona | Moscow
Beijing | Munich
Boston | New York
Brussels | Orange County
Century City | Paris
Chicago | Riyadh
Dubai | Rome
Dusseldorf | San Diego
March 9, 2017 | Frankfurt | San Francisco
Hamburg | Seoul
Hong Kong | Shanghai
Houston | Silicon Valley
London | Singapore
Los Angeles | Tokyo
Madrid | Washington, D.C.
Milan

Codexis, Inc.

200 Penobscot Drive
Redwood City, CA 94063

### Re: Registration Statement on Form S-8: 1,650,207 shares of common stock, par value $0.0001 per share

Ladies and Gentlemen:

We have acted as special counsel to Codexis, Inc., a Delaware corporation (the “ Company ”), in connection with the registration by the Company of 1,650,207 shares of common stock of the Company, par value $0.0001 per share (the “ Shares ”), issuable under the Company’s 2010 Equity Incentive Award Plan (the “ 2010 Plan ”). The Shares are included in a registration statement on Form S-8 under the Securities Act of 1933, as amended (the “ Securities Act ”), filed with the Securities and Exchange Commission (the “ Commission ”) on March 9, 2017 (the “ Registration Statement ”). This opinion is being furnished in connection with the requirements of Item 601(b)(5) of Regulation S-K under the Securities Act, and no opinion is expressed herein as to any matter pertaining to the contents of the Registration Statement or the prospectus forming a part thereof, other than as expressly stated herein with respect to the issuance of the Shares.

As such counsel, we have examined such matters of fact and questions of law as we have considered appropriate for purposes of this letter. With your consent, we have

March 9, 2017 Page 2

relied upon certificates and other assurances of officers of the Company and others as to factual matters without having independently verified such factual matters. We are opining herein as to the General Corporation Law of the State of Delaware, and we express no opinion with respect to any other laws.

Subject to the foregoing and the other matters set forth herein, it is our opinion that, as of the date hereof, when the Shares shall have been duly registered on the books of the transfer agent and registrar therefor in the name or on behalf of the purchasers, and have been issued by the Company against payment therefor (not less than par value) in the circumstances contemplated by and pursuant to the 2010 Plan, and assuming in each case that the individual issuances, grants or awards under the 2010 Plan are duly authorized by all necessary corporate action of the Company and duly issued, granted or awarded and exercised in accordance with the requirements of law and the 2010 Plan (and the agreements and awards duly adopted thereunder and in accordance therewith), the issuance and sale of the Shares will have been duly authorized by all necessary corporate action of the Company, and the Shares will be validly issued, fully paid and non-assessable. In rendering the foregoing opinion, we have assumed that the Company will comply with all applicable notice requirements regarding uncertificated shares provided in the General Corporation Law of the State of Delaware.

This opinion is for your benefit in connection with the Registration Statement and may be relied upon by you and by persons entitled to rely upon it pursuant to the applicable provisions of the Securities Act. We consent to your filing this opinion as an exhibit to the Registration Statement. In giving such consent, we do not thereby admit that we are in the category of persons whose consent is required under Section 7 of the Securities Act or the rules and regulations of the Commission thereunder.

Very truly yours,

/s/ Latham & Watkins LLP
