EX-5.1 2 a2047050zex-5_1.htm EX-5.1 Prepared by MERRILL CORPORATION
QuickLinks -- Click here to rapidly navigate through this document

Exhibit 5.1

     STOEL RIVES LLP LETTERHEAD


April 27, 2001

Board of Directors
FEI Company
7451 NW Evergreen Parkway
Hillsboro, Oregon 97124

    We have acted as counsel for FEI Company (the "Company") in connection with the preparation and filing of a Registration Statement on Form S-3 (the "Registration Statement") under the Securities Act of 1933, as amended, covering 2,300,000 shares of common stock of the Company to be offered by the Company (the "Company Shares"), 300,000 of which shares are subject to an overallotment option granted by the Company to the underwriters, and 4,600,000 shares of common stock of the Company to be offered by a selling shareholder of the Company (the "Selling Shareholder Shares"), 600,000 of which shares are subject to an overallotment option granted by the selling shareholder to the underwriters. We have reviewed the corporate action of the Company in connection with this matter and have examined the documents, corporate records and other instruments we deemed necessary for the purpose of this opinion.

    Based on the foregoing, it is our opinion that:

    (1) The Company is a corporation existing under the laws of the state of Oregon;

    (2) The Company Shares are duly authorized shares of common stock of the Company;

    (3) The Company Shares, when issued and sold in the manner described in the Registration Statement and in accordance with resolutions adopted by the Board of Directors of the Company, and when payment therefor shall have been received by the Company, will be legally issued, fully paid and nonassessable; and

    (4) The Selling Shareholder Shares have been legally issued and are fully paid and nonassessable.

    We consent to the use of our name in the Registration Statement and in the Prospectus filed as a part thereof, and to the filing of this opinion as an exhibit to the Registration Statement.

                        Very truly yours,

                        /s/ STOEL RIVES LLP   

                        STOEL RIVES LLP




QuickLinks

April 27, 2001