<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:_2="http://www.w3.org/1999/xhtml"
  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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001447362</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001447362</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001447362</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>_2:shares</measure>
    </unit>
    <unit id="usdPerShares">
        <divide>
            <unitNumerator>
                <measure>_2:uSD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>_2:shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c-1" id="f-25">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-26">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-27">0001447362</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-28">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c-3" id="f-29">false</ffd:PrevslyPdFlg>
    <ffd:OffsetTableNa contextRef="c-1" id="f-30">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c-1" id="f-1">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">Castle Biosciences, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-3">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-4">2019 Equity Incentive Plan, Common Stock, $0.001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-5">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-6" unitRef="shares">1484315</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c-2"
      decimals="2"
      id="f-7"
      unitRef="usdPerShares">32.31</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-8" unitRef="usd">47958217.65</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="INF" id="f-9" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">6623.03</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c-3" id="f-11">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-3" id="f-12">2019 Employee Stock Incentive Plan, Common Stock, $0.001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-3" id="f-13">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-3" decimals="0" id="f-14" unitRef="shares">296863</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c-3"
      decimals="2"
      id="f-15"
      unitRef="usdPerShares">27.46</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-3" decimals="2" id="f-16" unitRef="usd">8151857.98</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-3" decimals="INF" id="f-17" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-3" decimals="2" id="f-18" unitRef="usd">1125.77</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-19" unitRef="usd">56110075.63</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-20" unitRef="usd">7748.8</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-21" unitRef="usd">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-22" unitRef="usd">7748.8</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-23">&lt;div&gt;&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:10pt;font-weight:400;line-height:100%"&gt;Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form S-8 (this &#x201c;Registration Statement&#x201d;) shall also cover any additional shares of Common Stock, par value $0.001 per share (&#x201c;Common Stock&#x201d;) of Castle Biosciences, Inc. (the &#x201c;Registrant&#x201d;) that become issuable under the Registrant&#x2019;s 2019 Equity Incentive Plan (the &#x201c;2019 Plan&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction. Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rules 457(c) and 457(h)(1) of the Securities Act. The proposed maximum aggregate offering price per unit and proposed maximum aggregate offering price are calculated using the average of the high and low prices of the Common Stock as reported on the Nasdaq Global Market on February&#160;19, 2026 (the &#x201c;Average Price&#x201d;), which date is within five business days prior to the filing of this Registration Statement. Represents shares of Common Stock that were automatically added to the shares authorized for issuance under the 2019 Plan on January&#160;1, 2026 pursuant to an &#x201c;evergreen&#x201d; provision contained in the 2019 Plan. Pursuant to such provision, on January 1st of each year through (and including) January 1, 2029, the number of shares authorized for issuance under the 2019 Plan will be automatically increased by an amount equal to the lesser of: (a) 5% of the total number of shares of capital stock of the Registrant outstanding on December 31 of the preceding calendar year; or (b) such lesser number of shares of Common Stock as the Registrant&#x2019;s board of directors (the &#x201c;Board&#x201d;) may designate prior to the applicable January 1st.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-3" id="f-24">&lt;div&gt;&lt;span style="color:#000000;font-family:'Arial',sans-serif;font-size:10pt;font-weight:400;line-height:100%"&gt;Pursuant to Rule 416(a) under the Securities Act, this Registration Statement shall also cover any additional shares of Common Stock of the Registrant that become issuable under the Registrant&#x2019;s 2019 Employee Stock Purchase Plan (the &#x201c;2019 ESPP&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction. Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rules 457(c) and 457(h) of the Securities Act. The proposed maximum aggregate offering price per unit and proposed maximum aggregate offering price are calculated on the basis of the Average Price, multiplied by 85% which is the percentage of the price per share applicable to purchases under the 2019 ESPP. Represents shares of Common Stock that were automatically added to the shares authorized for issuance under the 2019 ESPP on January&#160;1, 2026 pursuant to an &#x201c;evergreen&#x201d; provision contained in the 2019 ESPP. Pursuant to such provision, on January 1st of each year through (and including) January 1, 2029, the number of shares authorized for issuance under the 2019 ESPP will be automatically increased by an amount equal to the lesser of: (a) 1% of the total number of shares of capital stock outstanding on December 31 of the preceding calendar year; (b) 411,935 shares; or (c) such lesser number of shares of Common Stock as the Board may designate prior to the applicable January 1st.&lt;/span&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
