<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.4.0.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>24</ContextCount>
  <ElementCount>116</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>7</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>3</UnitCount>
  <MyReports>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00000001 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/DocumentandEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00000002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/StatementOfFinancialPositionClassified</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00000003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/StatementOfFinancialPositionClassifiedParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00000004 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/StatementOfIncomeAlternative</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00000005 - Statement - Consolidated Statements of Changes in Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/role/StatementsOfChangesInStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00000006 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/StatementOfCashFlowsIndirect</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>00000007 - Disclosure - 1. Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock</Role>
      <ShortName>1. Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>00000008 - Disclosure - 2. Significant Accounting Polices</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAccountingPoliciesTextBlock</Role>
      <ShortName>2. Significant Accounting Polices</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>00000009 - Disclosure - 3. Other Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsDisclosureTextBlock</Role>
      <ShortName>3. Other Current Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>00000010 - Disclosure - 4. Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsStockholdersEquityNoteDisclosureTextBlock</Role>
      <ShortName>4. Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>00000011 - Disclosure - 5. Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock</Role>
      <ShortName>5. Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>00000012 - Disclosure - 2. Significant Accounting Polices (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAccountingPoliciesTextBlockPolicies</Role>
      <ShortName>2. Significant Accounting Polices (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAccountingPoliciesTextBlock</ParentRole>
      <Position>12</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>00000013 - Disclosure - 3. Other Current Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsDisclosureTextBlockTables</Role>
      <ShortName>3. Other Current Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsDisclosureTextBlock</ParentRole>
      <Position>13</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>00000014 - Disclosure - 5. Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</Role>
      <ShortName>5. Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock</ParentRole>
      <Position>14</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>00000015 - Disclosure - 2. Significant Accounting Polices (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/role/SignificantAccountingPolicesDetails</Role>
      <ShortName>2. Significant Accounting Polices (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsSignificantAccountingPoliciesTextBlockPolicies</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>00000016 - Disclosure - 3. Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/DisclosureOtherCurrentAssets</Role>
      <ShortName>3. Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsDisclosureTextBlockTables</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>00000017 - Disclosure - 3. Other Current Assets (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/role/OtherCurrentAssetsDetailsNarrative</Role>
      <ShortName>3. Other Current Assets (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsOtherAssetsDisclosureTextBlockTables</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>00000018 - Disclosure - 5. Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/role/Stock-basedCompensationDetails</Role>
      <ShortName>5. Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>00000019 - Disclosure - 5. Stock-Based Compensation (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/taxonomy/role/DisclosureWarrantActivity</Role>
      <ShortName>5. Stock-Based Compensation (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="opxa-20160331.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>00000020 - Disclosure - 5. Stock-Based Compensation (Details Narrative)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://opexatherapeutics.com/role/Stock-basedCompensationDetailsNarrative</Role>
      <ShortName>5. Stock-Based Compensation (Details Narrative)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://opexatherapeutics.com/taxonomy/role/NotesToFinancialStatementsDisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlockTables</ParentRole>
      <Position>20</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>opxa-20160331.xml</File>
    <File>opxa-20160331.xsd</File>
    <File>opxa-20160331_cal.xml</File>
    <File>opxa-20160331_def.xml</File>
    <File>opxa-20160331_lab.xml</File>
    <File>opxa-20160331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
