<?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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2025-09-17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000850779</identifier>
        </entity>
        <period>
            <startDate>2025-09-17</startDate>
            <endDate>2025-09-17</endDate>
        </period>
    </context>
    <context id="From2025-09-172025-09-17_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000850779</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-17</startDate>
            <endDate>2025-09-17</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-09-17" id="Fact000003">0000850779</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2025-09-17" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp contextRef="AsOf2025-09-17" id="xdx2ixbrl0010">424H/A</ffd:SubmissnTp>
    <ffd:FormTp contextRef="AsOf2025-09-17" id="xdx2ixbrl0011">SF-3</ffd:FormTp>
    <ffd:OfferingSctyTp contextRef="From2025-09-172025-09-17_1" id="xdx2ixbrl0017">Mortgage Backed Securities</ffd:OfferingSctyTp>
    <ffd:RegnFileNb contextRef="AsOf2025-09-17" id="Fact000012">333-282099</ffd:RegnFileNb>
    <dei:EntityRegistrantName contextRef="AsOf2025-09-17" id="Fact000013">Wells Fargo Commercial Mortgage Securities, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2025-09-17" id="Fact000014">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa contextRef="AsOf2025-09-17" id="Fact000015">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="From2025-09-172025-09-17_1" id="Fact000016">true</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="From2025-09-172025-09-17_1" id="Fact000018">Wells     Fargo Commercial Mortgage Trust 2025-5C6, Commercial Mortgage Pass-Through Certificates, Series 2025-5C6</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2025-09-172025-09-17_1" id="Fact000019">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="From2025-09-172025-09-17_1"
      decimals="INF"
      id="Fact000020"
      unitRef="Shares">539381000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="From2025-09-172025-09-17_1"
      decimals="INF"
      id="Fact000021"
      unitRef="Ratio">1</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="From2025-09-172025-09-17_1"
      decimals="0"
      id="Fact000022"
      unitRef="USD">539381000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="From2025-09-172025-09-17_1"
      decimals="2"
      id="Fact000023"
      unitRef="USD">82579.24</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2025-09-17"
      decimals="0"
      id="Fact000024"
      unitRef="USD">539381000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2025-09-17"
      decimals="2"
      id="Fact000025"
      unitRef="USD">82579.24</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2025-09-17"
      decimals="0"
      id="Fact000026"
      unitRef="USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2025-09-17"
      decimals="0"
      id="Fact000027"
      unitRef="USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2025-09-17"
      decimals="2"
      id="Fact000028"
      unitRef="USD">82579.24</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="From2025-09-172025-09-17_1" id="Fact000030">&lt;p id="xdx_80A_effd--OfferingNote_hffd--OfferingAxis__1_dU_zNHD8wstPwGc" style="margin-top: 0; margin-bottom: 0"&gt;&lt;/p&gt;
&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; margin-top: 0; margin-bottom: 0pt; width: 100%"&gt;&lt;tr style="vertical-align: top; text-align: justify"&gt;
&lt;td style="width: 0.25in"&gt;&lt;/td&gt;&lt;td style="width: 0.25in; text-align: left"&gt;&lt;span style="font-size: 8pt"&gt;(1)&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left"&gt;&lt;span style="font-size: 8pt"&gt;The
                                         prospectus to which this Exhibit 107 is attached is a preliminary prospectus for the
                                         related offering. This table relates to the payment of registration fees in connection
                                         with the registration statement on Form SF-3 of which this prospectus forms a part (No.
                                         333-282099), which was filed with the Securities and Exchange Commission on September
                                         13, 2024, as amended by a Form SF-3/A filed on October 30, 2024, and became effective
                                         on December 2, 2024 (the &#x201c;&lt;span style="text-decoration: underline"&gt;Registration Statement&lt;/span&gt;&#x201d;).&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; margin-top: 0; margin-bottom: 0pt; width: 100%"&gt;&lt;tr style="vertical-align: top; text-align: justify"&gt;
&lt;td style="width: 0.25in"&gt;&lt;/td&gt;&lt;td style="width: 0.25in; text-align: left"&gt;&lt;span style="font-size: 8pt"&gt;(2)&lt;/span&gt;&lt;/td&gt;&lt;td style="text-align: left"&gt;&lt;span style="font-size: 8pt"&gt;Estimated
                                         solely for the purpose of calculating the registration fee.&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

</ffd:OfferingNote>
</xbrl>
