<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_b4dd2c6d-3326-47f0-9d81-27f706115e56">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001590877</identifier>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <context id="C_ff41c043-e90e-474c-a605-91d15a477a38">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001590877</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-03</startDate>
            <endDate>2026-06-03</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_9ddcb9ef-1682-418c-b054-f88bca47631c">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_e64a1d16-edff-48dc-9eb0-c8c40320a8d9">0001590877</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_0cc8d1c7-c586-436b-9580-c10a5710a827">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_47280ff1-74c2-493b-b687-88b95ef63c4e">SC TO</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_1b4db527-8f1f-428b-8bec-778ab0a6de9c">SC TO-I</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      id="F_4b7c152a-2ff0-44ea-84c5-1e24ae002eea">REGENXBIO Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_ff41c043-e90e-474c-a605-91d15a477a38"
      id="F_d0852e89-3ec1-485b-8a6d-22e16f526ecc">false</ffd:PrevslyPdFlg>
    <ffd:TxValtn
      contextRef="C_ff41c043-e90e-474c-a605-91d15a477a38"
      decimals="2"
      id="F_7933513c-4ea9-4544-88be-8eeb2a57f8cc"
      unitRef="U_USD">19114019.48</ffd:TxValtn>
    <ffd:FeeRate
      contextRef="C_ff41c043-e90e-474c-a605-91d15a477a38"
      decimals="8"
      id="F_f5bee026-3c66-4a7d-8ac9-d193133a7328"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_ff41c043-e90e-474c-a605-91d15a477a38"
      decimals="2"
      id="F_b4880f67-3ae7-4f7c-9d6c-f71d9c30a834"
      unitRef="U_USD">2639.65</ffd:FeeAmt>
    <ffd:TtlTxValtn
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      decimals="2"
      id="F_50a6dc9e-453d-431d-a6f4-150e98e14141"
      unitRef="U_USD">19114019.48</ffd:TtlTxValtn>
    <ffd:TtlFeeAmt
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      decimals="2"
      id="F_ba807376-6ec9-45b9-9324-50c169077899"
      unitRef="U_USD">2639.65</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      decimals="0"
      id="F_9d788c24-e9a9-46d2-8667-146088ea290c"
      unitRef="U_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      decimals="0"
      id="F_59c66259-57b9-4ba5-8d0b-f44840f30f90"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_b4dd2c6d-3326-47f0-9d81-27f706115e56"
      decimals="2"
      id="F_1b1885be-7f00-4501-b66b-8e3fadc45f96"
      unitRef="U_USD">2639.65</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_ff41c043-e90e-474c-a605-91d15a477a38"
      id="F_3676142e-c3a2-492e-816b-eeb9ea067d64">&lt;div class="item-list-element-wrapper" style="display:flex;margin-top:0;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:4.537%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(1)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Calculated solely for purposes of determining the filing fee pursuant to Rule 0-11 of the Securities Exchange Act of 1934, as amended. The calculation of the Transaction Valuation assumes that all outstanding stock options to purchase shares of the Registrant&#x2019;s common stock that may be eligible for exchange in the offer will be exchanged pursuant to the offer and is based on the product of (i) $6.55, the average of the high and low prices per share of the Registrant&#x2019;s Common Stock on May 27, 2026, as reported on the Nasdaq Global Select Market and (ii) 2,915,945, the maximum number of shares of common stock underlying stock options to be exchanged in the transaction.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="display:flex;margin-top:6pt;justify-content:flex-start;align-items:baseline;margin-bottom:0;min-width:4.537%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:4.537%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(2)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The amount of the filing fee, calculated in accordance with Rule 0-11(b) of the Securities Exchange Act of 1934, as amended, equals $138.10 per $1,000,000 of the aggregate amount of the Transaction Valuation (or 0.01381% of the aggregate Transaction Valuation). The Transaction Valuation set forth above was calculated for the sole purpose of determining the filing fee and should not be used for any other purpose.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
