Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We have issued our report dated June 19, 2020, with respect to the financial statements and supplemental schedules included in the Annual Report of TopBuild Corp. 401(k) Plan on Form 11-K, as of and for the year ended December 31, 2019.  We hereby consent to the incorporation by reference of said report in the Registration Statement of TopBuild Corp. on Form S-8 (File No. 333-205396).

/s/ Frazier & Deeter, LLC

Tampa, Florida

June 19, 2020