2.2.0.7truePension plans and other postretirement benefits (Details) (USD $)0607 - Disclosure - Pension plans and other postretirement benefits (Details)truefalsefalsefalse1USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false2USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false3USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170PureStandardhttp://www.xbrl.org/2003/instancepurexbrli0SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$false4USDfalsefalseUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170SharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli0USDEPSDividehttp://www.xbrl.org/2003/iso4217USDiso4217http://www.xbrl.org/2003/instancesharesxbrli0$92mtb_PensionPlansAndOtherPostretirementBenefitsTextualAbstractmtbfalsenadurationPension plans and other postretirement benefits Textual Abstract.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringPension plans and other postretirement benefits Textual Abstract.false102us-gaap_PensionAndOtherPostretirementBenefitExpenseus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1truetruefalsefalse87750008775000falsefalsefalse2truetruefalsefalse83300008330000falsefalsefalse3truetruefalsefalse2046500020465000falsefalsefalse4truetruefalsefalse1910500019105000falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of pension and other (such as medical, dental and life insurance) postretirement benefit costs recognized during the period for (1) defined benefit plans (periodic benefit costs include the following components: service cost, interest cost, expected return on plan assets, gain or loss on assets, prior service cost or credit, transition asset or obligation, and gain or loss due to settlements or curtailments) and for (2) defined contribution plans (to the extent that a plan's defined contributions to an individual's account are to be made for periods in which that individual renders services, the net cost for a period shall be the contribution called for in that period; if a plan calls for contributions for periods after an individual retires or terminates, the estimated cost shall be accrued during the employee's service period).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 95
-Paragraph 28
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5, 11
false110natruenanaNo definition available.falsetruefalsefalsefalsefalsefalsefalsefalsefalsefalsehttp://mtb.com/role/pensionplansandotherpostretirementbenefitsdetailsfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalsefalse5USDtruefalsefalsefalseDefined benefit plans [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_PensionPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false6USDtruefalsefalsefalseDefined benefit plans [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_PensionPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false7USDtruefalsefalsefalseDefined benefit plans [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_PensionPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false8USDtruefalsefalsefalseDefined benefit plans [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_PensionPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$naNo definition available.No authoritative reference available.false122us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false132us-gaap_DefinedBenefitPlanServiceCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse49600004960000falsefalsefalse2falsetruefalsefalse47380004738000falsefalsefalse3falsetruefalsefalse98350009835000falsefalsefalse4falsetruefalsefalse96130009613000falsefalsefalsexbrli:monetaryItemTypemonetaryThe actuarial present value of benefits attributed by the pension benefit formula to services rendered by employees during the period. The portion of the expected postretirement benefit obligation attributed to employee service during the period. The service cost component is a portion of the benefit obligation and is unaffected by the funded status of the plan.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a, h
false142us-gaap_DefinedBenefitPlanInterestCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse1203200012032000falsefalsefalse2falsetruefalsefalse1126400011264000falsefalsefalse3falsetruefalsefalse2406100024061000falsefalsefalse4falsetruefalsefalse2227900022279000falsefalsefalsexbrli:monetaryItemTypemonetaryThe increase in a defined benefit pension plan's projected benefit obligation or a defined benefit postretirement plan's accumulated postretirement benefit obligation due to the passage of time.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a, h
false152us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssetsus-gaaptruecreditdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse-12655000-12655000falsefalsefalse2falsetruefalsefalse-11576000-11576000falsefalsefalse3falsetruefalsefalse-25443000-25443000falsefalsefalse4falsetruefalsefalse-23051000-23051000falsefalsefalsexbrli:monetaryItemTypemonetaryAn amount calculated as a basis for determining the extent of delayed recognition of the effects of changes in the fair value of assets. The expected return on plan assets is determined based on the expected long-term rate of return on plan assets and the market-related value of plan assets.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
false162us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCreditus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse-1629000-1629000falsefalsefalse2falsetruefalsefalse-1629000-1629000falsefalsefalse3falsetruefalsefalse-3279000-3279000falsefalsefalse4falsetruefalsefalse-3279000-3279000falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of the prior service cost or credit recognized in net periodic benefit cost relating to benefit changes attributable to plan participants' prior service pursuant to a plan amendment or a plan initiation.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
false172us-gaap_DefinedBenefitPlanActuarialNetGainsLossesus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsetotallabelfalse1falsetruefalsefalse34550003455000falsefalsefalse2falsetruefalsefalse24990002499000falsefalsefalse3falsetruefalsefalse67760006776000falsefalsefalse4falsetruefalsefalse48490004849000falsefalsefalsexbrli:monetaryItemTypemonetaryThe net increase or decrease of changes in the value of either the benefit obligation or the plan assets resulting from experience different from that assumed or from a change in an actuarial assumption, or the consequence of a decision to temporarily deviate from the substantive plan.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a
true182us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsetotallabelfalse1falsetruefalsefalse61630006163000falsefalsefalse2falsetruefalsefalse52960005296000falsefalsefalse3falsetruefalsefalse1195000011950000falsefalsefalse4falsetruefalsefalse1041100010411000falsefalsefalsexbrli:monetaryItemTypemonetaryThe total amount of net periodic benefit cost for defined benefit plans for the period. Periodic benefit costs include the following components: service cost, interest cost, expected return on plan assets, gain or loss, prior service cost or credit, transition asset or obligation, and gain or loss due to settlements or curtailments).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
true210natruenanaNo definition available.falsetruefalsefalsefalsefalsefalsefalsefalsefalsefalsehttp://mtb.com/role/pensionplansandotherpostretirementbenefitsdetailsfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalsefalse9USDtruefalsefalsefalseOther postretirement benefits [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_OtherPostretirementBenefitPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false10USDtruefalsefalsefalseOther postretirement benefits [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_OtherPostretirementBenefitPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false11USDtruefalsefalsefalseOther postretirement benefits [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_OtherPostretirementBenefitPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$false12USDtruefalsefalsefalseOther postretirement benefits [Member]us-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_OtherPostretirementBenefitPlansDefinedBenefitMemberus-gaap_DefinedBenefitPlansDisclosuresDefinedBenefitPlansAxisexplicitMemberUSDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170$naNo definition available.No authoritative reference available.false222us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstractus-gaaptruenadurationNo definition available.falsefalsefalsefalsefalsetruefalsefalsefalsefalsefalseverboselabelfalse1falsefalsefalsefalse00falsefalsefalse2falsefalsefalsefalse00falsefalsefalse3falsefalsefalsefalse00falsefalsefalse4falsefalsefalsefalse00falsefalsefalsexbrli:stringItemTypestringNo definition available.false232us-gaap_DefinedBenefitPlanServiceCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse102000102000falsefalsefalse2falsetruefalsefalse2700027000falsefalsefalse3falsetruefalsefalse202000202000falsefalsefalse4falsetruefalsefalse177000177000falsefalsefalsexbrli:monetaryItemTypemonetaryThe actuarial present value of benefits attributed by the pension benefit formula to services rendered by employees during the period. The portion of the expected postretirement benefit obligation attributed to employee service during the period. The service cost component is a portion of the benefit obligation and is unaffected by the funded status of the plan.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a, h
false242us-gaap_DefinedBenefitPlanInterestCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse785000785000falsefalsefalse2falsetruefalsefalse747000747000falsefalsefalse3falsetruefalsefalse15650001565000falsefalsefalse4falsetruefalsefalse16470001647000falsefalsefalsexbrli:monetaryItemTypemonetaryThe increase in a defined benefit pension plan's projected benefit obligation or a defined benefit postretirement plan's accumulated postretirement benefit obligation due to the passage of time.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a, h
false262us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCreditus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalseverboselabelfalse1falsetruefalsefalse6300063000falsefalsefalse2falsetruefalsefalse4600046000falsefalsefalse3falsetruefalsefalse8800088000falsefalsefalse4falsetruefalsefalse121000121000falsefalsefalsexbrli:monetaryItemTypemonetaryThe amount of the prior service cost or credit recognized in net periodic benefit cost relating to benefit changes attributable to plan participants' prior service pursuant to a plan amendment or a plan initiation.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
false272us-gaap_DefinedBenefitPlanActuarialNetGainsLossesus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsetotallabelfalse1falsetruefalsefalse-5000-5000falsefalsefalse2falsetruefalsefalse-10000-10000falsefalsefalse3falsetruefalsefalse-5000-5000falsefalsefalse4falsetruefalsefalse-10000-10000falsefalsefalsexbrli:monetaryItemTypemonetaryThe net increase or decrease of changes in the value of either the benefit obligation or the plan assets resulting from experience different from that assumed or from a change in an actuarial assumption, or the consequence of a decision to temporarily deviate from the substantive plan.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 106
-Paragraph 518
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 87
-Paragraph 264
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph a
true282us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostus-gaaptruedebitdurationNo definition available.falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsetotallabelfalse1truetruefalsefalse945000945000falsefalsefalse2truetruefalsefalse810000810000falsefalsefalse3truetruefalsefalse18500001850000falsefalsefalse4truetruefalsefalse19350001935000falsefalsefalsexbrli:monetaryItemTypemonetaryThe total amount of net periodic benefit cost for defined benefit plans for the period. Periodic benefit costs include the following components: service cost, interest cost, expected return on plan assets, gain or loss, prior service cost or credit, transition asset or obligation, and gain or loss due to settlements or curtailments).Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 132R
-Paragraph 5
-Subparagraph h
true417falseNoRoundingUnKnownUnKnownfalsetrue