Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the reference to our firm under the caption “Experts” in the Registration Statement (Form S-1) and related Prospectus of Agile Therapeutics, Inc. for the registration of up to 7,785,144 shares of common stock, and to the incorporation by reference therein of our report dated March 28, 2024, with respect to the financial statements of Agile Therapeutics, Inc., included in its Annual Report (Form 10-K) for the year ended December 31, 2023, filed with the Securities and Exchange Commission.
/s/ Ernst & Young LLP
Iselin, New Jersey
June 14, 2024