<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  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-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000036270</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-21</startDate>
            <endDate>2026-04-21</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000036270</identifier>
        </entity>
        <period>
            <startDate>2026-04-21</startDate>
            <endDate>2026-04-21</endDate>
        </period>
    </context>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-2" id="f-14">0000036270</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-2" id="f-15">M&amp;T Bank Corporation</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="c-2" id="f-16">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-2" id="f-17">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-2" id="f-18">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-2" id="f-19">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="c-1" id="f-20">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-1" id="f-1">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-1" id="f-2">Common Stock, par value $0.50 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-1" id="f-3">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-1" decimals="0" id="f-4" unitRef="usd">2750000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-1" decimals="2" id="f-5" unitRef="usd">220.16</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-1" decimals="2" id="f-6" unitRef="usd">605440000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-1" decimals="7" id="f-7" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-1" decimals="2" id="f-8" unitRef="usd">83611.27</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-2" decimals="2" id="f-9" unitRef="usd">605440000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-2" decimals="2" id="f-10" unitRef="usd">83611.27</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-2" decimals="0" id="f-11" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-2" decimals="2" id="f-12" unitRef="usd">83611.27</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-1" id="f-13">&lt;div&gt;&lt;table style="border-collapse:collapse;display:inline-table;margin-bottom:5pt;vertical-align:text-bottom;width:100.000%"&gt;&lt;tr&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:2.900%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:94.900%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;(1)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;Pursuant to Rule 416(a) promulgated under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), the registration statement on&#160;Form&#160;S-8&#160;(the&#160;&#x201c;Registration Statement&#x201d;) to which this exhibit relates shall also cover any additional shares of the common stock, par value $0.50 per share, of M&amp;amp;T Bank Corporation (the &#x201c;Corporation&#x201d;) that become issuable by reason of any stock dividend, stock split, recapitalization or other similar transaction that results in an increase in the number of outstanding shares of the Corporation&#x2019;s common stock.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;table style="border-collapse:collapse;display:inline-table;margin-bottom:5pt;vertical-align:text-bottom;width:100.000%"&gt;&lt;tr&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:2.900%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;td style="width:1.0%"&gt;&lt;/td&gt;&lt;td style="width:94.900%"&gt;&lt;/td&gt;&lt;td style="width:0.1%"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;(2)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;Represents the additional shares of the Corporation&#x2019;s common stock available for future issuance under the M&amp;amp;T Bank Corporation 2019 Equity Incentive Compensation Plan (amended and restated effective as of April 21, 2026) resulting from an amendment and restated adopted by the Corporation&#x2019;s shareholders as of April 21, 2026.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;(3)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan="3" style="background-color:#ffffff;padding:2px 1pt;text-align:left;vertical-align:top"&gt;&lt;div style="margin-bottom:8pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:125%"&gt;Estimated solely for the purpose of calculating the registration fee required by Section 6(b) of the Securities Act and calculated in accordance with Rules 457(c) and 457(h) promulgated thereunder. The aggregate offering price is computed based on $220.16, which is the average of the high and low prices of the Corporation&#x2019;s common stock as reported on the New York Stock Exchange on April 14, 2026.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</ffd:OfferingNote>
</xbrl>
