<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="agfy-20241212.xsd" xlink:type="simple"/>
    <context id="AsOf2024-12-12">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
        </entity>
        <period>
            <startDate>2024-12-12</startDate>
            <endDate>2024-12-12</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <dei:AmendmentFlag contextRef="AsOf2024-12-12" id="Fact000003">true</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2024-12-12" id="Fact000004">0001800637</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2024-12-12" id="Fact000009">8-K/A</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2024-12-12" id="Fact000010">2024-12-12</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2024-12-12" id="Fact000011">AGRIFY CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2024-12-12" id="Fact000012">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2024-12-12" id="Fact000013">001-39946</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2024-12-12" id="Fact000014">30-0943453</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2024-12-12" id="Fact000015">2468 Industrial Row Dr.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="AsOf2024-12-12" id="Fact000016">Troy</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2024-12-12" id="Fact000017">MI</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2024-12-12" id="Fact000018">48084</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2024-12-12" id="Fact000019">617</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2024-12-12" id="Fact000020">896-5243</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2024-12-12" id="Fact000021">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2024-12-12" id="Fact000022">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2024-12-12" id="Fact000023">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2024-12-12" id="Fact000024">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="AsOf2024-12-12" id="Fact000025">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="AsOf2024-12-12" id="Fact000026">AGFY</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="AsOf2024-12-12" id="Fact000027">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2024-12-12" id="Fact000028">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="AsOf2024-12-12" id="Fact000029">false</dei:EntityExTransitionPeriod>
    <dei:AmendmentDescription contextRef="AsOf2024-12-12" id="Fact000030">This Amendment No. 1 to a Current Report on Form 8-K/A (this &#x201c;Amendment
No. 1&#x201d;) is being filed by Agrify Corporation (the &#x201c;Company&#x201d;) for the purpose of amending Item 9.01 of that certain Current
Report on Form 8-K filed by the Company with the U.S. Securities and Exchange Commission (&#x201c;SEC&#x201d;) on December 16, 2024 (the
&#x201c;Original Form 8-K&#x201d;) in connection with the December 12, 2024 completion of the acquisition of substantially all of the assets
of Double or Nothing, LLC (&#x201c;Double or Nothing&#x201d;). As indicated in the Original Form 8-K, this Amendment is being filed to provide
the financial statements and pro forma financial information required by Items 9.01(a) and (b) of Form 8-K, which were not previously
filed with the Original Form 8-K as permitted by the rules of the SEC.</dei:AmendmentDescription>
</xbrl>
