<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001275014</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <context id="c_offering_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001275014</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001275014</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="fee_001">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0001275014</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_004">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c_offering_2" id="fee_005">false</ffd:PrevslyPdFlg>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_006" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_007">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_008">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_009">Ultra Clean Holdings, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="fee_010">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="fee_011">Class A Common Stock, $0.001 par value per share, pursuant to the Amended and Restated Equity Incentive Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_1" id="fee_012">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="fee_013"
      unitRef="shares">3500000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_014"
      unitRef="USD">93.64</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="USD">327740000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_016"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_017"
      unitRef="USD">45260.90</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="fee_018">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="fee_019">Class A Common Stock, $0.001 par value per share, pursuant to the Amended and Restated Employee Stock Purchase Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_2" id="fee_020">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_2"
      decimals="0"
      id="fee_021"
      unitRef="shares">450000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_022"
      unitRef="USD">79.60</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_023"
      unitRef="USD">35820000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_024"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_025"
      unitRef="USD">4946.75</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_026"
      unitRef="USD">363560000.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_027"
      unitRef="USD">50207.65</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_028"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_029"
      unitRef="USD">50207.65</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_030">(a) Pursuant to Rule 416(a) of the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form S-8 shall also cover any additional shares of the Registrant&#x2019;s Class A Common Stock (&#x201c;Common Stock&#x201d;) that become issuable under the Registrant&#x2019;s Amended and Restated Stock Incentive Plan by reason of any stock dividend, stock split, recapitalization or other similar transaction affecting such common stock.&lt;br/&gt;&lt;br/&gt;(b) The proposed maximum offering price per unit for the Amended and Restated Equity Incentive Plan is estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(h) and Rule 457(c) of the Securities Act. The offering price per share and the aggregate offering price are based upon $93.635 per share, which is the average of the high and low prices of Common Stock, as reported on the Nasdaq Global Select Market on July 7, 2026.&lt;br/&gt;&lt;br/&gt;(c) The Registrant does not have any fee offsets.&lt;br/&gt;&lt;br/&gt;(d) Rounded to the nearest cent.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="fee_031">(a) Pursuant to Rule 416(a) of the Securities Act, this Registration Statement on Form S-8 shall also cover any additional shares of the Registrant&#x2019;s Common Stock that become issuable under the Registrant&#x2019;s Amended and Restated Employee Stock Purchase Plan by reason of any stock dividend, stock split, recapitalization or other similar transaction affecting such common stock.&lt;br/&gt;&lt;br/&gt;(b) The proposed maximum offering price per unit for the Amended and Restated Employee Stock Purchase Plan is estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(h) and Rule 457(c) of the Securities Act. The offering price per share and the aggregate offering price are based upon $79.60 per share, which is 85% of the average of the high and low prices Common Stock, as reported on the Nasdaq Global Select Market on July 7, 2026.&lt;br/&gt;&lt;br/&gt;(c) The Registrant does not have any fee offsets.&lt;br/&gt;&lt;br/&gt;(d) Rounded to the nearest cent.&lt;br/&gt;</ffd:OfferingNote>
</xbrl>
