<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2024"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="tem-20241104.xsd" xlink:type="simple"/>
    <context id="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001717115</identifier>
        </entity>
        <period>
            <startDate>2024-11-04</startDate>
            <endDate>2024-11-04</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_4e31e1dc-9fdf-4833-b008-1832e12f2d80">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_9e52e520-ada4-4a34-803b-0b9685aa5d2f">0001717115</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_867120f7-2b8c-4caf-88a3-ab86f8d6f576">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_1e8a3c93-0dce-4eb1-9931-bf6bc30a36d8">2024-11-04</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_5b8a0dc5-5cbb-4c93-8100-2cbcf93d8f13">Tempus AI, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_5a7edbd0-4cc3-429f-9827-3b122ea70439">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_4017ba32-73d1-4e66-b8b6-7728fcdae5a1">001-42130</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_647e581b-56c1-48e2-880e-4519ae532c99">47-4903308</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_c05fb822-fc28-4fdc-ae32-66b75c28dcbf">600 West Chicago Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_9a74b6ed-14d4-4fbe-b75c-7169c314bddb">Suite 510</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_7914824b-e1eb-4ab6-8682-d37febb06f0b">Chicago</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_830f0e2f-3025-40dc-aff1-7caa77d9bba4">IL</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_5c0c29ce-194c-44dc-968f-665584af94fa">60654</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_6697abbe-531a-4896-8d70-0108700dcc4e">800</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_4cf0187a-8ccc-4f52-bc94-dd3b289163f1">976-5448</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_738863df-d8c7-4004-ba58-1f76e3133cb4">Not Applicable</dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_c767b52c-252a-4ee9-b546-e25bc9ea729a">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_335eb4b2-3241-41cc-8652-267b18d03c51">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_ab854462-ddb5-43c3-93d8-7ef3a3aae04a">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_f20bdd40-47d5-41fa-abe8-ad3da87e767a">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_de8a457f-bc9e-4d23-9143-70842b68a3d7">Class A common stock, $0.0001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_dcb96514-198b-4bf9-8f51-b52dcedd09a9">TEM</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_fdf9e1db-416f-451f-9dfb-a4c8a51d2df4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_fe9ec442-9a8d-4a1c-846d-de8b9ece2b42">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod
      contextRef="C_c7f94d61-30f9-41ea-a127-2faea29c8c8c"
      id="F_933f4963-f616-4809-acac-bb8baf7c1125">false</dei:EntityExTransitionPeriod>
</xbrl>
