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-200348, No. 333-213816, No. 333-216369, and No. 333-233204) of FibroGen, Inc. of our report dated March 2, 2020 relating to the financial statements, financial statement schedule and the effectiveness of internal control over financial reporting, which appears in this Form 10-K.

/s/ PricewaterhouseCoopers LLP

San Jose, California

March 2, 2020