<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:TOI="http://theoncologyinstitute.com/20260520"
  xmlns:cyd="http://xbrl.sec.gov/cyd/2026"
  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="toi-20260520.xsd" xlink:type="simple"/>
    <context id="AsOf2026-05-20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001799191</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <context id="From2026-05-202026-05-20_custom_CommonStockParValue0.0001Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001799191</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">TOI:CommonStockParValue0.0001Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <context id="From2026-05-202026-05-20_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfCommonStockEachAtExercisePriceOf11.50PerShareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001799191</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">TOI:RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfCommonStockEachAtExercisePriceOf11.50PerShareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-05-20" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-05-20" id="Fact000004">0001799191</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2026-05-20" id="Fact000009">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2026-05-20" id="Fact000010">2026-05-20</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2026-05-20" id="Fact000011">THE ONCOLOGY INSTITUTE, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2026-05-20" id="Fact000012">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2026-05-20" id="Fact000013">001-39248</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2026-05-20" id="Fact000014">84-3562323</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2026-05-20" id="Fact000015">18000 Studebaker Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="AsOf2026-05-20" id="Fact000016">Suite 800</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="AsOf2026-05-20" id="Fact000017">Cerritos</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2026-05-20" id="Fact000018">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2026-05-20" id="Fact000019">90703</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2026-05-20" id="Fact000020">(562)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2026-05-20" id="Fact000021">735-3226</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2026-05-20" id="Fact000022">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2026-05-20" id="Fact000023">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2026-05-20" id="Fact000024">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2026-05-20" id="Fact000025">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="From2026-05-202026-05-20_custom_CommonStockParValue0.0001Member"
      id="Fact000026">Common stock, par value $0.0001</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-05-202026-05-20_custom_CommonStockParValue0.0001Member"
      id="Fact000027">TOI</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-05-202026-05-20_custom_CommonStockParValue0.0001Member"
      id="Fact000028">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="From2026-05-202026-05-20_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfCommonStockEachAtExercisePriceOf11.50PerShareMember"
      id="Fact000029">Redeemable warrants, each whole warrant exercisable for one share of Common stock, each at an exercise price of $11.50 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-05-202026-05-20_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfCommonStockEachAtExercisePriceOf11.50PerShareMember"
      id="Fact000030">TOIIW</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-05-202026-05-20_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfCommonStockEachAtExercisePriceOf11.50PerShareMember"
      id="Fact000031">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2026-05-20" id="Fact000032">false</dei:EntityEmergingGrowthCompany>
    <cyd:MaterialCybersecurityIncidentNatureTextBlock contextRef="AsOf2026-05-20" id="Fact000033">on November 6, 2025, regarding
a cybersecurity incident affecting a software service provider (&#x201c;Vendor&#x201d;) utilized by the Company. At the time of the prior
voluntary disclosure, the Vendor had indicated that investigation was still ongoing and it could not yet confirm any evidence that any
patient personal information was compromised as a result of this incident.</cyd:MaterialCybersecurityIncidentNatureTextBlock>
    <cyd:MaterialCybersecurityIncidentScopeTextBlock contextRef="AsOf2026-05-20" id="Fact000034">However, &lt;span class="xdx_phnt_RGlzY2xvc3VyZSAtIE1hdGVyaWFsIEN5YmVyc2VjdXJpdHkgSW5jaWRlbnQgRGlzY2xvc3VyZQA_" id="xdx_90D_ecyd--MaterialCybersecurityIncidentInformationNotAvailableOrUndeterminedTextBlock_c20260520__20260520_zg2BTwGL9zS8"&gt;on May 20, 2026, Kroll, who is the third-party administrator
for the Vendor, notified the Company that the Vendor had detected unauthorized access by a third party to certain information systems
of the Company, including systems affecting data of patients.&lt;/span&gt; The Company believes that the cybersecurity incident has affected various
other healthcare service providers, and the Vendor has set up a patient portal through which it intends to provide information and responses
to inquiries.</cyd:MaterialCybersecurityIncidentScopeTextBlock>
    <cyd:MaterialCybersecurityIncidentInformationNotAvailableOrUndeterminedTextBlock contextRef="AsOf2026-05-20" id="Fact000035">on May 20, 2026, Kroll, who is the third-party administrator
for the Vendor, notified the Company that the Vendor had detected unauthorized access by a third party to certain information systems
of the Company, including systems affecting data of patients.</cyd:MaterialCybersecurityIncidentInformationNotAvailableOrUndeterminedTextBlock>
    <cyd:MaterialCybersecurityIncidentTimingTextBlock contextRef="AsOf2026-05-20" id="Fact000036">Because of the Company&#x2019;s technology security and continuity plan,
the Company worked swiftly in response, and its operations have continued in all material respects since the detection of the incident.
The Company remains committed to protecting the healthcare and other personal information of its patients and will work with the Vendor
to offer credit monitoring and protection to all impacted patients.</cyd:MaterialCybersecurityIncidentTimingTextBlock>
    <cyd:MaterialCybersecurityIncidentMaterialImpactOrReasonablyLikelyMaterialImpactTextBlock contextRef="AsOf2026-05-20" id="Fact000037">The Company is reserving all rights with respect to potential claims
against relevant third parties or service providers. Although the Company&#x2019;s investigation and assessment remain ongoing, as of the
date of this filing, the Company believes that the incident has not had a material impact on the Company&#x2019;s operations, financial
systems, or its quality of care to its patients, and the Company is currently evaluating any other material impact, if any, including
on its financial condition or results of operations.</cyd:MaterialCybersecurityIncidentMaterialImpactOrReasonablyLikelyMaterialImpactTextBlock>
</xbrl>
