<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2021q4"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="farm-20220314.xsd" xlink:type="simple"/>
    <context id="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000034563</identifier>
        </entity>
        <period>
            <startDate>2022-03-14</startDate>
            <endDate>2022-03-14</endDate>
        </period>
    </context>
    <dei:EntityRegistrantName
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF80L2ZyYWc6OGMyMDQ1NmVhYjBmNDBhYTg5NzI5ZjYwNTU1OWQwZjAvdGFibGU6M2U5MmMyNDc2N2FiNDE1ZWI5ZTJkZWY1Zjg5NTVlODMvdGFibGVyYW5nZTozZTkyYzI0NzY3YWI0MTVlYjllMmRlZjVmODk1NWU4M18xLTEtMS0xLTUxMjgw_32ed998a-e2a0-49a8-b797-03f297458c8b">FARMER BROTHERS CO</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF80L2ZyYWc6OGMyMDQ1NmVhYjBmNDBhYTg5NzI5ZjYwNTU1OWQwZjAvdGFibGU6M2U5MmMyNDc2N2FiNDE1ZWI5ZTJkZWY1Zjg5NTVlODMvdGFibGVyYW5nZTozZTkyYzI0NzY3YWI0MTVlYjllMmRlZjVmODk1NWU4M18yLTEtMS0xLTUxMjgw_daaac00b-756c-4429-8613-b96f7c10ccdf">0000034563</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF80L2ZyYWc6OGMyMDQ1NmVhYjBmNDBhYTg5NzI5ZjYwNTU1OWQwZjAvdGFibGU6M2U5MmMyNDc2N2FiNDE1ZWI5ZTJkZWY1Zjg5NTVlODMvdGFibGVyYW5nZTozZTkyYzI0NzY3YWI0MTVlYjllMmRlZjVmODk1NWU4M18zLTEtMS0xLTUxMjgw_4fc321a8-93e5-45ee-a6ab-f8b5eee4adb4">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGV4dHJlZ2lvbjo3ZDgwZTIxYmJkY2Q0OGU4ODdlNTZiYTc0ZjMyNTA1OV84MjM_772cb6d5-4bf9-48d8-82b1-81efd1ef1c3a">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGV4dHJlZ2lvbjo3ZDgwZTIxYmJkY2Q0OGU4ODdlNTZiYTc0ZjMyNTA1OV80OTQ3ODAyMzI1ODM0_7dae441e-6fd9-41b8-ad3b-eb10b2214f9b">2022-03-14</dei:DocumentPeriodEndDate>
    <dei:EntityIncorporationStateCountryCode
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8wLTMtMS0xLTUxMjgw_7a577ce2-c25d-4c91-a693-92978afa0b0a">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8wLTUtMS0xLTUxMjgw_1623db4b-8e29-4e8a-a8d8-8d1633b42df3">001-34249</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8wLTctMS0xLTUxMjgw_47a71f3a-b5a7-41f6-81ae-6b7f12378df4">95-0725980</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8zLTMtMS0xLTUxMjgw_9303114b-1d21-4267-b566-77f4c6923139">1912 Farmer Brothers Drive,</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8zLTQtMS0xLTUxMjgw_ccc33d8b-d94b-4d5a-b736-5c8e09207ad2">Northlake,</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8zLTUtMS0xLTUxMjgw_ded49d82-704c-4c51-86d5-9c6234da4a6a">TX</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8zLTYtMS0xLTUxMjgw_54e22bdc-531b-4ace-a4da-ab23144fd84c">76262</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml82LTQtMS0xLTUxMjgw_2a8dcae1-94d6-4054-9dc1-57cb3ab6a481">888</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml82LTUtMS0xLTUxMjgw_2dc3d848-ad86-4951-9ec5-20333f38df1e">301-0489</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8xMy0xLTEtMS01MTI4MA_6e578283-1bfa-4366-8ba7-5b59c902b6ec">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8xNC0xLTEtMS01MTI4MA_430ffbda-ac03-4d2a-b07c-9167ad18918e">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8xNS0xLTEtMS01MTI4MA_02b54700-db8f-4237-9d16-6382b1017a8d">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8xNi0xLTEtMS01MTI4MA_02a9c1a7-f566-4355-8ca8-a9cec28f8a57">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8yMS0zLTEtMS01MTI4MA_0b7a3081-d0d0-4418-b2c9-06fbd94792f7">Common Stock, $1.00 par value</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8yMS01LTEtMS01MTI4MA_04434da4-64d9-4745-ab71-bb7a1e9b816b">FARM</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGFibGU6YTg3YzNmNGFhYTRkNDY3M2FiYTRmNGIyNGVhZWZhNTIvdGFibGVyYW5nZTphODdjM2Y0YWFhNGQ0NjczYWJhNGY0YjI0ZWFlZmE1Ml8yMS02LTEtMS01MTI4MA_c0710824-3204-4a78-9d87-a2aa3729416e">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="i441a75c34a614da2bb8e19800e1a1ad7_D20220314-20220314"
      id="id3VybDovL2RvY3MudjEvZG9jOjM5YjhkM2M5YjVmZjRmY2NhN2UzZDJkNmRmZTU0MWNkL3NlYzozOWI4ZDNjOWI1ZmY0ZmNjYTdlM2QyZDZkZmU1NDFjZF8xL2ZyYWc6N2Q4MGUyMWJiZGNkNDhlODg3ZTU2YmE3NGYzMjUwNTkvdGV4dHJlZ2lvbjo3ZDgwZTIxYmJkY2Q0OGU4ODdlNTZiYTc0ZjMyNTA1OV84MjQ_94b4841d-e3f0-4a82-ae18-8c6fd059754e">false</dei:EntityEmergingGrowthCompany>
</xbrl>
