<?xml version='1.0' encoding='UTF-8'?>
<FilingSummary>
  <Version>3.8.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>194</ContextCount>
  <ElementCount>379</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>69</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>001 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>003 - Statement - Consolidated Balance Sheets (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConsolidatedBalanceSheetsParentheticals</Role>
      <ShortName>Consolidated Balance Sheets (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>004 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>005 - Statement - Consolidated Statements of Redeemable Preferred Stock, Common Stock, Noncontrolling Interests and Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConsolidatedStatementsOfRedeemablePreferredStockCommonStockNoncontrollingInterestsAndStockholdersEquityDeficit</Role>
      <ShortName>Consolidated Statements of Redeemable Preferred Stock, Common Stock, Noncontrolling Interests and Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>006 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>007 - Disclosure - Organization and Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/OrganizationAndOperations</Role>
      <ShortName>Organization and Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>008 - Disclosure - Liquidity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/Liquidity</Role>
      <ShortName>Liquidity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>009 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>010 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/FairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>011 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/PropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>012 - Disclosure - Accrued Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/AccruedExpenses</Role>
      <ShortName>Accrued Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>013 - Disclosure - Stockholder Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://oncobiologics.com/role/StockholderNotes</Role>
      <ShortName>Stockholder Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>014 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>015 - Disclosure - Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/Commitments</Role>
      <ShortName>Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>016 - Disclosure - Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficit</Role>
      <ShortName>Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>017 - Disclosure - Convertible Preferred Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConvertiblePreferredStock</Role>
      <ShortName>Convertible Preferred Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>018 - Disclosure - Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensation2011EquityIncentivePlan</Role>
      <ShortName>Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>019 - Disclosure - Collaboration Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/CollaborationArrangements</Role>
      <ShortName>Collaboration Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>020 - Disclosure - Related-Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related-Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>021 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>022 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>023 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>024 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>025 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/FairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/FairValueMeasurements</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>026 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/PropertyandEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/PropertyAndEquipment</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>027 - Disclosure - Accrued Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/AccruedExpensesTables</Role>
      <ShortName>Accrued Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/AccruedExpenses</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>028 - Disclosure - Stockholder Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://oncobiologics.com/role/StockholderNotesTables</Role>
      <ShortName>Stockholder Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholderNotes</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>029 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/Debt</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>030 - Disclosure - Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/CommitmentsTables</Role>
      <ShortName>Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/Commitments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>031 - Disclosure - Stockholders' Equity (Deficit) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficitTables</Role>
      <ShortName>Stockholders' Equity (Deficit) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholdersEquityDeficit</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>032 - Disclosure - Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationTables</Role>
      <ShortName>Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensation2011EquityIncentivePlan</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>033 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>034 - Disclosure - Liquidity (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/LiquidityDetailTextuals</Role>
      <ShortName>Liquidity (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/Liquidity</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>035 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>036 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesDetails1</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>037 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesDetailTextuals</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>038 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Detail Textuals 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesDetailTextuals1</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Detail Textuals 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>039 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/FairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>040 - Disclosure - Fair Value Measurements (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/FairValueMeasurementsDetail1</Role>
      <ShortName>Fair Value Measurements (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>041 - Disclosure - Fair Value Measurements (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/Fairvaluemeasurementsdetail2</Role>
      <ShortName>Fair Value Measurements (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/FairValueMeasurementsTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>042 - Disclosure - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/PropertyandEquipmentDetails</Role>
      <ShortName>Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>043 - Disclosure - Property and Equipment (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/PropertyAndEquipmentDetails1</Role>
      <ShortName>Property and Equipment (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>044 - Disclosure - Property and Equipment (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/PropertyAndEquipmentDetailTextuals</Role>
      <ShortName>Property and Equipment (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/PropertyandEquipmentTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>045 - Disclosure - Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/AccruedExpensesDetails</Role>
      <ShortName>Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/AccruedExpensesTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>046 - Disclosure - Stockholder Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://oncobiologics.com/role/StockholderNotesDetails</Role>
      <ShortName>Stockholder Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholderNotesTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>047 - Disclosure - Stockholder Notes (Detail Textuals)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://oncobiologics.com/role/StockholderNotesDetailTextuals</Role>
      <ShortName>Stockholder Notes (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholderNotesTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>048 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/DebtTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>049 - Disclosure - Debt (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DebtDetails1</Role>
      <ShortName>Debt (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/DebtTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>050 - Disclosure - Debt (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DebtDetails2</Role>
      <ShortName>Debt (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/DebtTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>051 - Disclosure - Debt (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/DebtDetailTextuals</Role>
      <ShortName>Debt (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/DebtTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>052 - Disclosure - Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/CommitmentsDetails</Role>
      <ShortName>Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/CommitmentsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>053 - Disclosure - Commitments (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/CommitmentsDetailTextuals</Role>
      <ShortName>Commitments (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/CommitmentsTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>054 - Disclosure - Stockholders' Equity (Deficit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficitDetails</Role>
      <ShortName>Stockholders' Equity (Deficit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholdersEquityDeficitTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>055 - Disclosure - Stockholders' Equity (Deficit) (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficitDetailTextuals</Role>
      <ShortName>Stockholders' Equity (Deficit) (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholdersEquityDeficitTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>056 - Disclosure - Stockholders' Equity (Deficit) (Detail Textuals 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficitDetailTextuals1</Role>
      <ShortName>Stockholders' Equity (Deficit) (Detail Textuals 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholdersEquityDeficitTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>057 - Disclosure - Stockholders' Equity (Deficit) (Detail Textuals 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockholdersEquityDeficitDetailTextuals2</Role>
      <ShortName>Stockholders' Equity (Deficit) (Detail Textuals 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockholdersEquityDeficitTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>058 - Disclosure - Convertible Preferred Stock (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/ConvertiblePreferredStockDetailTextuals</Role>
      <ShortName>Convertible Preferred Stock (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/ConvertiblePreferredStock</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>059 - Disclosure - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetails</Role>
      <ShortName>Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>060 - Disclosure - Stock-Based Compensation (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetails1</Role>
      <ShortName>Stock-Based Compensation (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>061 - Disclosure - Stock-Based Compensation (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetails2</Role>
      <ShortName>Stock-Based Compensation (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>062 - Disclosure - Stock-Based Compensation (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetails3</Role>
      <ShortName>Stock-Based Compensation (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>063 - Disclosure - Stock-Based Compensation (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetails4</Role>
      <ShortName>Stock-Based Compensation (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>064 - Disclosure - Stock-Based Compensation (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetailTextuals</Role>
      <ShortName>Stock-Based Compensation (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>065 - Disclosure - Stock-Based Compensation (Detail Textuals 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetailTextuals1</Role>
      <ShortName>Stock-Based Compensation (Detail Textuals 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>066 - Disclosure - Stock-Based Compensation (Detail Textuals 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetailTextuals2</Role>
      <ShortName>Stock-Based Compensation (Detail Textuals 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>067 - Disclosure - Stock-Based Compensation (Detail Textuals 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/StockBasedCompensationDetailTextuals3</Role>
      <ShortName>Stock-Based Compensation (Detail Textuals 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/StockBasedCompensationTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>068 - Disclosure - Collaboration Arrangements (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/CollaborationArrangementsDetailTextuals</Role>
      <ShortName>Collaboration Arrangements (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/CollaborationArrangements</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>069 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxesTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>070 - Disclosure - Income Taxes (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesDetails1</Role>
      <ShortName>Income Taxes (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>071 - Disclosure - Income Taxes (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesDetails2</Role>
      <ShortName>Income Taxes (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxesTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>072 - Disclosure - Income Taxes (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesDetails3</Role>
      <ShortName>Income Taxes (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxesTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>073 - Disclosure - Income Taxes (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/IncomeTaxesDetailTextuals</Role>
      <ShortName>Income Taxes (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/IncomeTaxesTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="ons-20170930.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>074 - Disclosure - Subsequent Events (Detail Textuals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://oncobiologics.com/role/SubsequentEventsDetailTextuals</Role>
      <ShortName>Subsequent Events (Detail Textuals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://oncobiologics.com/role/SubsequentEvents</ParentRole>
      <Position>74</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>ons-20170930.xml</File>
    <File>ons-20170930.xsd</File>
    <File>ons-20170930_cal.xml</File>
    <File>ons-20170930_def.xml</File>
    <File>ons-20170930_lab.xml</File>
    <File>ons-20170930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2014-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
