<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>422</ContextCount>
  <ElementCount>601</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>142</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>18</UnitCount>
  <MyReports>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Nature of operations and basis of presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Natureofoperationsandbasisofpresentation</Role>
      <ShortName>Nature of operations and basis of presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Merger and reverse recapitalization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Mergerandreverserecapitalization</Role>
      <ShortName>Merger and reverse recapitalization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Summaryofsignificantaccountingpolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Business acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Businessacquisitions</Role>
      <ShortName>Business acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Fair value measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Fairvaluemeasurement</Role>
      <ShortName>Fair value measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Propertyandequipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Homebuilding debt and other affiliate debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Homebuildingdebtandotheraffiliatedebt</Role>
      <ShortName>Homebuilding debt and other affiliate debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Related party transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Relatedpartytransactions</Role>
      <ShortName>Related party transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Lot purchase agreement deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Lotpurchaseagreementdeposits</Role>
      <ShortName>Lot purchase agreement deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Warranty reserves</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Warrantyreserves</Role>
      <ShortName>Warranty reserves</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Commitmentsandcontingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Convertible note payable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Convertiblenotepayable</Role>
      <ShortName>Convertible note payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Share-based compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Sharebasedcompensation</Role>
      <ShortName>Share-based compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Earnout shares</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Earnoutshares</Role>
      <ShortName>Earnout shares</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Warrant liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Warrantliability</Role>
      <ShortName>Warrant liability</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9952175 - Disclosure - Employee benefit plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Employeebenefitplan</Role>
      <ShortName>Employee benefit plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9952176 - Disclosure - Earnings per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarningsperShare</Role>
      <ShortName>Earnings per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9952177 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/Subsequentevents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SummaryofsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Merger and reverse recapitalization (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/MergerandreverserecapitalizationTables</Role>
      <ShortName>Merger and reverse recapitalization (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Mergerandreverserecapitalization</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Summary of significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SummaryofsignificantaccountingpoliciesTables</Role>
      <ShortName>Summary of significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Summaryofsignificantaccountingpolicies</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/SegmentReporting</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Business acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/BusinessacquisitionsTables</Role>
      <ShortName>Business acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Businessacquisitions</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Fair value measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/FairvaluemeasurementTables</Role>
      <ShortName>Fair value measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Fairvaluemeasurement</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Inventories</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/PropertyandequipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Propertyandequipment</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Homebuilding debt and other affiliate debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/HomebuildingdebtandotheraffiliatedebtTables</Role>
      <ShortName>Homebuilding debt and other affiliate debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Homebuildingdebtandotheraffiliatedebt</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Related party transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/RelatedpartytransactionsTables</Role>
      <ShortName>Related party transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Relatedpartytransactions</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Lot purchase agreement deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/LotpurchaseagreementdepositsTables</Role>
      <ShortName>Lot purchase agreement deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Lotpurchaseagreementdeposits</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Warranty reserves (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/WarrantyreservesTables</Role>
      <ShortName>Warranty reserves (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Warrantyreserves</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Commitments and contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CommitmentsandcontingenciesTables</Role>
      <ShortName>Commitments and contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Commitmentsandcontingencies</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Convertible note payable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/ConvertiblenotepayableTables</Role>
      <ShortName>Convertible note payable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Convertiblenotepayable</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Share-based compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SharebasedcompensationTables</Role>
      <ShortName>Share-based compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Sharebasedcompensation</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Earnout shares (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarnoutsharesTables</Role>
      <ShortName>Earnout shares (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Earnoutshares</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Warrant liability (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/WarrantliabilityTables</Role>
      <ShortName>Warrant liability (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Warrantliability</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Earnings per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarningsperShareTables</Role>
      <ShortName>Earnings per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/EarningsperShare</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Merger and reverse recapitalization - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/MergerandreverserecapitalizationNarrativeDetails</Role>
      <ShortName>Merger and reverse recapitalization - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Merger and reverse recapitalization - Common Stock Issued Following Consummation of Business Combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/MergerandreverserecapitalizationCommonStockIssuedFollowingConsummationofBusinessCombinationDetails</Role>
      <ShortName>Merger and reverse recapitalization - Common Stock Issued Following Consummation of Business Combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Summary of significant accounting policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SummaryofsignificantaccountingpoliciesNarrativeDetails</Role>
      <ShortName>Summary of significant accounting policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Summary of significant accounting policies - Property and Equipment Useful Lives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SummaryofsignificantaccountingpoliciesPropertyandEquipmentUsefulLivesDetails</Role>
      <ShortName>Summary of significant accounting policies - Property and Equipment Useful Lives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Summary of significant accounting policies - Intangible Assets Useful Life (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SummaryofsignificantaccountingpoliciesIntangibleAssetsUsefulLifeDetails</Role>
      <ShortName>Summary of significant accounting policies - Intangible Assets Useful Life (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Segment Reporting - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReportingNarrativeDetails</Role>
      <ShortName>Segment Reporting - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Segment Reporting - Revenues, Gross Profit and Pre-tax Income By Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReportingRevenuesGrossProfitandPretaxIncomeBySegmentDetails</Role>
      <ShortName>Segment Reporting - Revenues, Gross Profit and Pre-tax Income By Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Segment Reporting - Total Assets By Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReportingTotalAssetsBySegmentDetails</Role>
      <ShortName>Segment Reporting - Total Assets By Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Segment Reporting - Other Segment Disclosures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SegmentReportingOtherSegmentDisclosuresDetails</Role>
      <ShortName>Segment Reporting - Other Segment Disclosures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Business acquisitions - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/BusinessacquisitionsNarrativeDetails</Role>
      <ShortName>Business acquisitions - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Business acquisitions - Creekside Custom Homes (Details)s)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/BusinessacquisitionsCreeksideCustomHomesDetailss</Role>
      <ShortName>Business acquisitions - Creekside Custom Homes (Details)s)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Business acquisitions - Rosewood Custom Homes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/BusinessacquisitionsRosewoodCustomHomesDetails</Role>
      <ShortName>Business acquisitions - Rosewood Custom Homes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Business acquisitions -Pro Forma Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/BusinessacquisitionsProFormaInformationDetails</Role>
      <ShortName>Business acquisitions -Pro Forma Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Fair value measurement - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/FairvaluemeasurementAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Fair value measurement - Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Fair value measurement - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/FairvaluemeasurementNarrativeDetails</Role>
      <ShortName>Fair value measurement - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Fair value measurement - Roll forward of Level 3 Liabilities Measured at a Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/FairvaluemeasurementRollforwardofLevel3LiabilitiesMeasuredataFairValueonaRecurringBasisDetails</Role>
      <ShortName>Fair value measurement - Roll forward of Level 3 Liabilities Measured at a Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Inventories - Schedule of Inventory (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/InventoriesScheduleofInventoryDetails</Role>
      <ShortName>Inventories - Schedule of Inventory (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Inventories - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/InventoriesNarrativeDetails</Role>
      <ShortName>Inventories - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Inventories - Schedule of Capitalized Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/InventoriesScheduleofCapitalizedInterestDetails</Role>
      <ShortName>Inventories - Schedule of Capitalized Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Property and equipment - Schedule of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/PropertyandequipmentScheduleofPropertyandEquipmentDetails</Role>
      <ShortName>Property and equipment - Schedule of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Property and equipment - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/PropertyandequipmentNarrativeDetails</Role>
      <ShortName>Property and equipment - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Homebuilding debt and other affiliate debt - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/HomebuildingdebtandotheraffiliatedebtDebtDetails</Role>
      <ShortName>Homebuilding debt and other affiliate debt - Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/HomebuildingdebtandotheraffiliatedebtTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Homebuilding debt and other affiliate debt - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/HomebuildingdebtandotheraffiliatedebtNarrativeDetails</Role>
      <ShortName>Homebuilding debt and other affiliate debt - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Related party transactions - Transactions with Land Development and Other Affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/RelatedpartytransactionsTransactionswithLandDevelopmentandOtherAffiliatesDetails</Role>
      <ShortName>Related party transactions - Transactions with Land Development and Other Affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Related party transactions - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/RelatedpartytransactionsNarrativeDetails</Role>
      <ShortName>Related party transactions - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Lot purchase agreement deposits - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/LotpurchaseagreementdepositsNarrativeDetails</Role>
      <ShortName>Lot purchase agreement deposits - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Lot purchase agreement deposits - Interest in Lot Purchase Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/LotpurchaseagreementdepositsInterestinLotPurchaseAgreementsDetails</Role>
      <ShortName>Lot purchase agreement deposits - Interest in Lot Purchase Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Warranty reserves (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/WarrantyreservesDetails</Role>
      <ShortName>Warranty reserves (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/WarrantyreservesTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Commitments and contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CommitmentsandcontingenciesNarrativeDetails</Role>
      <ShortName>Commitments and contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Commitments and contingencies - Maturity of the Contractual, Undiscounted Operating Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/CommitmentsandcontingenciesMaturityoftheContractualUndiscountedOperatingLeaseLiabilitiesDetails</Role>
      <ShortName>Commitments and contingencies - Maturity of the Contractual, Undiscounted Operating Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Convertible note payable - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/ConvertiblenotepayableNarrativeDetails</Role>
      <ShortName>Convertible note payable - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Convertible note - Outstanding Balance of Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://unitedhomesgroup.com/role/ConvertiblenoteOutstandingBalanceofConvertibleNotesDetails</Role>
      <ShortName>Convertible note - Outstanding Balance of Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Convertible Note - Assumptions used in Valuation Models to Determine the Estimated Fair of Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://unitedhomesgroup.com/role/ConvertibleNoteAssumptionsusedinValuationModelstoDeterminetheEstimatedFairofConvertibleNotesDetails</Role>
      <ShortName>Convertible Note - Assumptions used in Valuation Models to Determine the Estimated Fair of Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Share-based compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SharebasedcompensationNarrativeDetails</Role>
      <ShortName>Share-based compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Share-based compensation - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SharebasedcompensationStockOptionActivityDetails</Role>
      <ShortName>Share-based compensation - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Share-based compensation - Assumptions used to determine Grant Date Fair Value of Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SharebasedcompensationAssumptionsusedtodetermineGrantDateFairValueofStockDetails</Role>
      <ShortName>Share-based compensation - Assumptions used to determine Grant Date Fair Value of Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Share-based compensation - Time-Based Restricted Stock Unit Activity and PSUs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SharebasedcompensationTimeBasedRestrictedStockUnitActivityandPSUsDetails</Role>
      <ShortName>Share-based compensation - Time-Based Restricted Stock Unit Activity and PSUs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Earnout Shares - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarnoutSharesNarrativeDetails</Role>
      <ShortName>Earnout Shares - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Earnout shares - Total Earnout Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarnoutsharesTotalEarnoutSharesDetails</Role>
      <ShortName>Earnout shares - Total Earnout Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Earnout shares - Assumptions used in Valuation of Earnout Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarnoutsharesAssumptionsusedinValuationofEarnoutSharesDetails</Role>
      <ShortName>Earnout shares - Assumptions used in Valuation of Earnout Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Warrant liability - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/WarrantliabilityNarrativeDetails</Role>
      <ShortName>Warrant liability - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Warrant liability - Assumptions used in Valuing Private Placement Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/WarrantliabilityAssumptionsusedinValuingPrivatePlacementWarrantsDetails</Role>
      <ShortName>Warrant liability - Assumptions used in Valuing Private Placement Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Income taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/IncometaxesNarrativeDetails</Role>
      <ShortName>Income taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Income taxes - Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/IncometaxesComponentsofIncomeTaxExpenseDetails</Role>
      <ShortName>Income taxes - Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Income taxes - Effective Income Tax Rate Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/IncometaxesEffectiveIncomeTaxRateReconciliationDetails</Role>
      <ShortName>Income taxes - Effective Income Tax Rate Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Income taxes - Components of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/IncometaxesComponentsofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income taxes - Components of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Employee benefit plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EmployeebenefitplanDetails</Role>
      <ShortName>Employee benefit plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Employeebenefitplan</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Earnings per Share - Computation of Basic and Diluted Net Profit per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarningsperShareComputationofBasicandDilutedNetProfitperShareDetails</Role>
      <ShortName>Earnings per Share - Computation of Basic and Diluted Net Profit per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - Earnings per Share - Potentially Dilutive Outstanding Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarningsperSharePotentiallyDilutiveOutstandingSecuritiesDetails</Role>
      <ShortName>Earnings per Share - Potentially Dilutive Outstanding Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Earnings per Share - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/EarningsperShareNarrativeDetails</Role>
      <ShortName>Earnings per Share - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="uhg-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - Subsequent events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://unitedhomesgroup.com/role/SubsequenteventsDetails</Role>
      <ShortName>Subsequent events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://unitedhomesgroup.com/role/Subsequentevents</ParentRole>
      <Position>103</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="uhg-20241231.htm">uhg-20241231.htm</File>
    <File>uhg-20241231.xsd</File>
    <File>uhg-20241231_cal.xml</File>
    <File>uhg-20241231_def.xml</File>
    <File>uhg-20241231_lab.xml</File>
    <File>uhg-20241231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1095">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2024</BaseTaxonomy>
    <BaseTaxonomy items="43">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
