<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="AsOf2026-11-03">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001580149</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-11-03" id="Fact000003">0001580149</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp contextRef="AsOf2026-11-03" id="xdx2ixbrl0010">424B5</ffd:SubmissnTp>
    <ffd:FormTp contextRef="AsOf2026-11-03" id="Fact000009">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="AsOf2026-11-03" id="Fact000011">BIOVIE INC.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa contextRef="AsOf2026-11-03" id="Fact000012">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2026-11-03" id="Fact000013">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa contextRef="AsOf2026-11-03" id="Fact000014">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp contextRef="AsOf2026-11-03" id="Fact000015">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr contextRef="AsOf2026-11-03" id="Fact000016">

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;The maximum aggregate offering price of the securities
to which the prospectus relates is $&lt;span id="xdx_906_effd--NrrtvMaxAggtAmt_c20261103__20261103_zz3ohr2bF5jb"&gt;4,740,000.00&lt;/span&gt;. The prospectus is a &lt;span id="xdx_903_effd--FnlPrspctsFlg_dbT_c20261103__20261103_z8aIBW0DWuN8"&gt;final prospectus for the related offering&lt;/span&gt;.&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 11pt Times New Roman, Times, Serif; margin: 0; text-align: center"&gt;The prospectus supplement to which this exhibit is
attached is a final prospectus for the related offering and relates to the Registration Statement on Form S-3 (No. &lt;span id="xdx_902_effd--RegnFileNb_c20261103__20261103_zjPMeLBQuyK3"&gt;333-296924&lt;/span&gt;) filed by
BioVie Inc. on June 18, 2026 and declared effective on June 29, 2026.&lt;/p&gt;

</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtAmt
      contextRef="AsOf2026-11-03"
      decimals="INF"
      id="Fact000017"
      unitRef="Shares">4740000.00</ffd:NrrtvMaxAggtAmt>
    <ffd:FnlPrspctsFlg contextRef="AsOf2026-11-03" id="Fact000018">true</ffd:FnlPrspctsFlg>
    <ffd:RegnFileNb contextRef="AsOf2026-11-03" id="Fact000019">333-296924</ffd:RegnFileNb>
</xbrl>
