<?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_8b9de38e-e884-43b7-bc99-c55568bb1141">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001563880</identifier>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</endDate>
        </period>
    </context>
    <context id="C_1be5725d-996a-47c5-a26a-48ee4b4402e1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001563880</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-08-06</startDate>
            <endDate>2026-08-06</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_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_66f2681c-b684-41c4-aa15-a84dd2bad2e3">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_831d4ab7-c764-45fb-b6d7-e4be21de1692">0001563880</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_cb72d091-9dd5-4ea6-a8d2-bc036b3dc2d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_12b6931d-ff9b-4c80-8a17-cf9de8e2872b">S-8</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_5bfed9b3-7409-4721-843e-cd6110b7f000">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      id="F_67ebb29a-b0ab-4abf-8b11-62efa25e75ca">Trevi Therapeutics, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      id="F_2a8db189-6ff2-47f3-b88e-ac727b55cc8c">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      id="F_1de7ca98-8c29-441b-8944-83a6e4c9e1fd">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      id="F_aec716e9-3fec-4b42-a994-e9a5c15ca2e9">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      id="F_20717b4b-2e59-4042-8675-797b1a5f4daf">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      decimals="INF"
      id="F_d97f3d8a-e3e1-4d20-aac5-1d4e04697073"
      unitRef="U_shares">8000000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      decimals="2"
      id="F_549391e3-6c20-48e3-9dcd-7ea17685d7f0"
      unitRef="U_USD">17.97</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      decimals="2"
      id="F_a828922b-67a3-45d5-8669-1d155028a744"
      unitRef="U_USD">143760000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      decimals="7"
      id="F_1ca0dae7-c43a-491a-8a15-f2be6f21c313"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      decimals="2"
      id="F_f0652783-c218-4f5e-a8d0-4fc8bee9a4ff"
      unitRef="U_USD">19853.26</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      decimals="2"
      id="F_94fc65bd-95d4-450e-b5c7-3e94f0770c5a"
      unitRef="U_USD">143760000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      decimals="2"
      id="F_4b03c860-0e84-4b75-a42e-41fb7d5fb88e"
      unitRef="U_USD">19853.26</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      decimals="0"
      id="F_ae54815e-b3b8-45e5-933c-ce5f54b637ac"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_8b9de38e-e884-43b7-bc99-c55568bb1141"
      decimals="1"
      id="F_c78f0539-4b94-4d4b-9fdd-5207142c8544"
      unitRef="U_USD">19853.2</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_1be5725d-996a-47c5-a26a-48ee4b4402e1"
      id="F_027fba3f-2748-4cdc-9035-b88d81d1a7d4">
     &lt;table style="border-spacing:0;table-layout:auto;width:100.0%;border-collapse:separate;"&gt;
      &lt;tr style="visibility:collapse;"&gt;
       &lt;td style="width:4%;box-sizing:content-box;"&gt;&lt;/td&gt;
       &lt;td style="width:96%;box-sizing:content-box;"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr style="height:10pt;white-space:pre-wrap;word-break:break-word;text-align:left;"&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;(1)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rule 416 of the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this registration statement shall also cover any additional shares of the Registrant&#x2019;s common stock, $0.001 par value per share (&#x201c;Common Stock&#x201d;), that may from time to time be offered or issued to prevent dilution by reason of any stock dividend, stock split or other similar transaction.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr style="height:10pt;white-space:pre-wrap;word-break:break-word;text-align:left;"&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;(2)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;The proposed maximum offering price per unit of $17.97 is estimated pursuant to Rule 457(c) and Rule 457(h) of the Securities Act solely for purposes of calculating the registration fee, and is based upon the average of the high and low prices of the Common Stock on August 3, 2026, as reported on the Nasdaq Global Market.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr style="height:10pt;white-space:pre-wrap;word-break:break-word;text-align:left;"&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;(3)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
       &lt;td style="padding-top:0in;padding-left:0in;vertical-align:top;padding-bottom:0in;padding-right:0in;"&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;Consists of 8,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;&#160;additional shares issuable under the Trevi Therapeutics, Inc. Amended and Restated 2019 Stock Incentive Plan.&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
      &lt;/tr&gt;
     &lt;/table&gt;</ffd:OfferingNote>
</xbrl>
