<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.3.0.814</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>59</ContextCount>
  <ElementCount>128</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>24</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="oncs-20151031.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.oncosec.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Condensed Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/StatementCondensedBalanceSheets</Role>
      <ShortName>Condensed Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Condensed Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/StatementCondensedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Condensed Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/StatementCondensedStatementsOfOperations</Role>
      <ShortName>Condensed Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Condensed Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/StatementCondensedStatementsOfCashFlows</Role>
      <ShortName>Condensed Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Nature of Operations and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureNatureOfOperationsAndBasisOfPresentation</Role>
      <ShortName>Nature of Operations and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Cash and Cash Equivalents and Liquidity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureCashAndCashEquivalentsAndLiquidity</Role>
      <ShortName>Cash and Cash Equivalents and Liquidity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Intangible Asset Acquisition and Cross License Agreement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureIntangibleAssetAcquisitionAndCrossLicenseAgreement</Role>
      <ShortName>Intangible Asset Acquisition and Cross License Agreement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Acquisition Obligation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureAcquisitionObligation</Role>
      <ShortName>Acquisition Obligation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Recent Other Equity and Common Stock Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureRecentOtherEquityAndCommonStockTransactions</Role>
      <ShortName>Recent Other Equity and Common Stock Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockBasedCompensation</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>20202 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureStockholdersEquity</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureStockBasedCompensation</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Nature of Operations and Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureNatureOfOperationsAndBasisOfPresentationDetails</Role>
      <ShortName>Nature of Operations and Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureNatureOfOperationsAndBasisOfPresentation</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureSignificantAccountingPoliciesDetails</Role>
      <ShortName>Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Cash and Cash Equivalents and Liquidity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureCashAndCashEquivalentsAndLiquidityDetails</Role>
      <ShortName>Cash and Cash Equivalents and Liquidity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureCashAndCashEquivalentsAndLiquidity</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureStockholdersEquityTables</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Intangible Asset Acquisition and Cross License Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureIntangibleAssetAcquisitionAndCrossLicenseAgreementDetails</Role>
      <ShortName>Intangible Asset Acquisition and Cross License Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureIntangibleAssetAcquisitionAndCrossLicenseAgreement</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Acquisition Obligation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureAcquisitionObligationDetails</Role>
      <ShortName>Acquisition Obligation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureAcquisitionObligation</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Acquisition Obligation (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureAcquisitionObligationDetails2</Role>
      <ShortName>Acquisition Obligation (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureAcquisitionObligation</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Recent Other Equity and Common Stock Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureRecentOtherEquityAndCommonStockTransactionsDetails</Role>
      <ShortName>Recent Other Equity and Common Stock Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureRecentOtherEquityAndCommonStockTransactions</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureStockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureStockBasedCompensationTables</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="oncs-20151031.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.oncosec.com/role/DisclosureSubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.oncosec.com/role/DisclosureSubsequentEvents</ParentRole>
      <Position>30</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">In ''Condensed Balance Sheets'', column(s) 3, 4 are contained in other reports, so were removed by flow through suppression.</Log>
    <Log type="Info">In ''Condensed Statements of Operations'', column(s) 7 are contained in other reports, so were removed by flow through suppression.</Log>
    <Log type="Info">In ''Condensed Statements of Cash Flows'', column(s) 3 are contained in other reports, so were removed by flow through suppression.</Log>
  </Logs>
  <InputFiles>
    <File>oncs-20151031.xml</File>
    <File>oncs-20151031_cal.xml</File>
    <File>oncs-20151031_def.xml</File>
    <File>oncs-20151031_lab.xml</File>
    <File>oncs-20151031_pre.xml</File>
    <File>oncs-20151031.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies/>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>

