<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:CIK0001915380="http://CIK0001915380/20251022"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0001915380-20251022.xsd" xlink:type="simple"/>
    <context id="AsOf2025-10-22">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001915380</identifier>
        </entity>
        <period>
            <startDate>2025-10-22</startDate>
            <endDate>2025-10-22</endDate>
        </period>
    </context>
    <context id="From2025-10-222025-10-22_custom_UnitsEachConsistingOfOneShareOfClassCommonStockAndOnehalfOfOneRedeemableWarrantMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001915380</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">CIK0001915380:UnitsEachConsistingOfOneShareOfClassCommonStockAndOnehalfOfOneRedeemableWarrantMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-22</startDate>
            <endDate>2025-10-22</endDate>
        </period>
    </context>
    <context id="From2025-10-222025-10-22_custom_ClassCommonStockParValue0.0001PerShareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001915380</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">CIK0001915380:ClassCommonStockParValue0.0001PerShareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-22</startDate>
            <endDate>2025-10-22</endDate>
        </period>
    </context>
    <context id="From2025-10-222025-10-22_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfClassCommonStockEachAtExercisePriceOf11.50PerShareMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001915380</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">CIK0001915380:RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfClassCommonStockEachAtExercisePriceOf11.50PerShareMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-10-22</startDate>
            <endDate>2025-10-22</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>
    <dei:AmendmentFlag contextRef="AsOf2025-10-22" id="Fact000003">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-10-22" id="Fact000004">0001915380</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="AsOf2025-10-22" id="Fact000009">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2025-10-22" id="Fact000010">2025-10-22</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2025-10-22" id="Fact000011">dMY Squared Technology Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="AsOf2025-10-22" id="Fact000012">MA</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="AsOf2025-10-22" id="Fact000013">001-41519</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="AsOf2025-10-22" id="Fact000014">88-0748933</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="AsOf2025-10-22" id="Fact000015">1180 North Town Center Drive</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="AsOf2025-10-22" id="Fact000016">Suite 100</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="AsOf2025-10-22" id="Fact000017">Las Vegas</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="AsOf2025-10-22" id="Fact000018">NV</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="AsOf2025-10-22" id="Fact000019">89144</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="AsOf2025-10-22" id="Fact000020">702</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="AsOf2025-10-22" id="Fact000021">781-4313</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="AsOf2025-10-22" id="Fact000022">true</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="AsOf2025-10-22" id="Fact000023">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="AsOf2025-10-22" id="Fact000024">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="AsOf2025-10-22" id="Fact000025">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="From2025-10-222025-10-22_custom_UnitsEachConsistingOfOneShareOfClassCommonStockAndOnehalfOfOneRedeemableWarrantMember"
      id="Fact000026">Units, each consisting of one share of Class A common stock and one-half of one redeemable warrant</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2025-10-222025-10-22_custom_UnitsEachConsistingOfOneShareOfClassCommonStockAndOnehalfOfOneRedeemableWarrantMember"
      id="Fact000027">DMYYU</dei:TradingSymbol>
    <dei:Security12bTitle
      contextRef="From2025-10-222025-10-22_custom_ClassCommonStockParValue0.0001PerShareMember"
      id="Fact000028">Class A common stock, par value $0.0001 per share&#160;</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2025-10-222025-10-22_custom_ClassCommonStockParValue0.0001PerShareMember"
      id="Fact000029">DMYY</dei:TradingSymbol>
    <dei:Security12bTitle
      contextRef="From2025-10-222025-10-22_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfClassCommonStockEachAtExercisePriceOf11.50PerShareMember"
      id="Fact000030">Redeemable warrants, each whole warrant exercisable for one share of Class A common stock, each at an exercise price of $11.50 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2025-10-222025-10-22_custom_RedeemableWarrantsEachWholeWarrantExercisableForOneShareOfClassCommonStockEachAtExercisePriceOf11.50PerShareMember"
      id="Fact000031">DMYYW</dei:TradingSymbol>
    <dei:EntityEmergingGrowthCompany contextRef="AsOf2025-10-22" id="Fact000032">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="AsOf2025-10-22" id="Fact000033">false</dei:EntityExTransitionPeriod>
</xbrl>
