<?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-20261112.xsd" xlink:type="simple"/>
    <context id="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001638287</identifier>
        </entity>
        <period>
            <startDate>2026-11-12</startDate>
            <endDate>2026-11-12</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_YHjLkCvDp0-FFAOpkF6gqw_1_1">0001638287</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_hVgu-GmdV0u8dxkLl888EQ_2_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_mGlZOPhiwkyxCKlOr3d5jg">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_55draHkIJ0S-KjzPy6bilA">2026-11-12</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_goZ3sp14o0KcJw09RQNY9Q">METAVIA INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_taf0mErXZEG0yb5nfTeroA_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_qyIIZqsAZE6bJ-AlrNruoQ_1_2">001-37809</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_iN82Njw8gEq8ohWZ64CC4Q_1_4">47-2389984</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_1Yv5G-giHEm0YP0ul2wpzw">545 Concord Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_alN8pVYj9EaPpmRGGD_M5w">Suite 210</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_WOk6ffB0qkywakCFN9ustQ">Cambridge</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_Wb2ZLhjZ_0alsgGolgitbw">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_Q3HdJZVj8ESVwz3th9Mj_Q_1_2">02138</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_0rh4Ehdx1k2ykVOGQ5UAUw">857</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_P9EVZHGZJECqEUKnpVfAEg">702-9600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_Qmhe_T2QZ0CkbVDFA7yzxA_1_0">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_VwRqopEa0kGgKuz8RJCbrA_2_0">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_Z9On1ye5IUmSXMz5ZgBhGg_3_0">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_Fkw5Yi5rWEys4DXpp2k_CQ_4_0">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_NvAhxW6UgkuFrzPpu9ARtQ_2_0">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_VovFBQd1w0ukM64RHi85GQ_2_2">MTVA</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Tc_B3qoLm_YcEiuCnqhK5jYOw_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_11_12_2026_To_11_12_2026_bec051DZyEymR2LVBcZoHw"
      id="Narr_hmZNBiHh2EympNAwCr7tXQ">false</dei:EntityEmergingGrowthCompany>
</xbrl>
