<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mtva-20261113.xsd" xlink:type="simple"/>
    <context id="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001638287</identifier>
        </entity>
        <period>
            <startDate>2026-11-13</startDate>
            <endDate>2026-11-13</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_2ymbi4lfGUuK7yeROLb1CA_1_1">0001638287</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_8_tT1LsdQEaxTg9-eHu8-w_2_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_M88aXPMK3EqMzjJW1Ue6eQ">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_h2n9wobQV0GT4bin-Ut2YA">2026-11-13</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_BgxFJVOlWUSiSu_TSoVJ-Q">METAVIA INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_0rNWu0CF_EynncE_iu9lJA_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_rfCF7MTRZU2Q8L_oXFamfg_1_2">001-37809</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_FMPESfeThEqJGzOvgovEcQ_1_4">47-2389984</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_TT24CHXs2kib1lrmcXXDWA">545 Concord Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_Hgpi7-737UeyiTcKE_Ef-Q">Suite 210</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_V9jSPTFuxU6redN8a9MAYA">Cambridge</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_c42t2E9vUUiMK3srS6w__g">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_hUYf9ETzOUGFMacQki0vsQ_1_2">02138</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_jKgBL158cEiYs8xiYVcdgg">857</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_9YDPxqVVhk2M_BSV-Y9HdA">702-9600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_AypQAOtTxkiQ5CSTN-nfig_1_0">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_6Rggm0CbcUKOHqKtpYQDMw_2_0">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_eVmYqUsXEEC4XlSCCAgLaQ_3_0">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_sh5jJhvnI0WIljIEPpExsQ_4_0">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_tX_fn0GUS0mEBtf3pNngCQ_2_0">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_ZhAsOL8yYkWGG-RNXG_H1w_2_2">MTVA</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Tc_hwqIxnIOHk-7inxZQkmjKA_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_11_13_2026_To_11_13_2026_-1VBw-qadEKLHf7gEriI2Q"
      id="Narr_VJ8IXbRSiE2nCmljYRFdlw">false</dei:EntityEmergingGrowthCompany>
</xbrl>
