<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>93</ContextCount>
  <ElementCount>81</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>17</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Statements of Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/StatementStatementsOfNetAssetsAvailableForBenefits</Role>
      <ShortName>Statements of Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00200 - Statement - Statements of Changes in Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/StatementStatementsOfChangesInNetAssetsAvailableForBenefits</Role>
      <ShortName>Statements of Changes in Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Description of the Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureDescriptionOfPlan</Role>
      <ShortName>Description of the Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Income Tax Status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureIncomeTaxStatus</Role>
      <ShortName>Income Tax Status</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Related Party Transactions and Party-in-Interest Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureRelatedPartyTransactionsAndPartyInInterestTransactions</Role>
      <ShortName>Related Party Transactions and Party-in-Interest Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Schedule H, Line 4i - Schedule of Assets (Held at End of Year)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureScheduleHLine4iScheduleOfAssetsHeldAtEndOfYear</Role>
      <ShortName>Schedule H, Line 4i - Schedule of Assets (Held at End of Year)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>20202 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>10</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>30103 - Disclosure - Description of the Plan (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureDescriptionOfPlanTables</Role>
      <ShortName>Description of the Plan (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureDescriptionOfPlan</ParentRole>
      <Position>11</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureInvestments</ParentRole>
      <Position>12</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Description of the Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureDescriptionOfPlanDetails</Role>
      <ShortName>Description of the Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureDescriptionOfPlanTables</ParentRole>
      <Position>13</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>40102 - Disclosure - Description of the Plan - Contributions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureDescriptionOfPlanContributionsDetails</Role>
      <ShortName>Description of the Plan - Contributions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureSignificantAccountingPoliciesDetails</Role>
      <ShortName>Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureInvestmentsDetails</Role>
      <ShortName>Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureInvestmentsTables</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Income Tax Status (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureIncomeTaxStatusDetails</Role>
      <ShortName>Income Tax Status (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://ufpi.com/role/DisclosureIncomeTaxStatus</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="ufpi-20251231x11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Schedule H Line 4i - Schedule of Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://ufpi.com/role/DisclosureScheduleHLine4iScheduleOfAssetsDetails</Role>
      <ShortName>Schedule H Line 4i - Schedule of Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>ufpi-20251231.xsd</File>
    <File>ufpi-20251231_cal.xml</File>
    <File>ufpi-20251231_def.xml</File>
    <File>ufpi-20251231_lab.xml</File>
    <File>ufpi-20251231_pre.xml</File>
    <File doctype="11-K" isDefinitelyFs="true" isUsgaap="true" original="ufpi-20251231x11k.htm">ufpi-20251231x11k.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="200">http://fasb.org/us-gaap-ebp/2025</BaseTaxonomy>
    <BaseTaxonomy items="7">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
