s6y Precision Castparts Corp S-8

Precision Castparts Corp S-8, filed Aug 13, 2008: Opinion of Stoel Rives LLP

EXHIBIT 5.1

August 13, 2008

Board of Directors

Precision Castparts Corp.

4650 SW Macadam Avenue, Suite 400

Portland, OR 97239

We have acted as counsel for Precision Castparts Corp. (the “Company”) in connection with the filing of a Registration Statement on Form S-8 (the “Registration Statement”) under the Securities Act of 1933, as amended, covering 3,000,000 shares of common stock of the Company (the “Shares”) to be issued by the Company pursuant to the Company’s 2008 Employee Stock Purchase Plan (the “Plan”). We have reviewed the corporate actions of the Company in connection with this matter and have examined those documents, corporate records and other instruments we deemed necessary for the purposes of this opinion.

Based on the foregoing, it is our opinion that:

1. The Company is a corporation duly organized and validly existing under the laws of the state of Oregon; and

2. The Shares have been duly authorized and, when issued pursuant to the Plan and in accordance with the resolutions adopted by the Board of Directors of the Company, will be legally issued, fully paid and nonassessable.

We hereby consent to the filing of this opinion as an exhibit to the Registration Statement.

Very truly yours,

/s/ STOEL RIVES LLP

STOEL RIVES LLP