<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.6.0.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>215</ContextCount>
  <ElementCount>266</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>71</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>14</UnitCount>
  <MyReports>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementBalanceSheets</Role>
      <ShortName>Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementBalanceSheetsParenthetical</Role>
      <ShortName>Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementStatementsOfOperations</Role>
      <ShortName>Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Statements of Convertible Preferred Stock and Changes in Stockholders' Equity (Deficit), Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementStatementsOfConvertiblePreferredStockAndChangesInStockholdersEquityDeficitStockholdersEquityDeficit</Role>
      <ShortName>Statements of Convertible Preferred Stock and Changes in Stockholders' Equity (Deficit), Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00350 - Statement - Statements of Convertible Preferred Stock and Changes in Stockholders' Equity (Deficit), Convertible Preferred Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementStatementsOfConvertiblePreferredStockAndChangesInStockholdersEquityDeficitConvertiblePreferredStock</Role>
      <ShortName>Statements of Convertible Preferred Stock and Changes in Stockholders' Equity (Deficit), Convertible Preferred Stock</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00400 - Statement - Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/StatementStatementsOfCashFlows</Role>
      <ShortName>Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Organization and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureOrganizationAndDescriptionOfBusiness</Role>
      <ShortName>Organization and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Prepaid Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePrepaidExpenses</Role>
      <ShortName>Prepaid Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureAccruedLiabilities</Role>
      <ShortName>Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Convertible Note Financing</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureConvertibleNoteFinancing</Role>
      <ShortName>Convertible Note Financing</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Loan and Security Agreements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureLoanAndSecurityAgreements</Role>
      <ShortName>Loan and Security Agreements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Equity Incentive Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlans</Role>
      <ShortName>Equity Incentive Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Quarterly Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnaudited</Role>
      <ShortName>Quarterly Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>20202 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Prepaid Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePrepaidExpensesTables</Role>
      <ShortName>Prepaid Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosurePrepaidExpenses</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureAccruedLiabilitiesTables</Role>
      <ShortName>Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureAccruedLiabilities</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Loan and Security Agreements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureLoanAndSecurityAgreementsTables</Role>
      <ShortName>Loan and Security Agreements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureLoanAndSecurityAgreements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Equity Incentive Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansTables</Role>
      <ShortName>Equity Incentive Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlans</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>31103 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>31503 - Disclosure - Quarterly Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnauditedTables</Role>
      <ShortName>Quarterly Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnaudited</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Organization and Description of Business (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureOrganizationAndDescriptionOfBusinessDetails</Role>
      <ShortName>Organization and Description of Business (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureOrganizationAndDescriptionOfBusiness</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Summary of Significant Accounting Polices - Stock Split (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPolicesStockSplitDetails</Role>
      <ShortName>Summary of Significant Accounting Polices - Stock Split (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Summary of Significant Accounting Policies - Deferred Financing Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDeferredFinancingCostsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Deferred Financing Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>40203 - Disclosure - Summary of Significant Accounting Policies - Concentrations of Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationsOfCreditRiskDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Concentrations of Credit Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>40204 - Disclosure - Summary of Significant Accounting Policies - Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesWarrantsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>40205 - Disclosure - Summary of Significant Accounting Policies - Uncertain Tax Positions and Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesUncertainTaxPositionsAndSegmentInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Uncertain Tax Positions and Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>40206 - Disclosure - Summary of Significant Accounting Policies - Outstanding Potentially Dilutive Securities that are Anti-Dilutive (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesOutstandingPotentiallyDilutiveSecuritiesThatAreAntiDilutiveDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Outstanding Potentially Dilutive Securities that are Anti-Dilutive (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40207 - Disclosure - Summary of Significant Accounting Policies - Recent Accounting Pronouncements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureSummaryOfSignificantAccountingPoliciesRecentAccountingPronouncementsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Recent Accounting Pronouncements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Fair Value Measurements - Financial Instruments Measured at Fair Value by Hierarchy Level and Significant Assumptions Used for Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureFairValueMeasurementsFinancialInstrumentsMeasuredAtFairValueByHierarchyLevelAndSignificantAssumptionsUsedForWarrantsDetails</Role>
      <ShortName>Fair Value Measurements - Financial Instruments Measured at Fair Value by Hierarchy Level and Significant Assumptions Used for Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Fair Value Measurements - Roll forward of Fair Value of Level 3 Warrants and Transfers Between Levels (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureFairValueMeasurementsRollForwardOfFairValueOfLevel3WarrantsAndTransfersBetweenLevelsDetails</Role>
      <ShortName>Fair Value Measurements - Roll forward of Fair Value of Level 3 Warrants and Transfers Between Levels (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Prepaid Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePrepaidExpensesDetails</Role>
      <ShortName>Prepaid Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosurePrepaidExpensesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosurePropertyAndEquipmentDetails</Role>
      <ShortName>Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureAccruedLiabilitiesDetails</Role>
      <ShortName>Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureAccruedLiabilitiesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Convertible Note Financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureConvertibleNoteFinancingDetails</Role>
      <ShortName>Convertible Note Financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureConvertibleNoteFinancing</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Loan and Security Agreements - Oxford Loan and Hercules Loan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureLoanAndSecurityAgreementsOxfordLoanAndHerculesLoanDetails</Role>
      <ShortName>Loan and Security Agreements - Oxford Loan and Hercules Loan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40802 - Disclosure - Loan and Security Agreements - Annual Maturities of Hercules Loan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureLoanAndSecurityAgreementsAnnualMaturitiesOfHerculesLoanDetails</Role>
      <ShortName>Loan and Security Agreements - Annual Maturities of Hercules Loan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Stockholders' Equity - Initial Public Offering and Related Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquityInitialPublicOfferingAndRelatedTransactionsDetails</Role>
      <ShortName>Stockholders' Equity - Initial Public Offering and Related Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Stockholders' Equity - Amended and Restated Certificate of Incorporation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquityAmendedAndRestatedCertificateOfIncorporationDetails</Role>
      <ShortName>Stockholders' Equity - Amended and Restated Certificate of Incorporation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40903 - Disclosure - Stockholders' Equity - Private Placement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquityPrivatePlacementDetails</Role>
      <ShortName>Stockholders' Equity - Private Placement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40904 - Disclosure - Stockholders' Equity - Shelf Registration Statement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquityShelfRegistrationStatementDetails</Role>
      <ShortName>Stockholders' Equity - Shelf Registration Statement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40905 - Disclosure - Stockholders' Equity - 2016 Public Offering of Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureStockholdersEquity2016PublicOfferingOfCommonStockDetails</Role>
      <ShortName>Stockholders' Equity - 2016 Public Offering of Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Equity Incentive Plans - Awards Granted, Terms and Employee and Non-employee Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansAwardsGrantedTermsAndEmployeeAndNonEmployeeStockBasedCompensationExpenseDetails</Role>
      <ShortName>Equity Incentive Plans - Awards Granted, Terms and Employee and Non-employee Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>41002 - Disclosure - Equity Incentive Plans - Allocation of Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansAllocationOfStockBasedCompensationExpenseDetails</Role>
      <ShortName>Equity Incentive Plans - Allocation of Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>41003 - Disclosure - Equity Incentive Plans - Assumptions Used to Compute Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansAssumptionsUsedToComputeStockBasedCompensationDetails</Role>
      <ShortName>Equity Incentive Plans - Assumptions Used to Compute Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>41004 - Disclosure - Equity Incentive Plans - Summary of Activity for Options Outstanding, Options Exercisable and Intrinsic Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansSummaryOfActivityForOptionsOutstandingOptionsExercisableAndIntrinsicValueDetails</Role>
      <ShortName>Equity Incentive Plans - Summary of Activity for Options Outstanding, Options Exercisable and Intrinsic Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>41005 - Disclosure - Equity Incentive Plans - Summary of Restricted Stock Units (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureEquityIncentivePlansSummaryOfRestrictedStockUnitsDetails</Role>
      <ShortName>Equity Incentive Plans - Summary of Restricted Stock Units (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Income Taxes - Net Operating Loss Carryforwards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesNetOperatingLossCarryforwardsDetails</Role>
      <ShortName>Income Taxes - Net Operating Loss Carryforwards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>41102 - Disclosure - Income Taxes - Research and Development Tax Credit Carryforwards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesResearchAndDevelopmentTaxCreditCarryforwardsDetails</Role>
      <ShortName>Income Taxes - Research and Development Tax Credit Carryforwards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>41103 - Disclosure - Income Taxes - Tax Effects of Temporary Differences that Give Rise to Deferred Tax Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesTaxEffectsOfTemporaryDifferencesThatGiveRiseToDeferredTaxAssetsDetails</Role>
      <ShortName>Income Taxes - Tax Effects of Temporary Differences that Give Rise to Deferred Tax Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>41104 - Disclosure - Income Taxes - Reconciliation of U.S. Statutory Income Tax Rate to Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesReconciliationOfUsStatutoryIncomeTaxRateToEffectiveTaxRateDetails</Role>
      <ShortName>Income Taxes - Reconciliation of U.S. Statutory Income Tax Rate to Effective Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>41105 - Disclosure - Income Taxes - Sale of New Jersey Net Operating Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureIncomeTaxesSaleOfNewJerseyNetOperatingLossesDetails</Role>
      <ShortName>Income Taxes - Sale of New Jersey Net Operating Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureRelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureCommitmentsAndContingenciesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Quarterly Data (Unaudited) - Quarterly Results of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnauditedQuarterlyResultsOfOperationsDetails</Role>
      <ShortName>Quarterly Data (Unaudited) - Quarterly Results of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnauditedTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="agrx-20161231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>41402 - Disclosure - Quarterly Data (Unaudited) - Tax Benefit from Sale of New Jersey State Net Operating Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnauditedTaxBenefitFromSaleOfNewJerseyStateNetOperatingLossesDetails</Role>
      <ShortName>Quarterly Data (Unaudited) - Tax Benefit from Sale of New Jersey State Net Operating Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agiletherapeutics.com/role/DisclosureQuarterlyDataUnauditedTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>agrx-20161231.xml</File>
    <File>agrx-20161231.xsd</File>
    <File>agrx-20161231_cal.xml</File>
    <File>agrx-20161231_def.xml</File>
    <File>agrx-20161231_lab.xml</File>
    <File>agrx-20161231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
