<?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"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002075320</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-07-15</startDate>
            <endDate>2026-07-15</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002075320</identifier>
        </entity>
        <period>
            <startDate>2026-07-15</startDate>
            <endDate>2026-07-15</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="fee_001">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0002075320</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_004">false</ffd:PrevslyPdFlg>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_005" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_006">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_007">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_008">POLARYX THERAPEUTICS, INC.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="fee_009">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="fee_010">Common Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_1" id="fee_011">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="fee_012"
      unitRef="shares">3867158</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_013"
      unitRef="USD">2.24</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_014"
      unitRef="USD">8662434.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_016"
      unitRef="USD">1196.30</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_017"
      unitRef="USD">8662434.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_018"
      unitRef="USD">1196.30</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_019"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_020"
      unitRef="USD">1196.30</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_021">Pursuant to Rule 416 under the Securities Act of 1933,as amended (the &#x201c;Securities Act&#x201d;) this registration statement also relates to such additional number of shares available for issuance under the Polaryx Therapeutics, Inc. 2025 Equity Incentive Plan (the &#x201c;Plan&#x201d;) as may be required pursuant to the Plan in the event of a stock dividend, stock split, recapitalization or other similar event, or as otherwise provided for in the Plan.&lt;br/&gt;&lt;br/&gt;Represents 3,867,158 shares of common stock available for future issuance under the Plan, which number consists of (i) 1,500,000 shares initially available for future grants under the Plan and (ii) 2,367,158 shares increased on January 1, 2026 pursuant to the terms of the Plan.&lt;br/&gt;&lt;br/&gt;Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(c) and (h) under the Securities Act, on the basis of the average of the high and low prices per share of the common stock as reported on The Nasdaq Capital Market on July 22, 2026.</ffd:OfferingNote>
</xbrl>
