Exhibit 23.1
CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM
We consent to the incorporation by reference in the Registration Statement (Form S-8) pertaining to
the Encore Wire Corporation 2010 Stock Option Plan of our reports dated March 4, 2011, with respect
to the consolidated financial statements of Encore Wire Corporation and the effectiveness of
internal control over financial reporting of Encore Wire Corporation, included in its Annual Report
on Form 10-K for the year ended December 31, 2010, filed with the Securities and Exchange
Commission.
/s/ ERNST & YOUNG LLP
Dallas, Texas
July 15, 2011