2.2.0.7 true Commitments and contingencies (Details) (USD $) 0613 - Disclosure - Commitments and contingencies (Details) true false false false 1 USD false false USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 Pure Standard http://www.xbrl.org/2003/instance pure xbrli 0 USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ false 2 USD false false USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 $ 2 2 mtb_CommitmentsToExtendCreditAbstract mtb false na duration Commitments to Extend Credit. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false xbrli:stringItemType string Commitments to Extend Credit. false 3 2 mtb_CommitmentsToExtendCreditForHomeEquityLinesOfCredit mtb false credit instant Commitments to extend credit for Home equity lines of credit. false false false false false false false false false false false verboselabel false 1 true true false false 6444381000 6444381000 false false false 2 true true false false 6482987000 6482987000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Home equity lines of credit. No authoritative reference available. false 4 2 mtb_CommitmentsToExtendCreditForCommercialRealEstateLoansToBeSold mtb false credit instant Commitments to extend credit for Commercial real estate loans to be sold. false false false false false false false false false false false verboselabel false 1 false true false false 120758000 120758000 false false false 2 false true false false 180498000 180498000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Commercial real estate loans to be sold. No authoritative reference available. false 5 2 mtb_CommitmentsToExtendCreditForOtherCommercialRealEstateAndConstruction mtb false credit instant Commitments to extend credit for Other commercial real estate and construction. false false false false false false false false false false false verboselabel false 1 false true false false 1442560000 1442560000 false false false 2 false true false false 1360805000 1360805000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Other commercial real estate and construction. No authoritative reference available. false 6 2 mtb_CommitmentsToExtendCreditForResidentialRealEstateLoansToBeSold mtb false credit instant Commitments to extend credit for Residential real estate loans to be sold. false false false false false false false false false false false verboselabel false 1 false true false false 684325000 684325000 false false false 2 false true false false 631090000 631090000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Residential real estate loans to be sold. No authoritative reference available. false 7 2 mtb_CommitmentsToExtendCreditForOtherResidentialRealEstate mtb false credit instant Commitments to extend credit for Other residential real estate. false false false false false false false false false false false verboselabel false 1 false true false false 129234000 129234000 false false false 2 false true false false 127788000 127788000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Other residential real estate. No authoritative reference available. false 8 2 mtb_CommitmentsToExtendCreditForCommercialAndOther mtb false credit instant Commitments to extend credit for Commercial and other. false false false false false false false false false false false verboselabel false 1 false true false false 7147137000 7147137000 false false false 2 false true false false 7155188000 7155188000 false false false xbrli:monetaryItemType monetary Commitments to extend credit for Commercial and other. No authoritative reference available. false 9 2 mtb_CommitmentsRegardingStandbyLettersOfCredit mtb false credit instant Commitments regarding Standby letters of credit. false false false false false false false false false false false verboselabel false 1 false true false false 3810958000 3810958000 false false false 2 false true false false 3828586000 3828586000 false false false xbrli:monetaryItemType monetary Commitments regarding Standby letters of credit. No authoritative reference available. false 10 2 mtb_CommitmentsRegardingCommercialLettersOfCredit mtb false credit instant Commitments regarding Commercial letters of credit. false false false false false false false false false false false verboselabel false 1 false true false false 71497000 71497000 false false false 2 false true false false 66377000 66377000 false false false xbrli:monetaryItemType monetary Commitments regarding Commercial letters of credit. No authoritative reference available. false 11 2 mtb_CommitmentsRegardingFinancialGuaranteesAndIndemnificationContracts mtb false credit instant Commitments regarding Financial guarantees and indemnification contracts. false false false false false false false false false false false verboselabel false 1 false true false false 1759008000 1759008000 false false false 2 false true false false 1633549000 1633549000 false false false xbrli:monetaryItemType monetary Commitments regarding Financial guarantees and indemnification contracts. No authoritative reference available. false 12 2 mtb_CommitmentsToSellRealEstateLoansNotionalAmount mtb false credit instant Commitments To Sell Real Estate Loans Notional Amount. false false false false false false false false false false false verboselabel false 1 false true false false 979309000 979309000 false false false 2 false true false false 1239001000 1239001000 false false false xbrli:monetaryItemType monetary Commitments To Sell Real Estate Loans Notional Amount. No authoritative reference available. false 13 2 mtb_CommitmentsAndContingenciesTextualsAbstract mtb false na duration Commitments and contingencies Textuals . false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false xbrli:stringItemType string Commitments and contingencies Textuals . false 14 2 mtb_MaximumCreditRiskForRecourseAssociatedWithLoansSoldUnderFederalNationalMortgageAssociationDelegatedUnderwritingAndServicingProgram mtb false credit instant Maximum credit risk for recourse associated with loans sold under Federal National Mortgage Association Delegated... false false false false false false false false false false false verboselabel false 1 false true false false 1500000000 1500000000 false false false 2 false true false false 1300000000 1300000000 false false false xbrli:monetaryItemType monetary Maximum credit risk for recourse associated with loans sold under Federal National Mortgage Association Delegated Underwriting and Servicing program. No authoritative reference available. false 16 2 mtb_OutstandingLoanPrincipalBalancesReinsured mtb false credit instant Outstanding loan principal balances reinsured. false false false false false false false false false false false verboselabel false 1 false true false false 91000000 91000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Outstanding loan principal balances reinsured. No authoritative reference available. false 17 2 mtb_AssetsOfSubsidiariesProvidingReinsuranceToSatisfyClaims mtb false debit instant Assets of subsidiaries providing reinsurance to satisfy claims. false false false false false false false false false false false verboselabel false 1 false true false false 73000000 73000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Assets of subsidiaries providing reinsurance to satisfy claims. No authoritative reference available. false 18 0 na true na na No definition available. false true false false false false false false false false false http://mtb.com/role/commitmentsandcontingenciesdetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false false 3 USD true false false false 2009 - 2013 [Member] us-gaap_ProductOrServiceAxis xbrldi http://xbrl.org/2006/xbrldi mtb_PeriodOneMember us-gaap_ProductOrServiceAxis explicitMember USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 30 2 mtb_CommitmentsAndContingenciesTextualsAbstract mtb false na duration Commitments and contingencies Textuals . false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false xbrli:stringItemType string Commitments and contingencies Textuals . false 32 2 mtb_NamingRightsOfFootballStadiumPerYear mtb false debit duration Naming Rights Of Football Stadium Per Year. false false false false false false false false false false false verboselabel false 1 false true false false 5000000 5000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Naming Rights Of Football Stadium Per Year. No authoritative reference available. false 35 0 na true na na No definition available. false true false false false false false false false false false http://mtb.com/role/commitmentsandcontingenciesdetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false false 4 USD true false false false 2014 - 2017 [Member] us-gaap_ProductOrServiceAxis xbrldi http://xbrl.org/2006/xbrldi mtb_PeriodTwoMember us-gaap_ProductOrServiceAxis explicitMember USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 $ na No definition available. No authoritative reference available. false 47 2 mtb_CommitmentsAndContingenciesTextualsAbstract mtb false na duration Commitments and contingencies Textuals . false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false xbrli:stringItemType string Commitments and contingencies Textuals . false 49 2 mtb_NamingRightsOfFootballStadiumPerYear mtb false debit duration Naming Rights Of Football Stadium Per Year. false false false false false false false false false false false verboselabel false 1 true true false false 6000000 6000000 false false false 2 false false false false 0 0 false false false xbrli:monetaryItemType monetary Naming Rights Of Football Stadium Per Year. No authoritative reference available. false 2 21 false NoRounding UnKnown UnKnown false true