Exhibit 5.1
OPINION OF BAKER & MCKENZIE, LLP
July 2, 2008
Energy Recovery, Inc.
1908 Doolittle Drive
San Leandro, California 94577
Re: Registration Statement on Form S-8
Ladies and Gentlemen:
     We have examined the Registration Statement on Form S-8 to be filed by you with the Securities and Exchange Commission on or about July 3, 2008 (the “Registration Statement”), in connection with the registration under the Securities Act of 1933, as amended (the “Securities Act”), of 2,703,217 shares of your Common Stock, par value $0.01 per share (the “Shares”), (i) 180,417 shares of which are subject to currently outstanding options under the 2002 Stock Option/Stock Issuance Plan, (ii) 333,958 shares of which are subject to currently outstanding options under the 2004 Stock Option/Stock Issuance Plan, (iii) 788,842 shares of which are subject to currently outstanding options under the 2006 Stock Option/Stock Issuance Plan and (iv) 1,400,000 shares of which are reserved for issuance under the 2008 Equity Incentive Plan (collectively, the “Plans”). As your counsel in connection with this transaction, we have examined the proceedings taken and proposed to be taken by you in connection with the issuance and sale of the Shares pursuant to the Plans.
     In rendering this opinion, we have assumed the genuineness of all signatures on all documents examined by us, the due authority of the parties signing such documents, the authenticity of all documents submitted to us as originals, the conformity to the originals of all documents submitted to us as copies and that the offer and sale of the Shares complies in all respects with the terms, conditions and restrictions set forth in the Registration Statement and the Plans. We have also assumed that at the time of each issuance of Shares, there will be a sufficient number of shares of your Common Stock authorized for issuance under your certificate of incorporation that have not otherwise been issued or reserved or committed for issuance.
     Based upon the foregoing and subject to the limitations, qualifications, exceptions and assumptions set forth herein, it is our opinion that, when issued and sold in the manner described in the Plans and pursuant to the agreements which accompany each grant under the Plans, the Shares will be legally and validly issued, fully-paid and non-assessable.
     This opinion is based as to matters of law solely on the Delaware General Corporation Law, as amended. We express no opinion herein as to any other laws, statutes, ordinances, rules or regulations. As used herein, the term “Delaware General Corporation Law, as amended” includes the statutory provisions contained therein, all applicable provisions of the Delaware Constitution and reported judicial decisions interpreting these laws.
     We consent to the use of this opinion as an exhibit to the Registration Statement, and further consent to the use of our name wherever appearing in the Registration Statement and any amendments thereto. In giving this consent, we do not admit that we are within the category of persons whose consent is required under Section 7 of the Securities Act or the rules and regulations of the Securities and Exchange Commission promulgated thereunder.
         
  Very truly yours,

BAKER & MCKENZIE, LLP
 
 
  /s/ Baker & McKenzie, LLP