Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
The Board of Directors
Western Gas Holdings, LLC (as general partner of Western Gas Partners, LP):
We consent to the incorporation by reference in the registration statements onForm S-3(No. 333-160000) andForm S-8(No. 333-151317) of Western Gas Partners, LP of our reports dated March 11, 2010, with respect to the consolidated balance sheets of Western Gas Partners, LP as of December 31, 2009 and 2008, and the related consolidated statements of income, equity and partners’ capital, and cash flows for each of the years in the three-year period ended December 31, 2009, and the effectiveness of internal control over financial reporting as of December 31, 2009, which reports appear in the December 31, 2009 annual report onForm 10-K of Western Gas Partners, LP.
/s/ KPMG LLP
Houston, Texas
March 11, 2010