<?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-20260909.xsd" xlink:type="simple"/>
    <context id="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001638287</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_XuKqJVJwokeCGS22b0KshQ_1_1">0001638287</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_revSbCGP9Uyx3SDwJ-N75g_2_1">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_SOGKEtZHhky3AZkdj7vSCg">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_GFsWDB_Wr0SteyATUYEmGA">2026-09-09</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_eLgcFHz-7kSfSNgJDg9amw">METAVIA INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_dkspM7g7aUyDu8pWk2Rufg_1_0">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_ImdeEyEJZEOVs4WhZcfzKQ_1_2">001-37809</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_FcFo3oTvJESHuNJrXHxkwQ_1_4">47-2389984</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_Eaz5bE-BbEyJsFPw7g_f8w">545 Concord Avenue</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_DeRx4qyg8E2lH7P0TFK1WQ">Suite 210</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_GPLpvELBdk-A7J4xADrxZQ">Cambridge</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_WpjWmHu_KUCiO-0HnBHN_w">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_aryE3FAkfkeWnZ-XCje3ew_1_2">02138</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_oh2jJkbxMEmMd0cuP0eApg">857</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_AqXB5gpCk0W9hhJ-v91-Qg">702-9600</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_Ryn95hi7wU2L1c1_IubRhw_1_0">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_-W456ok6F0GWzruyeYnk2Q_2_0">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc__1Ze-7fj8kSc5r0wqqm6xA_3_0">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_mGv3a0KAok6K6NZGc7NDQQ_4_0">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_Wvpk9RFU10S7lAfRpZhEeg_2_0">Common Stock, par value $0.001 per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_-T9D44skDUOnWUd7ndkFXg_2_2">MTVA</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Tc_YDKijyR1GE-tYfUG_xPFHQ_2_4">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="Duration_9_9_2026_To_9_9_2026_MjJP-pLOjEahN1X6IQlrHA"
      id="Narr_WpWytjsbBE21SR_rlKB2GA">false</dei:EntityEmergingGrowthCompany>
</xbrl>
