<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="iroq-20250829.xsd" xlink:type="simple"/>
    <context id="c20250829to20250829">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001514743</identifier>
        </entity>
        <period>
            <startDate>2025-08-29</startDate>
            <endDate>2025-08-29</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="c20250829to20250829"
      id="Fact_6a02b4bb3e2a46769a00b1404268d2fb">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20250829to20250829"
      id="Fact_7accf3c2df5c460a872a3f233cd99c77">0001514743</dei:EntityCentralIndexKey>
    <dei:SecurityExchangeName
      contextRef="c20250829to20250829"
      id="Fact_a4900a46f3914b9d9428c78f3c664c16">NASDAQ</dei:SecurityExchangeName>
    <dei:DocumentType
      contextRef="c20250829to20250829"
      id="Fact_67e92060b42b4ad1913e63a9ae7db92f">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="c20250829to20250829"
      id="Fact_cec0539edd614d65a0c878d8563421f0">2025-08-29</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="c20250829to20250829"
      id="Fact_540b2bd1b3944c02b445a9fac2c5fbe0">IF BANCORP, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="c20250829to20250829"
      id="Fact_bbaabfc3e3c24ddcaa2cdf70a51976df">MD</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="c20250829to20250829"
      id="Fact_294761944a154ad580040fe53e98bad6">001-35226</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="c20250829to20250829"
      id="Fact_ed0d35e639ed4d28a84f6621e49e2b65">45-1834449</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="c20250829to20250829"
      id="Fact_14183efb55554a559a597e3adb26a9a1">201 East Cherry Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="c20250829to20250829"
      id="Fact_65fcfe3fb39141039db1af5638540fc9">Watseka</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="c20250829to20250829"
      id="Fact_05a4586a5229402fa562723d3cf7e7d9">IL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="c20250829to20250829"
      id="Fact_6fe54da94e6149358d7565a00d179ad9">60970</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="c20250829to20250829"
      id="Fact_b4465f7a7fee429194957fa98b12e906">815</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="c20250829to20250829"
      id="Fact_04d480525faf4ab69cd588019ac15a86">432-2476</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="c20250829to20250829"
      id="Fact_5ed43f04ff664a6aac77a3cc3ccacaeb">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="c20250829to20250829"
      id="Fact_3bbeb8eb2bd24695ad50bbd4cf9929cf">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="c20250829to20250829"
      id="Fact_623dbc74cce047edb721f07cd86047df">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="c20250829to20250829"
      id="Fact_cb25c84f26264e0ab8023ac37cefa584">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="c20250829to20250829"
      id="Fact_148d840baa104e3599160f6448884c4a">Common Stock, par value $0.01 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="c20250829to20250829"
      id="Fact_f656ef344c7248d2aefe60aa59d3c29d">IROQ</dei:TradingSymbol>
    <dei:EntityEmergingGrowthCompany
      contextRef="c20250829to20250829"
      id="Fact_71c98f6f40814a49b1d515b10af40021">false</dei:EntityEmergingGrowthCompany>
</xbrl>
