<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="none-20260715.xsd" xlink:type="simple"/>
    <context id="c20260715to20260715">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001321783</identifier>
        </entity>
        <period>
            <startDate>2026-07-15</startDate>
            <endDate>2026-07-15</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="c20260715to20260715"
      id="Fact_9c2f75977b954a21a83d295d24cda9ed">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="c20260715to20260715"
      id="Fact_ff25eab7102c40afbdea3b4b65585ebe">0001321783</dei:EntityCentralIndexKey>
    <dei:EntityIncorporationStateCountryCode
      contextRef="c20260715to20260715"
      id="Fact_987bffec0d8843039ce1e685ef925538">DE</dei:EntityIncorporationStateCountryCode>
    <dei:DocumentType
      contextRef="c20260715to20260715"
      id="Fact_48cff4ccfa37463697063647b98d2714">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="c20260715to20260715"
      id="Fact_bb6bbc1b32db4a6c98a1983b98eabdf9">2026-07-15</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="c20260715to20260715"
      id="Fact_d5b11ec355394a9c8dfbdf6e4a6e7270">SLM Student Loan Trust 2004-2</dei:EntityRegistrantName>
    <dei:EntityFileNumber
      contextRef="c20260715to20260715"
      id="Fact_63ead0d3b9264a00af96af3f1f6338f6">333-104887-13</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="c20260715to20260715"
      id="Fact_ae545afd953a496995f1612640204f7a">04-3480392</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="c20260715to20260715"
      id="Fact_fed8e10c33054cd7b643f39c63034914">60 Wall Street, 16th Floor</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="c20260715to20260715"
      id="Fact_381d5185e1f24a1dae0de107909f866f">Mail Stop NYC60-1625</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="c20260715to20260715"
      id="Fact_5e16555c333d41049c8b7613d89622ca">New York</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="c20260715to20260715"
      id="Fact_0a24222efe644ae68fbeb82d1ac2c224">NY</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="c20260715to20260715"
      id="Fact_58ab60c091254d278b2f3a8dbd94fff5">10005</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="c20260715to20260715"
      id="Fact_f4fdb97d17584ea9ad5bada6da2be468">703</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="c20260715to20260715"
      id="Fact_035989fc716040f599c013a83cc8f7ea">984-5858</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="c20260715to20260715"
      id="Fact_b08c799ef98946f9950a04994ea7a39f">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="c20260715to20260715"
      id="Fact_d23991328d704601b894d66ffe7d38f4">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="c20260715to20260715"
      id="Fact_2dcc35bfd763431291fd8c7bbfa3b025">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="c20260715to20260715"
      id="Fact_c0f65431edd8496d9a383c47f82182eb">false</dei:PreCommencementIssuerTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="c20260715to20260715"
      id="Fact_96d574042c274f46b3c788a5f6a3cb3f">false</dei:EntityEmergingGrowthCompany>
</xbrl>
