<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:bivi="http://bioviepharma.com/20260806"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2026"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="bivi-20260806.xsd" xlink:type="simple"/>
    <context id="AsOf2026-08-06">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001580149</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <context id="From2026-08-062026-08-06_custom_ClassCommonStockParValue0.0001PerShareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001580149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">bivi:ClassCommonStockParValue0.0001PerShareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <context id="From2026-08-062026-08-06_custom_WarrantsToPurchaseClassCommonStock0.0001ParValuePerShareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001580149</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">bivi:WarrantsToPurchaseClassCommonStock0.0001ParValuePerShareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-08-06" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-08-06" id="Fact000004">0001580149</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2026-08-06" id="Fact000009">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2026-08-06" id="Fact000010">2026-08-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2026-08-06" id="Fact000011">BioVie Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2026-08-06" id="Fact000012">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2026-08-06" id="Fact000013">001-39015</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2026-08-06" id="Fact000014">46-2510769</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2026-08-06" id="Fact000015">680 W Nye Lane</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="AsOf2026-08-06" id="Fact000016">Suite 201</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="AsOf2026-08-06" id="Fact000017">Carson City</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2026-08-06" id="Fact000018">NV</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2026-08-06" id="Fact000019">89703</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2026-08-06" id="Fact000020">775</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2026-08-06" id="Fact000021">888-3162</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2026-08-06" id="Fact000022">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2026-08-06" id="Fact000023">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2026-08-06" id="Fact000024">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2026-08-06" id="Fact000025">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="From2026-08-062026-08-06_custom_ClassCommonStockParValue0.0001PerShareMember"
      id="Fact000026">Class A Common Stock, Par Value $0.0001 Per Share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-08-062026-08-06_custom_ClassCommonStockParValue0.0001PerShareMember"
      id="Fact000027">BIVI</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-08-062026-08-06_custom_ClassCommonStockParValue0.0001PerShareMember"
      id="Fact000028">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="From2026-08-062026-08-06_custom_WarrantsToPurchaseClassCommonStock0.0001ParValuePerShareMember"
      id="Fact000029">Warrants to purchase Class A Common Stock, $0.0001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-08-062026-08-06_custom_WarrantsToPurchaseClassCommonStock0.0001ParValuePerShareMember"
      id="Fact000030">BIVIW</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-08-062026-08-06_custom_WarrantsToPurchaseClassCommonStock0.0001ParValuePerShareMember"
      id="Fact000031">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2026-08-06" id="Fact000032">false</dei:EntityEmergingGrowthCompany>
</xbrl>
