<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2023"
  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-20231231.xsd" xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
        </entity>
        <period>
            <startDate>2023-01-01</startDate>
            <endDate>2023-12-31</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
        </entity>
        <period>
            <instant>2023-06-30</instant>
        </period>
    </context>
    <context id="c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001800637</identifier>
        </entity>
        <period>
            <instant>2024-04-19</instant>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <dei:DocumentType contextRef="c0" id="ixv-28">10-K/A</dei:DocumentType>
    <dei:DocumentAnnualReport contextRef="c0" id="ixv-4315">true</dei:DocumentAnnualReport>
    <dei:DocumentPeriodEndDate contextRef="c0" id="ixv-4316">2023-12-31</dei:DocumentPeriodEndDate>
    <dei:CurrentFiscalYearEndDate contextRef="c0" id="ixv-4317">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentFiscalYearFocus contextRef="c0" id="ixv-4318">2023</dei:DocumentFiscalYearFocus>
    <dei:DocumentTransitionReport contextRef="c0" id="ixv-4319">false</dei:DocumentTransitionReport>
    <dei:EntityFileNumber contextRef="c0" id="ixv-4320">001-39946</dei:EntityFileNumber>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-78">AGRIFY CORPORATION</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="c0" id="ixv-88">NV</dei:EntityIncorporationStateCountryCode>
    <dei:EntityTaxIdentificationNumber contextRef="c0" id="ixv-93">30-0943453</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="c0" id="ixv-108">2468 Industrial Row Dr.</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown contextRef="c0" id="ixv-4321">Troy</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="c0" id="ixv-4322">MI</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="c0" id="ixv-4323">48084</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="c0" id="ixv-4324">(855)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="c0" id="ixv-4325">420-0020</dei:LocalPhoneNumber>
    <dei:Security12bTitle contextRef="c0" id="ixv-144">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="c0" id="ixv-148">AGFY</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="c0" id="ixv-4326">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityWellKnownSeasonedIssuer contextRef="c0" id="ixv-4327">No</dei:EntityWellKnownSeasonedIssuer>
    <dei:EntityVoluntaryFilers contextRef="c0" id="ixv-4328">No</dei:EntityVoluntaryFilers>
    <dei:EntityFilerCategory contextRef="c0" id="ixv-219">Non-accelerated Filer</dei:EntityFilerCategory>
    <dei:EntitySmallBusiness contextRef="c0" id="ixv-226">true</dei:EntitySmallBusiness>
    <dei:EntityEmergingGrowthCompany contextRef="c0" id="ixv-234">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="c0" id="ixv-240">false</dei:EntityExTransitionPeriod>
    <dei:IcfrAuditorAttestationFlag contextRef="c0" id="ixv-246">false</dei:IcfrAuditorAttestationFlag>
    <dei:DocumentFinStmtErrorCorrectionFlag contextRef="c0" id="ixv-252">false</dei:DocumentFinStmtErrorCorrectionFlag>
    <dei:EntityShellCompany contextRef="c0" id="ixv-268">false</dei:EntityShellCompany>
    <dei:EntityPublicFloat contextRef="c1" decimals="0" id="ixv-4329" unitRef="usd">5643188</dei:EntityPublicFloat>
    <dei:EntityCommonStockSharesOutstanding
      contextRef="c2"
      decimals="INF"
      id="ixv-4330"
      unitRef="shares">14229386</dei:EntityCommonStockSharesOutstanding>
    <dei:AuditorName contextRef="c0" id="ixv-4331">Marcum LLP</dei:AuditorName>
    <dei:AuditorLocation contextRef="c0" id="ixv-4332">Melville, NY</dei:AuditorLocation>
    <dei:AuditorFirmId contextRef="c0" id="ixv-300">688</dei:AuditorFirmId>
    <dei:AmendmentDescription contextRef="c0" id="ixv-331">Agrify Corporation is filing
this Amendment No. 1 on Form 10-K/A (this &#x201c;Amendment No. 1&#x201d;) to our Annual Report on Form 10-K for the fiscal year ended December
31, 2023 which was filed with the U.S. Securities and Exchange Commission (the &#x201c;SEC&#x201d;) on April 15, 2024. &#160;(the &#x201c;Original
Form 10-K&#x201d;). The Original Form 10-K omitted Part III, Items 10 (Directors, Executive Officers and Corporate Governance),
11 (Executive Compensation), 12 (Security Ownership of Certain Beneficial Owners and Management and Related Stockholder Matters),
13 (Certain Relationships and Related Transactions, and Director Independence)&#160;and 14 (Principal Accountant Fees and Services)&#160;in
reliance on General Instruction G(3) to Form 10-K, which provides that such information may be either incorporated by reference from the
registrant&#x2019;s definitive proxy statement or included in an amendment to Form 10-K, in either case filed with the Securities and Exchange
Commission (the &#x201c;SEC&#x201d;) not later than 120 days after the end of the fiscal year. We currently expect that our definitive proxy
statement for the 2024 annual meeting of stockholders will be filed later than the 120th&#160;day after the end of the last
fiscal year. Accordingly, this Amendment No. 1 to Form 10-K (this &#x201c;Amendment&#x201d;) is being filed solely to:
&#x25cf;Amend Part III, Items 10,11, 12, 13 and 14 of the Original
Form 10-K to include the information required by such Items;

&#x25cf;Delete the reference on the cover of the Original Form 10-K
to include the information required by such Items; and

&#x25cf;File new certifications of our principal executive officer
and principal financial officer as exhibits to this Amendment under Item 15 of Part IV hereof, pursuant to Section 302 of the Sarbanes-Oxley
Act of 2002 and Rule 12b-15 under the Securities Exchange Act of 1934, as amended (the &#x201c;Exchange Act&#x201d;).
Because no financial
statements have been included in this Amendment No. 1 and this Amendment No. 1 does not contain or amend any disclosure with respect to
Items 307 and 308 of Regulation S-K, paragraphs 3, 4, and 5 of the certifications have been omitted. We are not including the certifications
under Section 906 of the Sarbanes-Oxley Act of 2002 as no financial statements are being filed with this Amendment No. 1. This Amendment
No. 1 also amends Part IV to add the foregoing certifications.No other changes
have been made to the Form 10-K other than those described above. This Amendment No. 1 does not reflect subsequent events occurring after
the original filing date of the Form 10-K or modify or update in any way the financial statements, consents or any other items or disclosures
made in the Form 10-K in any way other than as required to reflect the amendments discussed above. Accordingly, this Amendment No. 1 should
be read in conjunction with the Form 10-K and the Company&#x2019;s other filings with the SEC subsequent to the filing of the Form 10-K.</dei:AmendmentDescription>
    <dei:EntityCurrentReportingStatus contextRef="c0" id="hidden-fact-0">Yes</dei:EntityCurrentReportingStatus>
    <dei:EntityInteractiveDataCurrent contextRef="c0" id="hidden-fact-1">Yes</dei:EntityInteractiveDataCurrent>
    <dei:AmendmentFlag contextRef="c0" id="ixv-4337">true</dei:AmendmentFlag>
    <dei:DocumentFiscalPeriodFocus contextRef="c0" id="ixv-4338">FY</dei:DocumentFiscalPeriodFocus>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-4339">0001800637</dei:EntityCentralIndexKey>
</xbrl>
