EXHIBIT 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in the Registration Statements on Form S-8 (No. 333-118205) and Form S-3 (No. 333-150206) of Westlake Chemical Corporation of our report dated February 23, 2012 relating to the consolidated financial statements, financial statement schedule, and the effectiveness of internal control over financial reporting, which appears in this Form 10-K.

/s/ PricewaterhouseCoopers LLP

PricewaterhouseCoopers LLP

Houston, Texas

February 23, 2012