<?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_ae9e242f-c8a5-4026-ae49-cd4176768c8e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001824920</identifier>
        </entity>
        <period>
            <startDate>2026-11-04</startDate>
            <endDate>2026-11-04</endDate>
        </period>
    </context>
    <context id="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001824920</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-11-04</startDate>
            <endDate>2026-11-04</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_41a1e7f6-e398-42e7-81d0-723324466cb4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_768c2889-76aa-4a18-95ff-2cef72cab768">0001824920</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_509e86d3-56e9-4f76-ba06-04cf698327c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingSctyTitl
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      id="F_e3464b8b-458f-4c86-bc28-79a84aefd3ff">Common Stock, par value $0.0001 per share, reserved for issuance under the Registrant's 2021 Equity Incentive Plan and its 2021 Employee Stock Purchase Plan</ffd:OfferingSctyTitl>
    <ffd:FormTp
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_c476225b-03ae-4012-9609-3317eb811aa3">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_edaf787d-f0b7-40c8-aeef-cf10f4ee8489">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      id="F_ae46757f-cae6-4b0e-bda4-aadbf0ae87c2">IonQ, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      id="F_12f24b02-ed4f-4a08-9170-7b0beb516d45">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      id="F_1809d502-d78e-49f3-a343-86d5fffad9b2">Equity</ffd:OfferingSctyTp>
    <ffd:FeesOthrRuleFlg
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      id="F_8b964eac-70c0-480b-bfbd-2e05445bac8c">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      decimals="INF"
      id="F_5715713d-8f0d-4b8e-a3b6-235beda247f8"
      unitRef="U_shares">1268684</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      decimals="2"
      id="F_af179db8-50c7-49f9-8ddf-6a0ecc129508"
      unitRef="U_USD">29.37</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      decimals="2"
      id="F_de0ad1d5-996b-44aa-95dd-b307f2f5f77b"
      unitRef="U_USD">37261249.08</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      decimals="6"
      id="F_1f9b655b-e840-4763-908c-1d504bdd4c1d"
      unitRef="U_pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      decimals="2"
      id="F_36c6a39d-cb57-4c27-8742-c6312ee6c85d"
      unitRef="U_USD">3241.73</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      decimals="2"
      id="F_456318d0-639b-4db1-8bb1-d13aed04e392"
      unitRef="U_USD">37261249.08</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      decimals="2"
      id="F_1ce07ec6-2519-4212-a527-6b880d803a11"
      unitRef="U_USD">3241.73</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      decimals="0"
      id="F_863e5467-6a70-4a68-8cf6-9fd8a13b504c"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_ae9e242f-c8a5-4026-ae49-cd4176768c8e"
      decimals="2"
      id="F_65648fdf-f8bd-4f16-91ae-4478f8e098a0"
      unitRef="U_USD">3241.73</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_b4add1e6-08c0-4227-b7c7-3abaa61fc745"
      id="F_3964a103-6244-4df1-be4f-f9389b299255">&lt;div class="item-list-element-wrapper" style="tab-size:32px;display:flex;font-size:8.5pt;margin-top:0;justify-content:flex-start;font-family:Times New Roman;align-items:baseline;margin-bottom:0;min-width:3.87%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:3.87%;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:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Amount Registered represents the estimated maximum number of shares of common stock, par value $0.0001 per share (&#x201c;IonQ Common Stock&#x201d;), of IonQ, Inc., a Delaware corporation (&#x201c;IonQ&#x201d;), to be issued, or subject to stock-based awards that were assumed by IonQ upon completion of the transactions contemplated by the Agreement and Plan of Merger, dated as of October 9, 2026, by and among IonQ, Espresso Acquisition Sub, Inc., Elisity, Inc. (&#x201c;Elisity&#x201d;) and certain other parties, (as such agreement may be amended from time to time, the &#x201c;Merger Agreement,&#x201d; and such transactions, the &#x201c;Merger&#x201d;). This number is based on the sum of (i) 1,142,199, the number of shares of IonQ Common Stock that may be issued in respect of IonQ restricted stock units (&#x201c;IonQ RSUs&#x201d;) into which stock options in respect of shares of common stock of Elisity (&#x201c;Elisity Common Stock&#x201d;) that were outstanding and unvested immediately prior to the effective time of the Merger were converted, in accordance with the applicable exchange ratio under the Merger Agreement (the &#x201c;Exchange Ratio&#x201d;), plus (ii) 55,278, the number of shares of IonQ Common Stock that may be issued in respect of IonQ RSUs or IonQ restricted stock awards into which restricted stock awards in respect of Elisity Common Stock that were outstanding immediately prior to the effective time of the Merger were converted, in accordance with the Exchange Ratio, plus (iii) 71,207, the number of shares of IonQ Common Stock into which the number of shares of Elisity Common Stock that remained available for issuance under the Elisity, Inc. Stock Incentive Plan (the &#x201c;Elisity Plan&#x201d;) as of the closing of the Merger, which IonQ assumed in connection with the Merger, were converted in accordance with the Exchange Ratio&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="tab-size:32px;display:flex;font-size:8.5pt;margin-top:0;justify-content:flex-start;font-family:Times New Roman;align-items:baseline;margin-bottom:0;min-width:3.87%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:3.87%;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:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rule 416(a) of the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this registration statement (the &#x201c;Registration Statement&#x201d;) shall also cover any additional shares of IonQ Common Stock that become issuable under the Elisity Plan by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without receipt of consideration or conversion of IonQ Common Stock that increases the number of outstanding shares of IonQ Common Stock.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="item-list-element-wrapper" style="tab-size:32px;display:flex;font-size:8.5pt;margin-top:0;justify-content:flex-start;font-family:Times New Roman;align-items:baseline;margin-bottom:0;min-width:3.87%;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:3.87%;word-break:keep-all;display:inline-flex;justify-content:flex-start;"&gt;(3)&lt;/span&gt;&lt;div style="display:inline;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Estimated solely for the purpose of calculating the registration fee pursuant to Rules 457(c) and 457(h) under the Securities Act, on the basis of $29.37 per share, the average of the high and low prices of IonQ Common Stock as reported on the New York Stock Exchange on November 2, 2026, a date within five business days prior to the date of filing of the Registration Statement. &lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
