{
 "instance": {
  "d90553d10q.htm": {
   "axisCustom": 3,
   "axisStandard": 45,
   "contextCount": 848,
   "dts": {
    "calculationLink": {
     "local": [
      "ubsi-20200630_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ubsi-20200630_def.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-eedm-def-2020-01-31.xml",
      "http://xbrl.fasb.org/srt/2020/elts/srt-eedm1-def-2020-01-31.xml"
     ]
    },
    "inline": {
     "local": [
      "d90553d10q.htm"
     ]
    },
    "labelLink": {
     "local": [
      "ubsi-20200630_lab.xml"
     ],
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-doc-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2019/dei-doc-2019-01-31.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ubsi-20200630_pre.xml"
     ]
    },
    "referenceLink": {
     "remote": [
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-ref-2020-01-31.xml",
      "https://xbrl.sec.gov/dei/2019/dei-ref-2019-01-31.xml"
     ]
    },
    "schema": {
     "local": [
      "ubsi-20200630.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd",
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd",
      "http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-gaap-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-roles-2020-01-31.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-2020-01-31.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-types-2020-01-31.xsd",
      "http://xbrl.fasb.org/srt/2020/elts/srt-roles-2020-01-31.xsd",
      "https://xbrl.sec.gov/country/2020/country-2020-01-31.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-types-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "https://xbrl.sec.gov/currency/2020/currency-2020-01-31.xsd",
      "https://xbrl.sec.gov/exch/2020/exch-2020-01-31.xsd",
      "https://xbrl.sec.gov/naics/2017/naics-2017-01-31.xsd",
      "https://xbrl.sec.gov/sic/2020/sic-2020-01-31.xsd",
      "https://xbrl.sec.gov/stpr/2018/stpr-2018-01-31.xsd",
      "http://www.xbrl.org/lrr/arcrole/factExplanatory-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "http://xbrl.fasb.org/us-gaap/2020/elts/us-parts-codification-2020-01-31.xsd",
      "http://www.xbrl.org/lrr/role/deprecated-2009-12-16.xsd"
     ]
    }
   },
   "elementCount": 981,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2020-01-31": 2,
    "http://www.ubsi-inc.com/20200630": 2,
    "http://xbrl.sec.gov/dei/2019-01-31": 5,
    "total": 9
   },
   "keyCustom": 127,
   "keyStandard": 519,
   "memberCustom": 72,
   "memberStandard": 91,
   "nsprefix": "ubsi",
   "nsuri": "http://www.ubsi-inc.com/20200630",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "1001 - Document - Cover Page",
     "role": "http://www.ubsi-inc.com/role/CoverPage",
     "shortName": "Cover Page",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:DocumentType",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1010 - Disclosure - Mergers and Acquisitions",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitions",
     "shortName": "Mergers and Acquisitions",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BusinessCombinationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueOptionQuantitativeDisclosuresTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrincipalAmountOutstandingOnLoansHeldForSaleOrSecuritization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1100 - Disclosure - Fair Value Measurements - Summary of Difference Between Aggregate Fair Value and Remaining Contractual Principal Outstanding for Financial Instruments for which Fair Value Option has been Elected (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfDifferenceBetweenAggregateFairValueAndRemainingContractualPrincipalOutstandingForFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
     "shortName": "Fair Value Measurements - Summary of Difference Between Aggregate Fair Value and Remaining Contractual Principal Outstanding for Financial Instruments for which Fair Value Option has been Elected (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueOptionQuantitativeDisclosuresTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PrincipalAmountOutstandingOnLoansHeldForSaleOrSecuritization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:LoansHeldForSaleGainsLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1101 - Disclosure - Fair Value Measurements - Summary of Financial Assets Measured at Fair Value on Nonrecurring Basis (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
     "shortName": "Fair Value Measurements - Summary of Financial Assets Measured at Fair Value on Nonrecurring Basis (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:LoansHeldForSaleGainsLosses",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashCashEquivalentsAndFederalFundsSold",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1102 - Disclosure - Fair Value Measurements - Summary of Estimated Fair Values of Financial Instruments (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
     "shortName": "Fair Value Measurements - Summary of Estimated Fair Values of Financial Instruments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_CarryingReportedAmountFairValueDisclosureMemberusgaapFairValueByMeasurementBasisAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CashCashEquivalentsAndFederalFundsSold",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn05_12_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1103 - Disclosure - Stock Based Compensation - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
     "shortName": "Stock Based Compensation - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn05_12_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1104 - Disclosure - Stock Based Compensation - Summary of Stock Option Plans (Detail)",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail",
     "shortName": "Stock Based Compensation - Summary of Stock Option Plans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     }
    },
    "R105": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1105 - Disclosure - Stock Based Compensation - Status of United's Nonvested Stock Option Awards (Detail)",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail",
     "shortName": "Stock Based Compensation - Status of United's Nonvested Stock Option Awards (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNonvestedShareActivityTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     }
    },
    "R106": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019_RestrictedStockMemberusgaapAwardTypeAxis",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1106 - Disclosure - Stock Based Compensation - Changes to United's Restricted Common Shares (Detail)",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail",
     "shortName": "Stock Based Compensation - Changes to United's Restricted Common Shares (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "us-gaap:ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019_RestrictedStockMemberusgaapAwardTypeAxis",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     }
    },
    "R107": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1107 - Disclosure - Employee Benefit Plans - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail",
     "shortName": "Employee Benefit Plans - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R108": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1108 - Disclosure - Employee Benefit Plans - Net Periodic Pension Cost (Detail)",
     "role": "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail",
     "shortName": "Employee Benefit Plans - Net Periodic Pension Cost (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanServiceCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R109": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1109 - Disclosure - Income Taxes - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail",
     "shortName": "Income Taxes - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:EffectiveIncomeTaxRateContinuingOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_pure",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1011 - Disclosure - Investment Securities",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecurities",
     "shortName": "Investment Securities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R110": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1110 - Disclosure - Comprehensive Income - Components of Total Comprehensive Income (Detail)",
     "role": "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
     "shortName": "Comprehensive Income - Components of Total Comprehensive Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentAvailableforsaleSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R111": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn03_31_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1111 - Disclosure - Comprehensive Income - Components of Accumulated Other Comprehensive Income (Detail)",
     "role": "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
     "shortName": "Comprehensive Income - Components of Accumulated Other Comprehensive Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_PensionPlansDefinedBenefitMemberusgaapRetirementPlanTypeAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OciBeforeReclassificationsNetOfTaxAttributableToParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R112": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1112 - Disclosure - Comprehensive Income - Reclassifications Out of Accumulated Other Comprehensive Income (Detail)",
     "role": "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
     "shortName": "Comprehensive Income - Reclassifications Out of Accumulated Other Comprehensive Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "us-gaap:ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_AccumulatedNetUnrealizedInvestmentGainLossMemberusgaapStatementEquityComponentsAxis_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMemberusgaapReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DebtAndEquitySecuritiesGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R113": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:DistributedEarningsAllocatedToCommonStock",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1113 - Disclosure - Earnings Per Share - Reconciliation of Numerator and Denominator of Basic Earnings Per Share with that of Diluted Earnings Per Share (Detail)",
     "role": "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail",
     "shortName": "Earnings Per Share - Reconciliation of Numerator and Denominator of Basic Earnings Per Share with that of Diluted Earnings Per Share (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:DistributedEarningsAllocatedToCommonStock",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R114": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:VariableInterestEntityDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ubsi:NumberOfStatutoryBusinessTrusts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Trust",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1114 - Disclosure - Variable Interest Entities - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/VariableInterestEntitiesAdditionalInformationDetail",
     "shortName": "Variable Interest Entities - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:VariableInterestEntityDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ubsi:NumberOfStatutoryBusinessTrusts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Trust",
      "xsiNil": "false"
     }
    },
    "R115": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:InformationRelatedToStatutoryTrustsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_UnitedStatutoryTrustIiiMemberusgaapDebtInstrumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentIssuanceDate1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1115 - Disclosure - Variable Interest Entities - Information Related to Statutory Trusts (Detail)",
     "role": "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail",
     "shortName": "Variable Interest Entities - Information Related to Statutory Trusts (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:InformationRelatedToStatutoryTrustsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_UnitedStatutoryTrustIiiMemberusgaapDebtInstrumentAxis",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DebtInstrumentIssuanceDate1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R116": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Assets",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1116 - Disclosure - Variable Interest Entities - Summary of Quantitative Information Related to Significant Involvement in Unconsolidated Variable Interest Entities (Detail)",
     "role": "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail",
     "shortName": "Variable Interest Entities - Summary of Quantitative Information Related to Significant Involvement in Unconsolidated Variable Interest Entities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_TrustPreferredSecuritiesSubjectToMandatoryRedemptionMemberusgaapScheduleOfSharesSubjectToMandatoryRedemptionBySettlementTermsAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AssetsNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R117": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Segment",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1117 - Disclosure - Segment Information - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/SegmentInformationAdditionalInformationDetail",
     "shortName": "Segment Information - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:NumberOfOperatingSegments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Segment",
      "xsiNil": "false"
     }
    },
    "R118": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestIncomeExpenseNet",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1118 - Disclosure - Segment Information - Summary of Segment Reporting Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail",
     "shortName": "Segment Information - Summary of Segment Reporting Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "ubsi:AverageAssetsLiabilities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1012 - Disclosure - Loans",
     "role": "http://www.ubsi-inc.com/role/Loans",
     "shortName": "Loans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:CreditQualityTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1013 - Disclosure - Credit Quality",
     "role": "http://www.ubsi-inc.com/role/CreditQuality",
     "shortName": "Credit Quality",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:CreditQualityTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1014 - Disclosure - Allowance for Credit Losses",
     "role": "http://www.ubsi-inc.com/role/AllowanceForCreditLosses",
     "shortName": "Allowance for Credit Losses",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AllowanceForCreditLossesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1015 - Disclosure - Intangible Assets",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssets",
     "shortName": "Intangible Assets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:ServicingAssetTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1016 - Disclosure - Mortage Servicing Rights",
     "role": "http://www.ubsi-inc.com/role/MortageServicingRights",
     "shortName": "Mortage Servicing Rights",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:ServicingAssetTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1017 - Disclosure - Leases",
     "role": "http://www.ubsi-inc.com/role/Leases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeasesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1018 - Disclosure - Short-Term Borrowings",
     "role": "http://www.ubsi-inc.com/role/ShortTermBorrowings",
     "shortName": "Short-Term Borrowings",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1019 - Disclosure - Long-Term Borrowings",
     "role": "http://www.ubsi-inc.com/role/LongTermBorrowings",
     "shortName": "Long-Term Borrowings",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndDueFromBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1002 - Statement - Consolidated Balance Sheets",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndDueFromBanks",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1020 - Disclosure - Commitments and Contingent Liabilities",
     "role": "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilities",
     "shortName": "Commitments and Contingent Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1021 - Disclosure - Derivative Financial Instruments",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstruments",
     "shortName": "Derivative Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1022 - Disclosure - Fair Value Measurements",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurements",
     "shortName": "Fair Value Measurements",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1023 - Disclosure - Stock Based Compensation",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensation",
     "shortName": "Stock Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1024 - Disclosure - Employee Benefit Plans",
     "role": "http://www.ubsi-inc.com/role/EmployeeBenefitPlans",
     "shortName": "Employee Benefit Plans",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1025 - Disclosure - Income Taxes",
     "role": "http://www.ubsi-inc.com/role/IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1026 - Disclosure - Comprehensive Income",
     "role": "http://www.ubsi-inc.com/role/ComprehensiveIncome",
     "shortName": "Comprehensive Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ComprehensiveIncomeNoteTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1027 - Disclosure - Earnings Per Share",
     "role": "http://www.ubsi-inc.com/role/EarningsPerShare",
     "shortName": "Earnings Per Share",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:EarningsPerShareTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1028 - Disclosure - Variable Interest Entities",
     "role": "http://www.ubsi-inc.com/role/VariableInterestEntities",
     "shortName": "Variable Interest Entities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:VariableInterestEntityDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1029 - Disclosure - Segment Information",
     "role": "http://www.ubsi-inc.com/role/SegmentInformation",
     "shortName": "Segment Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesAmortizedCost",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1003 - Statement - Consolidated Balance Sheets (Parenthetical)",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical",
     "shortName": "Consolidated Balance Sheets (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:HeldToMaturitySecuritiesFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1030 - Disclosure - Summary of Significant Accounting Policies (Policies)",
     "role": "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesPolicies",
     "shortName": "Summary of Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1031 - Disclosure - Mergers and Acquisitions (Tables)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsTables",
     "shortName": "Mergers and Acquisitions (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1032 - Disclosure - Investment Securities (Tables)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables",
     "shortName": "Investment Securities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AvailableForSaleSecuritiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1033 - Disclosure - Loans (Tables)",
     "role": "http://www.ubsi-inc.com/role/LoansTables",
     "shortName": "Loans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1034 - Disclosure - Credit Quality (Tables)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityTables",
     "shortName": "Credit Quality (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:ScheduleRelatedToAccruedInterestReceivablesAndWrittenOffTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1035 - Disclosure - Allowance for Credit Losses (Tables)",
     "role": "http://www.ubsi-inc.com/role/AllowanceForCreditLossesTables",
     "shortName": "Allowance for Credit Losses (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:ScheduleRelatedToAccruedInterestReceivablesAndWrittenOffTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1036 - Disclosure - Intangible Assets (Tables)",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssetsTables",
     "shortName": "Intangible Assets (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1037 - Disclosure - Mortage Servicing Rights (Tables)",
     "role": "http://www.ubsi-inc.com/role/MortageServicingRightsTables",
     "shortName": "Mortage Servicing Rights (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1038 - Disclosure - Leases (Tables)",
     "role": "http://www.ubsi-inc.com/role/LeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1039 - Disclosure - Long-Term Borrowings (Tables)",
     "role": "http://www.ubsi-inc.com/role/LongTermBorrowingsTables",
     "shortName": "Long-Term Borrowings (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1004 - Statement - Consolidated Statements of Income",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
     "shortName": "Consolidated Statements of Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:InterestAndFeeIncomeLoansAndLeases",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1040 - Disclosure - Derivative Financial Instruments (Tables)",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsTables",
     "shortName": "Derivative Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1041 - Disclosure - Fair Value Measurements (Tables)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsTables",
     "shortName": "Fair Value Measurements (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1042 - Disclosure - Stock Based Compensation (Tables)",
     "role": "http://www.ubsi-inc.com/role/StockBasedCompensationTables",
     "shortName": "Stock Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1043 - Disclosure - Employee Benefit Plans (Tables)",
     "role": "http://www.ubsi-inc.com/role/EmployeeBenefitPlansTables",
     "shortName": "Employee Benefit Plans (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1044 - Disclosure - Comprehensive Income (Tables)",
     "role": "http://www.ubsi-inc.com/role/ComprehensiveIncomeTables",
     "shortName": "Comprehensive Income (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:ComprehensiveIncomeNoteTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComprehensiveIncomeLossTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1045 - Disclosure - Earnings Per Share (Tables)",
     "role": "http://www.ubsi-inc.com/role/EarningsPerShareTables",
     "shortName": "Earnings Per Share (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "us-gaap:EarningsPerShareTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:InformationRelatedToStatutoryTrustsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1046 - Disclosure - Variable Interest Entities (Tables)",
     "role": "http://www.ubsi-inc.com/role/VariableInterestEntitiesTables",
     "shortName": "Variable Interest Entities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:InformationRelatedToStatutoryTrustsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1047 - Disclosure - Segment Information (Tables)",
     "role": "http://www.ubsi-inc.com/role/SegmentInformationTables",
     "shortName": "Segment Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtSecuritiesHeldToMaturityTransferAmount",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1048 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail",
     "shortName": "Summary of Significant Accounting Policies - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn01_01_2020_CumulativeEffectPeriodOfAdoptionAdjustmentMembersrtCumulativeEffectPeriodOfAdoptionAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RetainedEarningsAccumulatedDeficit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "us-gaap:CommonStockParOrStatedValuePerShare",
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockParOrStatedValuePerShare",
      "reportCount": 1,
      "unitRef": "Unit_USD_per_Share",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1049 - Disclosure - Mergers and Acquisitions - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
     "shortName": "Mergers and Acquisitions - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P11_17_2019To11_17_2019_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "2",
      "lang": null,
      "name": "ubsi:StockBasedCompnesationArrangementByAwardVestingOptionToAcquireConversionOfCommonStockExchangeRatio",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_pure",
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1005 - Statement - Consolidated Statements of Comprehensive Income",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome",
     "shortName": "Consolidated Statements of Comprehensive Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1050 - Disclosure - Mergers and Acquisitions - Summary of Reconciliation of Difference Between Purchase Price and Par Value of Purchase Credit Loans Acquired (Detail)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail",
     "shortName": "Mergers and Acquisitions - Summary of Reconciliation of Difference Between Purchase Price and Par Value of Purchase Credit Loans Acquired (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P05_01_2020To05_01_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1051 - Disclosure - Mergers and Acquisitions - Summary of Business Acquisitions, by Acquisition (Detail)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
     "shortName": "Mergers and Acquisitions - Summary of Business Acquisitions, by Acquisition (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P05_01_2020To05_01_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "-3",
      "lang": null,
      "name": "ubsi:BusinessCombinationConsiderationTransferredFairValueOfStockOptionsAssumed",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:BusinessCombinationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P05_01_2020To05_01_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
      "reportCount": 1,
      "unitRef": "Unit_shares",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1052 - Disclosure - Mergers and Acquisitions - Summary of Business Acquisitions, by Acquisition (Parenthetical) (Detail)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail",
     "shortName": "Mergers and Acquisitions - Summary of Business Acquisitions, by Acquisition (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionsProFormaRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1053 - Disclosure - Mergers and Acquisitions - Summary Of Operating Cost Savings And Other Business Synergies (Detail)",
     "role": "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail",
     "shortName": "Mergers and Acquisitions - Summary Of Operating Cost Savings And Other Business Synergies (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:BusinessAcquisitionProFormaInformationTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:BusinessAcquisitionsProFormaRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesAmortizedCost",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1054 - Disclosure - Investment Securities - Summary of Amortized Cost and Estimated Fair Values of Available for Sale Securities (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
     "shortName": "Investment Securities - Summary of Amortized Cost and Estimated Fair Values of Available for Sale Securities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:AvailableForSaleSecuritiesTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1055 - Disclosure - Investment Securities - Summary of Securities Available for Sale in an Unrealized Loss Position (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail",
     "shortName": "Investment Securities - Summary of Securities Available for Sale in an Unrealized Loss Position (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:UnrealizedGainLossOnInvestmentsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:ProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1056 - Disclosure - Investment Securities - Summary of Gains or Losses on Proceeds from Maturities, Sales and Calls of Available for Sale Securities by Specific Identification Method (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfGainsOrLossesOnProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecuritiesBySpecificIdentificationMethodDetail",
     "shortName": "Investment Securities - Summary of Gains or Losses on Proceeds from Maturities, Sales and Calls of Available for Sale Securities by Specific Identification Method (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:ProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:AvailableForSaleSecuritiesTextBlock",
       "us-gaap:InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1057 - Disclosure - Investment Securities - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
     "shortName": "Investment Securities - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Securities",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1058 - Disclosure - Investment Securities - Summary of Maturities of Securities Available for Sale by Amortized Cost and Estimated Fair Value (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail",
     "shortName": "Investment Securities - Summary of Maturities of Securities Available for Sale by Amortized Cost and Estimated Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_EquitySecuritiesMemberusgaapFinancialInstrumentAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesGrossRealizedGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1059 - Disclosure - Investment Securities - Summary of Equity Securities (Detail)",
     "role": "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail",
     "shortName": "Investment Securities - Summary of Equity Securities (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_EquitySecuritiesMemberusgaapFinancialInstrumentAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesGrossRealizedGainLossNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2018",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1006 - Statement - Consolidated Statement of Changes in Shareholders' Equity",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
     "shortName": "Consolidated Statement of Changes in Shareholders' Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2019To03_31_2019_CommonStockMemberusgaapStatementEquityComponentsAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:NetIncomeLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:LoansAndFinanceReceivablesGross",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1060 - Disclosure - Loans - Major Classes of Loans And Leases (Detail)",
     "role": "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail",
     "shortName": "Loans - Major Classes of Loans And Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "lang": null,
      "name": "ubsi:LoansAndLeasesReceivableResidentialRealEstate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1061 - Disclosure - Loans - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
     "shortName": "Loans - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_CarolinaFinancialMemberusgaapBusinessAcquisitionAxis_OtherCommercialLoansMemberusgaapFinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:BusinessCombinationAcquiredDirectFinancingLeaseReceivable",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ubsi:CreditQualityTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:MinimumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1062 - Disclosure - Credit Quality - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
     "shortName": "Credit Quality - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ubsi:CreditQualityTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "ubsi:MinimumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "ubsi:TroubledDebtRestructuringsNumberOfContracts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Contract",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1063 - Disclosure - Credit Quality - Schedule of Troubled Debt Restructurings, Segregated by Class of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail",
     "shortName": "Credit Quality - Schedule of Troubled Debt Restructurings, Segregated by Class of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "ubsi:TroubledDebtRestructuringsNumberOfContracts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Contract",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:ScheduleOfTroubledDebtRestructuringsOnFinancingReceivablesChargeOffsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableModificationsNumberOfContracts2",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Contract",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1064 - Disclosure - Credit Quality - Schedule of Charged-off Troubled Debt Restructurings on Financing Receivables (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
     "shortName": "Credit Quality - Schedule of Charged-off Troubled Debt Restructurings on Financing Receivables (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:ScheduleOfTroubledDebtRestructuringsOnFinancingReceivablesChargeOffsTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableModificationsNumberOfContracts2",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_Contract",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivablesImpairedTroubledDebtRestructuringWriteDown",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1065 - Disclosure - Credit Quality - Schedule of Reasons For Modification Troubled Debt Restructuring Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
     "shortName": "Credit Quality - Schedule of Reasons For Modification Troubled Debt Restructuring Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:DisclosureDetailsOfReasonsForModificationTroubledDebtRestructuringLoansTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_ContractualInterestRateReductionMemberusgaapLoanRestructuringModificationAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivablesImpairedTroubledDebtRestructuringWriteDown",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:TroubledDebtRestructuringsPostModificationOutstandingRecordedInvestment",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1066 - Disclosure - Credit Quality - Schedule of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail",
     "shortName": "Credit Quality - Schedule of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_ContractualInterestRateReductionMemberusgaapLoanRestructuringModificationAxis",
      "decimals": "-3",
      "lang": null,
      "name": "ubsi:TroubledDebtRestructuringsPostModificationOutstandingRecordedInvestment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:FinancingReceivableRecordedInvestment30To89DaysPastDue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1067 - Disclosure - Credit Quality - Schedule of Age Analysis of its Past Due Loans, Segregated by Class of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
     "shortName": "Credit Quality - Schedule of Age Analysis of its Past Due Loans, Segregated by Class of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:PastDueFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:FinancingReceivableRecordedInvestment30To89DaysPastDue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesReceivableNet",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1068 - Disclosure - Credit Quality - Schedule of Age Analysis of its Past Due Loans, Segregated by Class of Loans (Parenthetical) (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
     "shortName": "Credit Quality - Schedule of Age Analysis of its Past Due Loans, Segregated by Class of Loans (Parenthetical) (Detail)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019_FinancialAssetAcquiredWithCreditDeteriorationMemberusgaapCreditLossStatusAxis_LoansAndDebtSecuritiesMemberusgaapFinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:NotesReceivableNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1069 - Disclosure - Credit Quality - Schedule of Nonaccrual Loans, Segregated by Class of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
     "shortName": "Credit Quality - Schedule of Nonaccrual Loans, Segregated by Class of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FinancingReceivableRecordedInvestmentNonaccrualStatus",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD_per_Share",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1007 - Statement - Consolidated Statement of Changes in Shareholders' Equity (Parenthetical)",
     "role": "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
     "shortName": "Consolidated Statement of Changes in Shareholders' Equity (Parenthetical)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_CommonStockMemberusgaapStatementEquityComponentsAxis",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD_per_Share",
      "xsiNil": "false"
     }
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:CollateralDependentLoansTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:CollateralDependentLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1070 - Disclosure - Credit Quality - Schedule of Amortized Cost Loans Pledged As Collateral (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
     "shortName": "Credit Quality - Schedule of Amortized Cost Loans Pledged As Collateral (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:CollateralDependentLoansTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:CollateralDependentLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
       "us-gaap:LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:LoansAndFinanceReceivablesGross",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1071 - Disclosure - Credit Quality - Schedule of Risk Category of Loans by Class of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
     "shortName": "Credit Quality - Schedule of Risk Category of Loans by Class of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:ScheduleoftermloansandfinancingreceivableTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_OwnerOccupiedCommercialRealEstateMemberusgaapFinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
      "decimals": "-3",
      "lang": null,
      "name": "ubsi:TermLoansOriginationYearOne",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NotesReceivableNet",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1072 - Disclosure - Credit Quality - Schedule of Credit Quality Indicators Information, by Class of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
     "shortName": "Credit Quality - Schedule of Credit Quality Indicators Information, by Class of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019_OtherConsumerMemberusgaapFinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:NotesReceivableNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:ReserveForLendingRelatedCommitments",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1073 - Disclosure - Allowance for Credit Losses - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
     "shortName": "Allowance for Credit Losses - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "lang": "en-US",
      "name": "ubsi:MaximumPeriodrelatedToAccrualOfInterestOnLoans",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:AllowanceForCreditLossesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:AccruedInterestReceivableLoans",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1074 - Disclosure - Allowance for Credit Losses - Schedule Of Credit Losses Related To Accrued Interest Receivables and Written Off  (Detail)",
     "role": "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
     "shortName": "Allowance for Credit Losses - Schedule Of Credit Losses Related To Accrued Interest Receivables and Written Off  (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:ScheduleRelatedToAccruedInterestReceivablesAndWrittenOffTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "0",
      "lang": null,
      "name": "ubsi:InterestReceivableWrittenOff",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn03_31_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1075 - Disclosure - Allowance for Credit Losses - Schedule of Allowance for Loan Losses and Carrying Amount of Loans (Detail)",
     "role": "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
     "shortName": "Allowance for Credit Losses - Schedule of Allowance for Loan Losses and Carrying Amount of Loans (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn03_31_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansAndLeasesReceivableAllowance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1076 - Disclosure - Intangible Assets - Summary of Intangible Assets (Detail)",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
     "shortName": "Intangible Assets - Summary of Intangible Assets (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
       "us-gaap:GoodwillAndIntangibleAssetsDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsGross",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:Goodwill",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1077 - Disclosure - Intangible Assets - Reconciliation of Goodwill (Detail)",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
     "shortName": "Intangible Assets - Reconciliation of Goodwill (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfGoodwillTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020_CommunityBankingMemberusgaapStatementBusinessSegmentsAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:GoodwillAcquiredDuringPeriod",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:AmortizationExpenseOnIntangibleAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1078 - Disclosure - Intangible Assets - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail",
     "shortName": "Intangible Assets - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:AmortizationExpenseOnIntangibleAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1079 - Disclosure - Intangible Assets - Schedule of Anticipated Amortization Expense (Detail)",
     "role": "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail",
     "shortName": "Intangible Assets - Schedule of Anticipated Amortization Expense (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "1008 - Statement - Condensed Consolidated Statements of Cash Flows",
     "role": "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows",
     "shortName": "Condensed Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P05_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ValuationAllowanceForImpairmentOfRecognizedServicingAssetsPeriodIncreaseDecrease",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1080 - Disclosure - Mortage Servicing Rights - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
     "shortName": "Mortage Servicing Rights - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "ubsi:ServicingAssetAcquisitionFromSubsidary",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1081 - Disclosure - Mortage Servicing Rights - Summary of Activity in Mortgage Servicing Rights (Detail)",
     "role": "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail",
     "shortName": "Mortage Servicing Rights - Summary of Activity in Mortgage Servicing Rights (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn03_31_2020",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1082 - Disclosure - Leases - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
     "shortName": "Leases - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:LesseeOperatingLeasesTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LesseeOperatingLeaseRenewalTerm",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1083 - Disclosure - Leases - Components of Lease Expense (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail",
     "shortName": "Leases - Components of Lease Expense (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseCost",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeaseRightOfUseAsset",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1084 - Disclosure - Leases - Supplemental Balance Sheet Information Related to Leases (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail",
     "shortName": "Leases - Supplemental Balance Sheet Information Related to Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": null
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:OperatingLeaseTermAndDiscountRateTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1085 - Disclosure - Leases - Other Information Related to Leases (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail",
     "shortName": "Leases - Other Information Related to Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:OperatingLeaseTermAndDiscountRateTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:OperatingLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:OperatingLeasesCashFlowInformationTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1086 - Disclosure - Leases - Supplemental Cash Flow Information Related to Leases (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail",
     "shortName": "Leases - Supplemental Cash Flow Information Related to Leases (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ubsi:OperatingLeasesCashFlowInformationTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasePayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasesFutureMinimumPaymentsDueCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1087 - Disclosure - Leases - Maturities of Lease Liabilities by Year (Detail)",
     "role": "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail",
     "shortName": "Leases - Maturities of Lease Liabilities by Year (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OperatingLeasesFutureMinimumPaymentsDueCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1088 - Disclosure - Short-Term Borrowings - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail",
     "shortName": "Short-Term Borrowings - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCreditFacilityMaximumBorrowingCapacity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1089 - Disclosure - Long-Term Borrowings - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
     "shortName": "Long-Term Borrowings - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1009 - Disclosure - Summary of Significant Accounting Policies",
     "role": "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P01_01_2020To06_30_2020",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1090 - Disclosure - Long -Term Borrowings - Schedule of Maturities of Long-term Borrowings (Detail)",
     "role": "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail",
     "shortName": "Long -Term Borrowings - Schedule of Maturities of Long-term Borrowings (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ubsi:LoanCommitmentsOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1091 - Disclosure - Commitments and Contingent Liabilities - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
     "shortName": "Commitments and Contingent Liabilities - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "us-gaap:CommitmentsAndContingenciesDisclosureTextBlock",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "ubsi:LoanCommitmentsOutstanding",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityNotionalAmount",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1092 - Disclosure - Derivative Financial Instruments - Additional information (Detail)",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
     "shortName": "Derivative Financial Instruments - Additional information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "div",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_FederalHomeLoanBankBorrowingsMemberusgaapFairValueByLiabilityClassAxis_InterestRateCashFlowHedgeMemberusgaapDerivativeInstrumentRiskAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeAssetNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1093 - Disclosure - Derivative Financial Instruments - Schedule of Notional Amount and Fair Value Derivative Financial Instruments (Detail)",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
     "shortName": "Derivative Financial Instruments - Schedule of Notional Amount and Fair Value Derivative Financial Instruments (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeAssetNotionalAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_DesignatedAsHedgingInstrumentMemberusgaapHedgingDesignationAxis_InterestRateSwapMemberusgaapDerivativeInstrumentRiskAxis_LoansNetOfUnearnedIncomeMemberusgaapBalanceSheetLocationAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1094 - Disclosure - Derivative Financial Instruments - Summary of Carrying Amount Hedged Assets/(Liabilities) (Detail)",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
     "shortName": "Derivative Financial Instruments - Summary of Carrying Amount Hedged Assets/(Liabilities) (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_DesignatedAsHedgingInstrumentMemberusgaapHedgingDesignationAxis_InterestRateSwapMemberusgaapDerivativeInstrumentRiskAxis_LoansNetOfUnearnedIncomeMemberusgaapBalanceSheetLocationAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:HedgedAssetFairValueHedge",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1095 - Disclosure - Derivative Financial Instruments - Schedule of Derivative Financial Instruments on Statements of Income (Detail)",
     "role": "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
     "shortName": "Derivative Financial Instruments - Schedule of Derivative Financial Instruments on Statements of Income (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
       "ix:continuation",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeGainLossOnDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "ubsi:FairValueLiabilitiesLevelOneToLevelThreeTransfersAmount",
       "ubsi:FairValueAssetsLevelOneToLevelThreeTransfersAmount",
       "ubsi:FairValueLiabilitiesLevelOneToLevelThreeTransfersAmount",
       "div",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "ubsi:FairValueAssetsLevelOneToLevelThreeTransfersAmount",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1096 - Disclosure - Fair Value Measurements - Additional Information (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
     "shortName": "Fair Value Measurements - Additional Information (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "ubsi:FairValueLiabilitiesLevelOneToLevelThreeTransfersAmount",
       "div",
       "div",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019",
      "decimals": "INF",
      "lang": null,
      "name": "ubsi:FairValueAssetsLevelOneToLevelThreeTransfersAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1097 - Disclosure - Fair Value Measurements - Schedule of Financial Assets and Liabilities Measured at Fair Value (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
     "shortName": "Fair Value Measurements - Schedule of Financial Assets and Liabilities Measured at Fair Value (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn06_30_2020_FairValueMeasurementsRecurringMemberusgaapFairValueByMeasurementFrequencyAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AvailableForSaleSecuritiesDebtSecurities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2019_CollateralizedDebtObligationsMemberusgaapFinancialInstrumentAxis_FairValueMeasurementsRecurringMemberusgaapFairValueByMeasurementFrequencyAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1098 - Disclosure - Fair Value Measurements - Schedule of Additional Information about Financial Assets and Liabilities Measured at Fair Value Utilized Level 3 (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
     "shortName": "Fair Value Measurements - Schedule of Additional Information about Financial Assets and Liabilities Measured at Fair Value Utilized Level 3 (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "PAsOn12_31_2018_CollateralizedDebtObligationsMemberusgaapFinancialInstrumentAxis_FairValueMeasurementsRecurringMemberusgaapFairValueByMeasurementFrequencyAxis",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueOptionTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_MortgageBankingMemberusgaapStatementBusinessSegmentsAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "1099 - Disclosure - Fair Value Measurements - Schedule of Changes in Fair Value Included in Earnings of Financial Instruments for which Fair Value Option has been Elected (Detail)",
     "role": "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
     "shortName": "Fair Value Measurements - Schedule of Changes in Fair Value Included in Earnings of Financial Instruments for which Fair Value Option has been Elected (Detail)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueOptionTextBlock",
       "ix:continuation",
       "div",
       "body",
       "html"
      ],
      "baseRef": "d90553d10q.htm",
      "contextRef": "P04_01_2020To06_30_2020_MortgageBankingMemberusgaapStatementBusinessSegmentsAxis",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueOptionChangesInFairValueGainLoss1",
      "reportCount": 1,
      "unique": true,
      "unitRef": "Unit_USD",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 172,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CoverAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cover page.",
        "label": "Cover [Abstract]"
       }
      }
     },
     "localname": "CoverAbstract",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "xbrltype": "stringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in CCYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The end date of the period reflected on the cover page if a periodic report. For all other reports and registration statements containing historical data, it is the date up through which that historical data is presented.  If there is no historical data in the report, use the filing date. The format of the date is CCYY-MM-DD.",
        "label": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentQuarterlyReport": {
     "auth_ref": [
      "r810"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an quarterly report.",
        "label": "Document Quarterly Report"
       }
      }
     },
     "localname": "DocumentQuarterlyReport",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r811"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address, Address Line One"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressAddressLine2": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Address Line 2 such as Street or Suite number",
        "label": "Entity Address, Address Line Two"
       }
      }
     },
     "localname": "EntityAddressAddressLine2",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address, City or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address, Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address, State or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock, Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation, State or Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r813"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r812"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r808"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Title of 12(b) Security"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r809"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2019-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CoverPage"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r518",
      "r519",
      "r522",
      "r523",
      "r807"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Consolidated Entities [Axis]",
        "terseLabel": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r518",
      "r519",
      "r522",
      "r523"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Consolidated Entities [Domain]",
        "terseLabel": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationEliminationsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Consolidation, Eliminations [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "localname": "ConsolidationEliminationsMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationItemsAxis": {
     "auth_ref": [
      "r151",
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r171",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Consolidation Items [Axis]",
        "terseLabel": "Consolidation Items [Axis]"
       }
      }
     },
     "localname": "ConsolidationItemsAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidationItemsDomain": {
     "auth_ref": [
      "r151",
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r171",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Consolidation Items [Domain]",
        "terseLabel": "Consolidation Items [Domain]"
       }
      }
     },
     "localname": "ConsolidationItemsDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "auth_ref": [
      "r110",
      "r118",
      "r248",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption, Adjustment [Member]",
        "terseLabel": "Cumulative Effect, Period of Adoption, Adjustment [Member]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "auth_ref": [
      "r110",
      "r118",
      "r248",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Axis]",
        "terseLabel": "Cumulative Effect, Period of Adoption [Axis]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "auth_ref": [
      "r110",
      "r118",
      "r248",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Cumulative Effect, Period of Adoption [Domain]",
        "terseLabel": "Cumulative Effect, Period of Adoption [Domain]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r428",
      "r438",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r671",
      "r766",
      "r768"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Maximum [Member]",
        "terseLabel": "Maximum [Member]"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MedianMember": {
     "auth_ref": [
      "r574"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Median [Member]"
       }
      }
     },
     "localname": "MedianMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r428",
      "r438",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r671",
      "r766",
      "r768"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Minimum [Member]",
        "terseLabel": "Minimum [Member]"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r177",
      "r337",
      "r338",
      "r672",
      "r765",
      "r767"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Product and Service [Axis]",
        "terseLabel": "Product and Service [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r177",
      "r337",
      "r338",
      "r672",
      "r765",
      "r767"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Product and Service [Domain]",
        "terseLabel": "Product and Service [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r365",
      "r428",
      "r438",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r671",
      "r766",
      "r768"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Range [Axis]",
        "terseLabel": "Range [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r365",
      "r428",
      "r438",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r671",
      "r766",
      "r768"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Range [Domain]",
        "terseLabel": "Range [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [
      "r106",
      "r107",
      "r108",
      "r109",
      "r111",
      "r112",
      "r116",
      "r117",
      "r118",
      "r120",
      "r121",
      "r122",
      "r123",
      "r124",
      "r139",
      "r249",
      "r250",
      "r475",
      "r490",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revision of Prior Period [Axis]",
        "terseLabel": "Revision of Prior Period [Axis]"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [
      "r106",
      "r107",
      "r108",
      "r109",
      "r111",
      "r112",
      "r116",
      "r117",
      "r118",
      "r120",
      "r121",
      "r122",
      "r123",
      "r124",
      "r139",
      "r249",
      "r250",
      "r475",
      "r490",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revision of Prior Period [Domain]",
        "terseLabel": "Revision of Prior Period [Domain]"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RevisionOfPriorPeriodReclassificationAdjustmentMember": {
     "auth_ref": [
      "r0"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Revision of Prior Period, Reclassification, Adjustment [Member]",
        "terseLabel": "Revision of Prior Period, Reclassification, Adjustment [Member]"
       }
      }
     },
     "localname": "RevisionOfPriorPeriodReclassificationAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [
      "r640",
      "r642",
      "r646"
     ],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weighted Average [Member]",
        "terseLabel": "Weighted Average [Member]"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AaaMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "AAA [Member]"
       }
      }
     },
     "localname": "AaaMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AccountingStandardsUpdate201810Member": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accounting Standards Update 2018-10 [Member].",
        "label": "Accounting Standards Update 2018-10 [Member]",
        "terseLabel": "Accounting Standards Update 2018-10 [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201810Member",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AccruedInterestReceivableLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received on loans. Also called accrued interest or accrued interest receivable on loans.",
        "label": "Accrued Interest Receivable Loans",
        "terseLabel": "Accrued interest receivable",
        "verboseLabel": "Accrued Interest Receivable"
       }
      }
     },
     "localname": "AccruedInterestReceivableLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_AccruedInterestReceivablesAndWrittenOffStatusLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accrued Interest Receivables and Written off Status [Line Items]"
       }
      }
     },
     "localname": "AccruedInterestReceivablesAndWrittenOffStatusLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_AccruedInterestReceivablesAndWrittenOffTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accrued Interest Receivables and Written Off [Table]",
        "terseLabel": "Accrued Interest Receivables and Written Off [Table]"
       }
      }
     },
     "localname": "AccruedInterestReceivablesAndWrittenOffTable",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_AdvancesFromFederalHomeLoanBanksMaximumMaturityPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum remaining maturity period for advances from Federal Home Loan Banks as of the balance sheet date.",
        "label": "Advances From Federal Home Loan Banks Maximum Maturity Period",
        "presentationGuidance": "Advances From Federal Home Loan Banks Maximum Maturity Period"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanksMaximumMaturityPeriod",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_AgencyMortgageBackedSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Agency Mortgage Backed Securities [Member]",
        "label": "Agency Mortgage Backed Securities [Member]",
        "terseLabel": "Agency Mortgage Backed Securities [Member]"
       }
      }
     },
     "localname": "AgencyMortgageBackedSecuritiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AgesFortyToFiftyFourMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Ages Forty To Fifty four [Member]",
        "terseLabel": "Ages 40 to 54 [Member]"
       }
      }
     },
     "localname": "AgesFortyToFiftyFourMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AllowanceForEstimatedImprecisionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Allowance for estimated imprecision.",
        "label": "Allowance For Estimated Imprecision [Member]",
        "terseLabel": "Allowance for Estimated Imprecision [Member]"
       }
      }
     },
     "localname": "AllowanceForEstimatedImprecisionMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AmortizationExpenseOnIntangibleAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortization Expense On Intangible Assets.",
        "label": "Amortization Expense On Intangible Assets"
       }
      }
     },
     "localname": "AmortizationExpenseOnIntangibleAssets",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_AmortizedCostCollateralDependentLoansLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Amortized cost collateral dependent loans [Line Items]"
       }
      }
     },
     "localname": "AmortizedCostCollateralDependentLoansLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_AmortizedCostOfAvailableForSaleSingleIssueTrustPreferredSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the cost of single issue trust preferred securities categorized as available-for-sale, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.",
        "label": "Amortized Cost Of Available For Sale Single Issue Trust Preferred Securities",
        "terseLabel": "Amortized cost of available for sale single issue trust preferred securities"
       }
      }
     },
     "localname": "AmortizedCostOfAvailableForSaleSingleIssueTrustPreferredSecurities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_AmountIncludedInTheAllowancesForCreditLossesAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Amount Included In The Allowances For Credit Losses [Axis]"
       }
      }
     },
     "localname": "AmountIncludedInTheAllowancesForCreditLossesAxis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_AmountIncludedInTheAllowancesForCreditLossesaxisDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Amount Included In The Allowances For Credit Losses Axis [Domain]"
       }
      }
     },
     "localname": "AmountIncludedInTheAllowancesForCreditLossesaxisDomain",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_AvailableForSaleSecuritiesNumber": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of available for sale securities in the investment portfolio.",
        "label": "Available For Sale Securities Number",
        "terseLabel": "Available for sale securities in portfolio, number"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesNumber",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "ubsi_AverageAssetsLiabilities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Average amount of net assets (liabilities).",
        "label": "Average Assets Liabilities",
        "terseLabel": "Average assets (liabilities)"
       }
      }
     },
     "localname": "AverageAssetsLiabilities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BankcardMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Bankcard [Member]",
        "terseLabel": "Bankcard [Member]"
       }
      }
     },
     "localname": "BankcardMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_BankcardProcessingExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 27.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amounts expended for the issuance of and payment processing for bankcards.",
        "label": "Bankcard Processing Expense",
        "terseLabel": "Bankcard processing expense"
       }
      }
     },
     "localname": "BankcardProcessingExpense",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessAcquisitionProformaInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Acquisition ProForma Information [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionProformaInformationLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_BusinessAcquisitionProformaInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Acquisition ProForma Information [Table]"
       }
      }
     },
     "localname": "BusinessAcquisitionProformaInformationTable",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_BusinessAssetsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Business Assets [Member]",
        "label": "Business Assets Member [Member]",
        "terseLabel": "Business Assets Member [Member]"
       }
      }
     },
     "localname": "BusinessAssetsmemberMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_BusinessCombinationConsiderationTransferredFairValueOfStockOptionsAssumed": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of stock options issued by the acquirer in consideration for the business combination.",
        "label": "Business Combination Consideration Transferred Fair Value Of Stock Options Assumed",
        "terseLabel": "Fair value of stock options assumed"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredFairValueOfStockOptionsAssumed",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationDebtDiscountRemainingAmortisationPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The remaining term in which the discount paid on acquired subordinated debt will be amortized into expense.",
        "label": "Business Combination Debt Discount Remaining Amortisation Period",
        "terseLabel": "Business combination unamortized discount on debt useful life"
       }
      }
     },
     "localname": "BusinessCombinationDebtDiscountRemainingAmortisationPeriod",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_BusinessCombinationInterestBearingDepositsAcquiredRemainingTermOnThePremiumPiad": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The remaining term in which the premium paid on acquired interest bearing deposits will be accreted into income.",
        "label": "Business Combination Interest Bearing Deposits Acquired Remaining Term On The Premium Piad",
        "verboseLabel": "Business combination interest bearing deposits acquired remaining term on the premium paid"
       }
      }
     },
     "localname": "BusinessCombinationInterestBearingDepositsAcquiredRemainingTermOnThePremiumPiad",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_BusinessCombinationRecognisedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 18.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of other assets recognized at the acquisition date.",
        "label": "Business Combination Recognised Identifiable Assets Acquired And Liabilities Assumed Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognisedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDepositLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 9.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of deposit liabilities including interest-bearing and noninterest-bearing assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Deposit Liabilities",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedDepositLiabilities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 13.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of loans held for sale recognized as of the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Loans Held For Sale",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLoansHeldForSale",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 17.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of mortgage servicing assets recognized as of the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Mortgage Servicing Rights",
        "terseLabel": "Mortgage servicing rights"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedMortgageServicingRights",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The operating lease liability assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Operating Lease Liabilities",
        "terseLabel": "Operating lease liability"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseLiabilities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 16.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The operating lease right of use asset recognized as of the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Operating Lease Right Of Use Assets",
        "terseLabel": "Operating lease right-of-use asset"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOperatingLeaseRightOfUseAssets",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 8.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of other liabilities assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Liabilities",
        "terseLabel": "Other liabilities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLoans": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 14.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of loans excluding those held for sale recognized as of the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Other Loans",
        "terseLabel": "Net Loans"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedShortTermDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of short-term debt due within one year or within the normal operating cycle, if longer, assumed at the acquisition date.",
        "label": "Business Combination Recognized Identifiable Assets Acquired And Liabilities Assumed Short Term Debt",
        "terseLabel": "Short-term borrowings"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedShortTermDebt",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_BusinessCombinationTrustPreferredSecuritiesRemainingAmortisationPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Business Combination Trust Preferred Securities Remaining Amortisation Period.",
        "label": "Business Combination Trust Preferred Securities Remaining Amortisation Period",
        "terseLabel": "Business combination unamortized discount on trust preferred securities"
       }
      }
     },
     "localname": "BusinessCombinationTrustPreferredSecuritiesRemainingAmortisationPeriod",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_CapitalizationOfBanksEqualToOrGreaterThanInSingleIssueTrustPreferredPortfolio": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the minimum amount of market capitalization for banks with obligations in the single-issue trust preferred portfolio.",
        "label": "Capitalization Of Banks Equal To Or Greater Than In Single Issue Trust Preferred Portfolio",
        "terseLabel": "Capitalization of banks, equal to or greater than, in the single-issue trust preferred portfolio"
       }
      }
     },
     "localname": "CapitalizationOfBanksEqualToOrGreaterThanInSingleIssueTrustPreferredPortfolio",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_CardinalStatutoryTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cardinal statutory trust I.",
        "label": "Cardinal Statutory Trust I [Member]"
       }
      }
     },
     "localname": "CardinalStatutoryTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CarolinaFinancialCapitalTrustIIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carolina financial capital trust II member.",
        "label": "Carolina Financial Capital Trust II [Member]",
        "terseLabel": "Carolina Financial Capital Trust II [Member]"
       }
      }
     },
     "localname": "CarolinaFinancialCapitalTrustIIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CarolinaFinancialCapitalTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carolina financial capital trust I member.",
        "label": "Carolina Financial Capital Trust I [Member]",
        "terseLabel": "Carolina Financial Capital Trust I [Member]"
       }
      }
     },
     "localname": "CarolinaFinancialCapitalTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CarolinaFinancialMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Carolina Financial [Member]",
        "terseLabel": "Carolina Financial [Member]"
       }
      }
     },
     "localname": "CarolinaFinancialMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CashPaidForAmountsInTheMeasurementOfLeaseLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Cash paid for amounts in the measurement of lease liabilities [Abstract]"
       }
      }
     },
     "localname": "CashPaidForAmountsInTheMeasurementOfLeaseLiabilitiesAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_CentraStatutoryTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Centra statutory trust I.",
        "label": "Centra Statutory Trust I [Member]"
       }
      }
     },
     "localname": "CentraStatutoryTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CentraStatutoryTrustIiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Centra statutory trust II.",
        "label": "Centra Statutory Trust II [Member]",
        "verboseLabel": "Centra Statutory Trust II [Member]"
       }
      }
     },
     "localname": "CentraStatutoryTrustIiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ChangeInTermsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Change In Terms.",
        "label": "Change in terms [Member]"
       }
      }
     },
     "localname": "ChangeInTermsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CollateralDependentLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amortized cost of financing receivables in which repayment is expected to be derived substantially through the operation or sale of the collateral and where the borrower is experiencing financial difficulty.",
        "label": "Collateral Dependent Loans",
        "terseLabel": "Amortized Cost Loans Pledged As Collateral"
       }
      }
     },
     "localname": "CollateralDependentLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_CollateralDependentLoansTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of financing receivables that are collateral dependent.",
        "label": "Collateral Dependent Loans [Table Text Block]",
        "terseLabel": "Schedule of Collateral Dependent Loans"
       }
      }
     },
     "localname": "CollateralDependentLoansTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_CommercialFinancialAndAgriculturalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Commercial Financial And Agricultural [Abstract]",
        "terseLabel": "Commercial, financial, and agricultural"
       }
      }
     },
     "localname": "CommercialFinancialAndAgriculturalAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_CommercialLettersOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commercial letters of credit.",
        "label": "Commercial Letters Of Credit [Member]",
        "terseLabel": "Commercial Letters of Credit [Member]"
       }
      }
     },
     "localname": "CommercialLettersOfCreditMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CommunityBankingMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Community banking.",
        "label": "Community Banking [Member]",
        "terseLabel": "Community Banking [Member]"
       }
      }
     },
     "localname": "CommunityBankingMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ConcessionOfPrincipalAndTermMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Concession Of Principal And Term.",
        "label": "Concession of principal and term [Member]"
       }
      }
     },
     "localname": "ConcessionOfPrincipalAndTermMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ConsumerCreditExposuresPeriodPastDueRequiredToClassifyLoansAsSpecialMentionMaximum": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For consumer credit exposures, maximum number of days past due required for special mention rating.",
        "label": "Consumer Credit Exposures, Period Past Due Required To Classify Loans As Special Mention, Maximum",
        "terseLabel": "Maximum number of days required for special mention"
       }
      }
     },
     "localname": "ConsumerCreditExposuresPeriodPastDueRequiredToClassifyLoansAsSpecialMentionMaximum",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationStringItemType"
    },
    "ubsi_ConsumerCreditExposuresPeriodPastDueRequiredToClassifyLoansAsSpecialMentionMinimum": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For consumer credit exposures, minimum number of days past due required for special mention rating.",
        "label": "Consumer Credit Exposures, Period Past Due Required To Classify Loans As Special Mention, Minimum",
        "terseLabel": "Minimum number of days required for special mention"
       }
      }
     },
     "localname": "ConsumerCreditExposuresPeriodPastDueRequiredToClassifyLoansAsSpecialMentionMinimum",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationStringItemType"
    },
    "ubsi_CreditQualityTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This disclosure presents quantitative and qualitative information about the credit quality of a portfolio of financing receivables, by class, including an analysis of the age of financing receivables that are past due, on nonaccrual status, are collateral dependent and modified as of the end of the reporting period.",
        "label": "Credit Quality [Text Block]",
        "terseLabel": "Credit Quality"
       }
      }
     },
     "localname": "CreditQualityTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQuality"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_CrescentMortgageTradeNameMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Crescent Mortgage trade name intangible.",
        "label": "Crescent Mortgage Trade Name [Member]",
        "verboseLabel": "Crescent Mortgage Trade Name [Member]"
       }
      }
     },
     "localname": "CrescentMortgageTradeNameMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_CumulativeEffectOnRetainedEarningsTax": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cumulative effect on retained earnings, net of taxes.",
        "label": "Cumulative Effect On Retained Earnings Tax",
        "terseLabel": "Effect on retained earnings"
       }
      }
     },
     "localname": "CumulativeEffectOnRetainedEarningsTax",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_DefinedBenefitPlanFutureAmortizationOfGainLossNetOfTax": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount included, net of tax, in accumulated other comprehensive income (AOCI) related to gain (loss) expected to be recognized as components of net periodic benefit cost for the fiscal year that follows the most recent annual statement of financial position.",
        "label": "Defined Benefit Plan Future Amortization Of Gain Loss Net Of Tax",
        "terseLabel": "Amortization expected to be recognized, net of tax"
       }
      }
     },
     "localname": "DefinedBenefitPlanFutureAmortizationOfGainLossNetOfTax",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_DerivativeInstrumentTerm": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The initial period of time that a derivative will be outstanding.",
        "label": "Derivative Instrument Term",
        "terseLabel": "Derivative instrument term of the interest rate swap"
       }
      }
     },
     "localname": "DerivativeInstrumentTerm",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_DerivativesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivatives [Member]",
        "label": "Derivatives [Member]",
        "terseLabel": "Derivatives [Member]"
       }
      }
     },
     "localname": "DerivativesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_DirectorsAndOfficersMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Directors And Officers [Member]",
        "label": "Directors And Officers [Member]",
        "terseLabel": "Directors and Officers [Member]"
       }
      }
     },
     "localname": "DirectorsAndOfficersMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure detail for the reconciliation of the difference between the purchase price and par value of acquired loans with credit deterioration.",
        "label": "Disclosure Detail Of Reconciliation Of Difference Between Purchase Price And Par Value Of Purchase Credit Loans Acquired [Line Items]",
        "terseLabel": "Disclosure Detail of Reconciliation of Difference Between Purchase Price and Par Value of Purchase Credit Loans Acquired [Line Items]"
       }
      }
     },
     "localname": "DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Detail Of Reconciliation Of Difference Between Purchase Price And Par Value Of Purchase Credit Loans Acquired.",
        "label": "Disclosure Detail Of Reconciliation Of Difference Between Purchase Price And Par Value Of Purchase Credit Loans Acquired [Table]",
        "terseLabel": "Disclosure Detail of Reconciliation of Difference Between Purchase Price and Par Value of Purchase Credit Loans Acquired [Table]"
       }
      }
     },
     "localname": "DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTable",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure detail for the reconciliation of the difference between the purchase price and par value of acquired loans with credit deterioration.",
        "label": "Disclosure Detail Of Reconciliation Of Difference Between Purchase Price And Par Value Of Purchase Credit Loans Acquired [Table Text Block]",
        "terseLabel": "Summary of Reconciliation of Difference Between Purchase Price and Par Value of Purchase Credit Loans Acquired"
       }
      }
     },
     "localname": "DisclosureDetailOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_DisclosureDetailsOfReasonsForModificationTroubledDebtRestructuringLoansTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Details Of Reasons For Modification Troubled Debt Restructuring Loans [Text Block].",
        "label": "Disclosure Details Of Reasons For Modification Troubled Debt Restructuring Loans [Table Text Block]",
        "terseLabel": "Schedule of Reasons For Modification Troubled Debt Restructuring Loans"
       }
      }
     },
     "localname": "DisclosureDetailsOfReasonsForModificationTroubledDebtRestructuringLoansTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_DisclosureDetailsOfReasonsForModificationTroubledDebtRestrusturingLoansLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Details Of Reasons For Modification Troubled Debt Restrusturing Loans [Line Items].",
        "label": "Disclosure Details Of Reasons For Modification Troubled Debt Restrusturing Loans [Line Items]"
       }
      }
     },
     "localname": "DisclosureDetailsOfReasonsForModificationTroubledDebtRestrusturingLoansLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance [Line Items].",
        "label": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance [Line Items]"
       }
      }
     },
     "localname": "DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance [Table].",
        "label": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance [Table]"
       }
      }
     },
     "localname": "DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceTable",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance.",
        "label": "Disclosure Details Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance [Table Text Block]",
        "terseLabel": "Schedule Of Troubled Debt Restructuring Loan Modification Based On Post Modification Outstanding Balance"
       }
      }
     },
     "localname": "DisclosureDetailsOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_DisclosureStockBasedCompensationStockOptionPlanAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure Stock Based Compensation Stock Option Plan [Abstract]",
        "label": "Disclosure Stock Based Compensation Stock Option Plan [Abstract]"
       }
      }
     },
     "localname": "DisclosureStockBasedCompensationStockOptionPlanAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "xbrltype": "stringItemType"
    },
    "ubsi_DistributedEarningsAllocatedToCommonStock": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Dividends paid on common shares and vested participating securities.",
        "label": "Distributed Earnings Allocated To Common Stock",
        "terseLabel": "Distributed earnings allocated to common stock"
       }
      }
     },
     "localname": "DistributedEarningsAllocatedToCommonStock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_EquitySecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 29.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in equity securities at estimated fair value.",
        "label": "Equity Securities",
        "verboseLabel": "Equity securities at estimated fair value"
       }
      }
     },
     "localname": "EquitySecurities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_EquitySecuritiesCommonStockOtherMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity securities common stock other.",
        "label": "Equity Securities Common Stock Other [Member]",
        "terseLabel": "Other Equity Securities [Member]"
       }
      }
     },
     "localname": "EquitySecuritiesCommonStockOtherMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_FairValueAssetsLevelOneToLevelThreeTransfersAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial assets using Level 1 fair value measurement techniques to financial assets using Level 3 fair value measurement techniques.",
        "label": "Fair Value Assets Level One To Level Three Transfers Amount",
        "terseLabel": "Transfers from Level 1 to Level 3 for financial assets"
       }
      }
     },
     "localname": "FairValueAssetsLevelOneToLevelThreeTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueAssetsLevelThreeToLevelOneTransfersAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial assets using Level 3 fair value measurement techniques to financial assets using Level 1 fair value measurement techniques.",
        "label": "Fair Value Assets Level Three To Level One Transfers Amount",
        "terseLabel": "Transfers from Level 3 to Level 1 for financial assets"
       }
      }
     },
     "localname": "FairValueAssetsLevelThreeToLevelOneTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueAssetsLevelThreeToLevelTwoTransfersAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial assets using Level 3 fair value measurement techniques to financial assets using Level 2 fair value measurement techniques.",
        "label": "Fair Value Assets Level Three To Level Two Transfers Amount",
        "terseLabel": "Transfers from Level 3 to Level 2 for financial assets"
       }
      }
     },
     "localname": "FairValueAssetsLevelThreeToLevelTwoTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueAssetsLevelTwoToLevelThreeTransfersAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial assets using Level 2 fair value measurement techniques to financial assets using Level 3 fair value measurement techniques.",
        "label": "Fair Value Assets Level Two To Level Three Transfers Amount",
        "terseLabel": "Transfers from Level 2 to Level 3 for financial assets"
       }
      }
     },
     "localname": "FairValueAssetsLevelTwoToLevelThreeTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueLiabilitiesLevelOneToLevelThreeTransfersAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial liabilities using Level 1 fair value measurement techniques to financial assets using Level 3 fair value measurement techniques.",
        "label": "Fair Value Liabilities Level One To Level Three Transfers Amount",
        "terseLabel": "Transfers from Level 1 to Level 3 for financial liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevelOneToLevelThreeTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueLiabilitiesLevelThreeToLevelOneTransfersAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial liabilities using Level 3 fair value measurement techniques to financial liabilities using Level 1 fair value measurement techniques.",
        "label": "Fair Value Liabilities Level Three to Level One Transfers Amount",
        "terseLabel": "Transfers from Level 3 to Level 1 for financial liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevelThreeToLevelOneTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueLiabilitiesLevelThreeToLevelTwoTransfersAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial liabilities using Level 3 fair value measurement techniques to financial liabilities using Level 2 fair value measurement techniques.",
        "label": "Fair Value Liabilities Level Three to Level Two Transfers Amount",
        "terseLabel": "Transfers from Level 3 to Level 2 for financial liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevelThreeToLevelTwoTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FairValueLiabilitiesLevelTwoToLevelThreeTransfersAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The transfer of financial liabilities using Level 2 fair value measurement techniques to financial liabilities using Level 3 fair value measurement techniques.",
        "label": "Fair Value Liabilities Level Two to Level Three Transfers Amount",
        "terseLabel": "Transfers from Level 2 to Level 3 for financial liabilities"
       }
      }
     },
     "localname": "FairValueLiabilitiesLevelTwoToLevelThreeTransfersAmount",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FinancialServicesIndustryMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial services industry.",
        "label": "Financial Services Industry [Member]",
        "terseLabel": "Financial Services Industry [Member]"
       }
      }
     },
     "localname": "FinancialServicesIndustryMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_FinancingReceivableIndividuallyEvaluatedForImpairmentGainLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financing receivable individually evaluated for impairment gain loss.",
        "label": "Financing Receivable Individually Evaluated For Impairment Gain Loss",
        "terseLabel": "YTD Losses, Individually assessed loans"
       }
      }
     },
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairmentGainLoss",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FinancingReceivableModificationsPostModificationRecordedInvestment3": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after troubled debt restructuring, of modified financing receivable.",
        "label": "Financing Receivable Modifications Post Modification Recorded Investment 3",
        "terseLabel": "Recorded Investment"
       }
      }
     },
     "localname": "FinancingReceivableModificationsPostModificationRecordedInvestment3",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FinancingReceivableOtherThanPurchaseCreditDeteriorationWeightedAverageRemainingUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average remaining useful life of other purchased financing receivables without credit deterioration.",
        "label": "Financing Receivable Other Than Purchase Credit Deterioration Weighted Average Remaining Useful Life",
        "verboseLabel": "Business acquisition weighted average remaining useful life of non purchase credit deterioration of loans"
       }
      }
     },
     "localname": "FinancingReceivableOtherThanPurchaseCreditDeteriorationWeightedAverageRemainingUsefulLife",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_FinancingReceivablePortfolioSegmentIAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Financing Receivable Portfolio Segment I [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentIAxis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_FinancingReceivablePortfolioSegmentIDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Financing Receivable Portfolio Segment I [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentIDomain",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_FinancingReceivableRecordedInvestment30To89DaysPastDue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financing receivables that are 30-89 days past due as of the balance sheet date.",
        "label": "Financing Receivable Recorded Investment 30 To 89 Days Past Due",
        "terseLabel": "Loans, 30-89 Days Past Due"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestment30To89DaysPastDue",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FinancingReceivableWithPurchasedCreditDeteriorationWeightedAverageRemainingUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average remaining useful life of purchased financing receivables with credit deterioration.",
        "label": "Financing Receivable With Purchased Credit Deterioration Weighted Average Remaining Useful Life",
        "verboseLabel": "Business acquisition weighted average remaining useful life of purchase credit deterioration of loans"
       }
      }
     },
     "localname": "FinancingReceivableWithPurchasedCreditDeteriorationWeightedAverageRemainingUsefulLife",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFour": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Finite Lived Intangible Assets Amortization Expense After Year Four",
        "label": "Finite Lived Intangible Assets Amortization Expense After Year Four",
        "terseLabel": "2024 and thereafter"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFour",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_FirstSouthPreferredTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "First south preferred trust I member.",
        "label": "First South Preferred Trust I [Member]",
        "terseLabel": "First South Preferred Trust I [Member]"
       }
      }
     },
     "localname": "FirstSouthPreferredTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ForfeitureOfNonVestedRestrictedStockShares": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares of restricted stock awards forfeited during the period.",
        "label": "Forfeiture Of Non Vested Restricted Stock Shares",
        "terseLabel": "Forfeiture of restricted stock, shares"
       }
      }
     },
     "localname": "ForfeitureOfNonVestedRestrictedStockShares",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_ForwardLoanSaleCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Forward loan sale commitments.",
        "label": "Forward Loan Sale Commitments [Member]",
        "terseLabel": "Forward Loan Sale Commitments [Member]"
       }
      }
     },
     "localname": "ForwardLoanSaleCommitmentsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ForwardSalesCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Forward Sales Commitments [Member]",
        "label": "Forward Sales Commitments [Member]",
        "terseLabel": "Forward Sales Commitments [Member]"
       }
      }
     },
     "localname": "ForwardSalesCommitmentsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_GeorgeMasonMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "George Mason.",
        "label": "George Mason [Member]",
        "terseLabel": "George Mason [Member]"
       }
      }
     },
     "localname": "GeorgeMasonMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_GeorgeMasonTradeNameIntangibleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "George Mason trade name intangible.",
        "label": "George Mason Trade Name Intangible [Member]",
        "terseLabel": "George Mason Trade Name Intangible [Member]"
       }
      }
     },
     "localname": "GeorgeMasonTradeNameIntangibleMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_GreerCapitalTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Greer capital trust I member.",
        "label": "Greer Capital Trust I [Member]",
        "terseLabel": "Greer Capital Trust I [Member]"
       }
      }
     },
     "localname": "GreerCapitalTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_GreerCapitalTrustIiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Greer capital trust II member.",
        "label": "Greer Capital Trust II [Member]",
        "terseLabel": "Greer Capital Trust II [Member]"
       }
      }
     },
     "localname": "GreerCapitalTrustIiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_HedgedCommercialLoansFederalHomeLoanBankMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Hedged Commercial Loans Federal Home Loan Bank.",
        "label": "Hedged Commercial Loans Federal Home Loan Bank [Member]",
        "terseLabel": "Hedged Commercial Loans Federal Home Loan Bank [Member]"
       }
      }
     },
     "localname": "HedgedCommercialLoansFederalHomeLoanBankMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_HedgedCommercialLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Hedged Commercial Loans [Member]",
        "label": "Hedged Commercial Loans [Member]",
        "terseLabel": "Hedged Commercial Loans [Member]"
       }
      }
     },
     "localname": "HedgedCommercialLoansMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ImputedInterest": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 8.0,
       "parentTag": "ubsi_OperatingLeasesFutureMinimumPaymentsDueNetOfImputedInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Imputed interest",
        "label": "Imputed Interest",
        "negatedLabel": "Less: imputed interest"
       }
      }
     },
     "localname": "ImputedInterest",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_IncludingUnfundedCommitementsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Including Unfunded Commitements [Member]"
       }
      }
     },
     "localname": "IncludingUnfundedCommitementsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_IncomeFromMortgageBankingActivitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income from Mortgage Banking Activities [Member]",
        "label": "Income from Mortgage Banking Activities [Member]",
        "terseLabel": "Income from Mortgage Banking Activities [Member]"
       }
      }
     },
     "localname": "IncomeFromMortgageBankingActivitiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_IncomeTaxesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income Taxes [Line Items]",
        "label": "Income Taxes [Line Items]",
        "terseLabel": "Income Taxes [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxesLineItems",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_IncomeTaxesTable": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income Taxes [Table]",
        "label": "Income Taxes [Table]",
        "terseLabel": "Income Taxes [Table]"
       }
      }
     },
     "localname": "IncomeTaxesTable",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_IncreaseDecreaseInDepositsAndShortTermBorrowingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Increase Decrease In Deposits And Short Term Borrowings",
        "label": "Increase Decrease In Deposits And Short Term Borrowings [Abstract]",
        "terseLabel": "Changes in:"
       }
      }
     },
     "localname": "IncreaseDecreaseInDepositsAndShortTermBorrowingsAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_IncreaseDecreaseInFederalFundsPurchasedSecuritiesSoldUnderAgreementsToRepurchaseAndOtherShortTermBorrowingsNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash inflow (outflow) due to changes in federal funds purchased, securities sold under agreements to repurchase, and other short-term borrowings .",
        "label": "Increase Decrease In Federal Funds Purchased Securities Sold Under Agreements To Repurchase And Other Short Term Borrowings Net",
        "terseLabel": "Federal funds purchased, securities sold under agreements to repurchase and other short-term borrowings"
       }
      }
     },
     "localname": "IncreaseDecreaseInFederalFundsPurchasedSecuritiesSoldUnderAgreementsToRepurchaseAndOtherShortTermBorrowingsNet",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_InformationRelatedToStatutoryTrustsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of certain information related to the statutory trusts including the issuance date, amount of capital securities issued, interest rate and maturity date.",
        "label": "Information Related To Statutory Trusts [Table Text Block]",
        "terseLabel": "Information Related to Statutory Trusts"
       }
      }
     },
     "localname": "InformationRelatedToStatutoryTrustsTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_InterestAndFeesOnLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest income expense.",
        "label": "Interest And Fees On Loans [Member]",
        "verboseLabel": "Interest And Fees On Loans [Member]"
       }
      }
     },
     "localname": "InterestAndFeesOnLoansMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_InterestRateCashFlowHedgeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest Rate Cash Flow Hedge.",
        "label": "Interest Rate Cash Flow Hedge [Member]",
        "terseLabel": "Interest Rate Cash Flow Hedge [Member]"
       }
      }
     },
     "localname": "InterestRateCashFlowHedgeMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_InterestRateReductionAndChangeInTermsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Interest Rate Reduction And Change In Terms.",
        "label": "Interest rate reduction and change in terms [Member]"
       }
      }
     },
     "localname": "InterestRateReductionAndChangeInTermsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_InterestReceivableWrittenOff": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accrued but unpaid interest on loans written off by reversing interest income.",
        "label": "Interest Receivable Written Off",
        "terseLabel": "Accrued Interest Receivables Written Off by Reversing Interest Income"
       }
      }
     },
     "localname": "InterestReceivableWrittenOff",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_InvestmentSecuritiesPledgedAsCollateral": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The carrying amount of investments securities that serve as collateral for borrowings.",
        "label": "Investment Securities Pledged As Collateral",
        "terseLabel": "Carrying value of securities pledged"
       }
      }
     },
     "localname": "InvestmentSecuritiesPledgedAsCollateral",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_InvestmentSecurityAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investment security.",
        "label": "Investment Security [Axis]",
        "terseLabel": "Investment [Axis]"
       }
      }
     },
     "localname": "InvestmentSecurityAxis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_InvestmentSecurityDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investment security.",
        "label": "Investment Security [Domain]",
        "terseLabel": "Investment [Domain]"
       }
      }
     },
     "localname": "InvestmentSecurityDomain",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_LoanCommitmentsOutstanding": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The outstanding dollar amount of commitments to extend additional credit issued as of the balance sheet date.",
        "label": "Loan Commitments Outstanding",
        "terseLabel": "Loan commitments outstanding"
       }
      }
     },
     "localname": "LoanCommitmentsOutstanding",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans.",
        "label": "Loans [Abstract]"
       }
      }
     },
     "localname": "LoansAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "xbrltype": "stringItemType"
    },
    "ubsi_LoansAcquiredMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Loans Acquired [Member]"
       }
      }
     },
     "localname": "LoansAcquiredMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_LoansAndDebtSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans And Debt Securities [Member]",
        "label": "Loans And Debt Securities [Member]",
        "terseLabel": "Loans and Debt Securities Acquired with Deteriorated Credit Quality [Member]"
       }
      }
     },
     "localname": "LoansAndDebtSecuritiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_LoansAndFinanceReceivablesGross": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The Gross carrying amount of Loans and Finance Receivables from various Credit transaction before Providing for Doubtful accounts.",
        "label": "Loans and Finance Receivables Gross",
        "terseLabel": "Total commercial, financial &amp; agricultural",
        "verboseLabel": "Total"
       }
      }
     },
     "localname": "LoansAndFinanceReceivablesGross",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansAndFinanceReceivablesThroughCreditCards": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The Gross carrying amount of Loans and Finance Receivables from various Credit transaction Specifically Bank Credit Cards before Providing for Doubtful accounts.",
        "label": "Loans and Finance Receivables Through Credit Cards",
        "terseLabel": "Bankcard"
       }
      }
     },
     "localname": "LoansAndFinanceReceivablesThroughCreditCards",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansAndFinanceReceivablesThroughOtherCustomers": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The gross carrying amount of Loans and Finance Receivables from the transacation with customers classified as Other before providing for doubtful accounts.",
        "label": "Loans and Finance Receivables Through Other Customers",
        "terseLabel": "Other consumer"
       }
      }
     },
     "localname": "LoansAndFinanceReceivablesThroughOtherCustomers",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansAndLeasesReceivableConstructionAndLandDevelopment": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reflects the gross carrying amount of unpaid loans issued to individuals or commercial developers to build, improve or remodel a residential home or commercial property. Such loans are usually secured by the property; and after the construction period, the borrower generally will obtain long-term financing to replace and satisfy the construction loan.",
        "label": "Loans and Leases Receivable Construction and Land Development",
        "terseLabel": "Construction &amp; land development"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableConstructionAndLandDevelopment",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansAndLeasesReceivableConsumerAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Loans And Leases Receivable Consumer [Abstract]",
        "terseLabel": "Consumer:"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableConsumerAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_LoansAndLeasesReceivableResidentialRealEstate": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The gross carrying amount of mortgage loans to individuals including home equity lines of credit.",
        "label": "Loans and Leases Receivable Residential Real Estate",
        "terseLabel": "Residential real estate"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableResidentialRealEstate",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansHeldForSaleGainsLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Losses (gains) recognized on loans held for sale including, but not limited to, mortgage loans and financing receivables due to a change in the fair value on nonrecurring basis.",
        "label": "Loans Held For Sale Gains Losses",
        "terseLabel": "YTD Losses, Loans held for sale"
       }
      }
     },
     "localname": "LoansHeldForSaleGainsLosses",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansHeldForSaleMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loans held for sale.",
        "label": "Loans Held For Sale [Member]",
        "terseLabel": "Loans Held For Sale [Member]"
       }
      }
     },
     "localname": "LoansHeldForSaleMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_LoansModificationExplanation": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Explanation of the disclosure for modifications to loans under the CARES Act.",
        "label": "Loans Modification Explanation",
        "terseLabel": "Loans Modification Explanation"
       }
      }
     },
     "localname": "LoansModificationExplanation",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_LoansNetOfUnearnedIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Loans Net Of Unearned Income [Member]"
       }
      }
     },
     "localname": "LoansNetOfUnearnedIncomeMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_LoansReceivableGainsLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Losses incurred due to a change in the fair value of loans within the allowance for loan losses where it is probable that all amounts due according to the contractual terms of the loan agreement will not be collected.",
        "label": "Loans Receivable Gains Losses",
        "terseLabel": "YTD Losses, Impaired Loans"
       }
      }
     },
     "localname": "LoansReceivableGainsLosses",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LoansRepaymentsMaximumTerm": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum time period for payment deferrals under the CARES Act.",
        "label": "Loans Repayments Maximum Term",
        "terseLabel": "Loans Repayments Maximum Term"
       }
      }
     },
     "localname": "LoansRepaymentsMaximumTerm",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_LoansRepaymentsMinimumTerm": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The initial and extension time period for payment deferrals under the CARES Act.",
        "label": "Loans Repayments Minimum Term",
        "terseLabel": "Loans Repayments Minimum Term"
       }
      }
     },
     "localname": "LoansRepaymentsMinimumTerm",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_LoansServicedForOthersUnpaidPrincipalBalance": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The unpaid principal balance on loans serviced for others.",
        "label": "Loans Serviced For Others Unpaid Principal Balance",
        "verboseLabel": "Loans serviced for others unpaid principal balance"
       }
      }
     },
     "localname": "LoansServicedForOthersUnpaidPrincipalBalance",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFiveAndThereafter": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirements and other securities issued that are redeemable by holder at fixed or determinable prices and dates maturing in the fifth fiscal year and greater following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Long Term Debt Maturities Repayments Of Principal In Year Five And Thereafter",
        "terseLabel": "2024 and thereafter"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFiveAndThereafter",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_MaximumNumberOfOptionsAndStockAppreciationRightsPerIndividualNonemployeeDirectorPerYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum number of options and stock appreciation rights per individual nonemployee director per year.",
        "label": "Maximum Number Of Options And Stock Appreciation Rights Per Individual Nonemployee Director Per Year",
        "terseLabel": "Maximum number of stock options and SARs awarded"
       }
      }
     },
     "localname": "MaximumNumberOfOptionsAndStockAppreciationRightsPerIndividualNonemployeeDirectorPerYear",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_MaximumNumberOfOptionsAndStockAppreciationRightsPerIndividualPerYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum number of options and stock appreciation rights available per individual per calendar year.",
        "label": "Maximum Number Of Options And Stock Appreciation Rights Per Individual Per Year",
        "terseLabel": "Maximum number of options and SARs"
       }
      }
     },
     "localname": "MaximumNumberOfOptionsAndStockAppreciationRightsPerIndividualPerYear",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_MaximumNumberOfSharesOfRestrictedSharesPerIndividualNonemployeeDirectorPerYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum number of shares of restricted shares per individual nonemployee director per year.",
        "label": "Maximum Number Of Shares Of Restricted Shares Per Individual Nonemployee Director Per Year",
        "terseLabel": "Maximum number of Shares of restricted stock or shares subject to a restricted stock units award granted to individual non-employee director"
       }
      }
     },
     "localname": "MaximumNumberOfSharesOfRestrictedSharesPerIndividualNonemployeeDirectorPerYear",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_MaximumNumberOfSharesOfRestrictedSharesPerIndividualPerYear": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum number of restricted shares available per individual per calendar year.",
        "label": "Maximum Number Of Shares Of Restricted Shares Per Individual Per Year",
        "terseLabel": "Maximum number of shares of restricted stock or shares subject to a restricted stock units award granted"
       }
      }
     },
     "localname": "MaximumNumberOfSharesOfRestrictedSharesPerIndividualPerYear",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_MaximumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum number of days past due to discontinue the accrual of interest on commercial and consumer loans.",
        "label": "Maximum Period Related To Accrual Of Interest On Discontinued Commercial And Consumer Loans",
        "terseLabel": "Maximum days for discontinue of accrual interest on commercial and consumer loan"
       }
      }
     },
     "localname": "MaximumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_MaximumPeriodrelatedToAccrualOfInterestOnLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum period of time related to the accrual of interest on loans that have become past due.",
        "label": "Maximum Period Related To Accrual Of Interest On Loans",
        "terseLabel": "Maximum Period Related To Accrual Of Interest On Discontinued Loans"
       }
      }
     },
     "localname": "MaximumPeriodrelatedToAccrualOfInterestOnLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_MaximumTimeToDeferPaymentOfInterestOnSubordinateDebt": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum time to defer payment of interest on subordinate debt.",
        "label": "Maximum Time To Defer Payment Of Interest On Subordinate Debt",
        "terseLabel": "Maximum time to defer payment of interest on subordinate debt"
       }
      }
     },
     "localname": "MaximumTimeToDeferPaymentOfInterestOnSubordinateDebt",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_MaximumVestingAmountOfAwards": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum vesting amount per calendar year of share based compensation awards.",
        "label": "Maximum Vesting Amount Of Awards",
        "terseLabel": "Vesting period of awards"
       }
      }
     },
     "localname": "MaximumVestingAmountOfAwards",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_MinimumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Minimum number of days past due to discontinue the accrual of interest on commercial and consumer loans.",
        "label": "Minimum Period Related To Accrual Of Interest On Discontinued Commercial And Consumer Loans",
        "terseLabel": "Minimum days for discontinue of accrual interest on commercial and consumer loan"
       }
      }
     },
     "localname": "MinimumPeriodRelatedToAccrualOfInterestOnDiscontinuedCommercialAndConsumerLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "ubsi_MortgageServicingRights": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 37.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Mortgage Servicing Rights.",
        "label": "Mortgage Servicing Rights",
        "terseLabel": "Mortgage servicing rights",
        "verboseLabel": "Mortgage servicing rights, net of valuation allowance"
       }
      }
     },
     "localname": "MortgageServicingRights",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_MortgageServicingRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Mortgage Servicing Rights [Member]",
        "verboseLabel": "Mortgage Servicing Rights [Member]"
       }
      }
     },
     "localname": "MortgageServicingRightsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_NatureOfLoanCoverageAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Nature Of Loan Coverage [Axis]"
       }
      }
     },
     "localname": "NatureOfLoanCoverageAxis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_NatureOfLoanCoverageDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Nature Of Loan Coverage [Domain]"
       }
      }
     },
     "localname": "NatureOfLoanCoverageDomain",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_NetServicingFeePercentageServicingAssets": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The servicing fee as a percentage of each mortgage payment made by a borrower to a mortgage servicer as compensation for keeping a record of payments, collecting, and making escrow payments, passing principal and interest payments along to the note holder.",
        "label": "Net Servicing Fee Percentage Servicing Assets",
        "terseLabel": "Net servicing fee percentage"
       }
      }
     },
     "localname": "NetServicingFeePercentageServicingAssets",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_NonAgencySecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Non Agency Securities [Member]",
        "label": "Non Agency Securities [Member]",
        "terseLabel": "Non-Agency [Member]"
       }
      }
     },
     "localname": "NonAgencySecuritiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_NonownerOccupiedCommercialRealEstateMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nonowner-occupied commercial real estate.",
        "label": "Nonowner Occupied Commercial Real Estate [Member]",
        "terseLabel": "Nonowner-Occupied [Member]",
        "verboseLabel": "Nonowner-Occupied Commercial Real Estate [Member]"
       }
      }
     },
     "localname": "NonownerOccupiedCommercialRealEstateMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_NonrecurringFairValueAdjustmentsOnLoansHeldForSale": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Adjustments related to a change in the fair value of loans designated for sale.",
        "label": "Nonrecurring Fair Value Adjustments On Loans Held For Sale",
        "terseLabel": "Nonrecurring fair value adjustments on loans held for sale"
       }
      }
     },
     "localname": "NonrecurringFairValueAdjustmentsOnLoansHeldForSale",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_NumberOfStatutoryBusinessTrusts": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of statutory business trusts formed for the purpose of issuing or participating in pools of trust preferred capital securities.",
        "label": "Number Of Statutory Business Trusts",
        "terseLabel": "Number of statutory business trusts"
       }
      }
     },
     "localname": "NumberOfStatutoryBusinessTrusts",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "ubsi_OperatingLeaseBalanceSheetLocationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the location and amounts of operating leases reported in the statement of financial position.",
        "label": "Operating Lease Balance Sheet Location Table Text Block [Table Text Block]",
        "terseLabel": "Supplemental Balance Sheet Information Related to Leases"
       }
      }
     },
     "localname": "OperatingLeaseBalanceSheetLocationTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_OperatingLeaseTermAndDiscountRateTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the weighted-average remaining lease term of operating leases and the weighted-average discount rate used to present value operating lease payments over the term of the operating leases.",
        "label": "Operating Lease Term And Discount Rate [Text Block]",
        "terseLabel": "Other Information Related to Leases"
       }
      }
     },
     "localname": "OperatingLeaseTermAndDiscountRateTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_OperatingLeasesCashFlowInformationTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of cash flow information related to operating leases.",
        "label": "Operating Leases Cash Flow Information [Text Block]",
        "terseLabel": "Supplemental Cash Flow Information Related to Leases"
       }
      }
     },
     "localname": "OperatingLeasesCashFlowInformationTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_OperatingLeasesFutureMinimumPaymentsDueNetOfImputedInterest": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Operating leases future minimum payments due net of imputed interest",
        "label": "Operating Leases Future Minimum Payments Due Net Of Imputed Interest",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueNetOfImputedInterest",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OtherCommercialLoansAndLeasesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other commercial loans and leases [member].",
        "label": "Other Commercial Loans And Leases [Member]",
        "terseLabel": "Other Commercial Loans And Leases [Member]"
       }
      }
     },
     "localname": "OtherCommercialLoansAndLeasesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_OtherCommercialLoansMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other commercial loans.",
        "label": "Other Commercial Loans [Member]",
        "terseLabel": "Other Commercial Loans [Member]"
       }
      }
     },
     "localname": "OtherCommercialLoansMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_OtherConsumerMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Other Consumer [Member]",
        "label": "Other Consumer [Member]",
        "terseLabel": "Other Consumer [Member]"
       }
      }
     },
     "localname": "OtherConsumerMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_OtherRealEstateOwnedExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 24.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net gain or loss resulting from sales and other disposals of other real estate owned, increases and decreases in the valuation allowance for foreclosed real estate, write-downs of other real estate owned after acquisition or physical possession as well as other expenses recognized during the period on foreclosed real estate properties.",
        "label": "Other Real Estate Owned Expense",
        "terseLabel": "Other real estate owned (\"OREO\") expense"
       }
      }
     },
     "localname": "OtherRealEstateOwnedExpense",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OtherRealEstateOwnedGainsLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Losses incurred due to a change in the fair value of other real estate owned properties acquired through foreclosure or other settlement of loans.",
        "label": "Other Real Estate Owned Gains Losses",
        "terseLabel": "YTD Losses, OREO"
       }
      }
     },
     "localname": "OtherRealEstateOwnedGainsLosses",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OtherRealEstateOwnedMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Real Estate Owned [Member]"
       }
      }
     },
     "localname": "OtherRealEstateOwnedMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount net of tax of other than temporary impairment (OTTI) loss or recovery on investments in available-for-sale securities, recognized in other comprehensive loss, portion attributable to parent.",
        "label": "Other than temporary impairment Losses Gains Investments Portion In Other Comprehensive Income Loss Net Of Tax Portion Attributable To ParenT available For Sale Securities",
        "negatedTotalLabel": "Net unrealized (losses) gains on AFS securities with OTTI"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OtherThanTemporaryImpairmentLossesInvestmentTaxExpenseBenefit": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 9.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax (expense) benefit of other than temporary impairment (OTTI) on investment in available-for-sale debt security, recognized in which have been recognized in earnings during the period.",
        "label": "Other than temporary Impairment Losses Investment Tax Expense Benefit",
        "terseLabel": "Related income tax benefit"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentTaxExpenseBenefit",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OtherThanTemporaryImpairmentLossesInvestmentsReclassificationAdjustmentOfNonCreditPortionIncludedInNetIncomeAvailablefOrSaleSecuritiesTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 11.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) for the reclassification adjustment for other than temporary impairment (OTTI) related to factors other than credit loss on a previously impaired investment in available-for-sale debt security.",
        "label": "Other Than Temporary Impairment Losses Investments Reclassification Adjustment Of Non credit Portion Included In Net Income Availablef or sale Securities Tax",
        "negatedLabel": "Related income tax benefit"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentsReclassificationAdjustmentOfNonCreditPortionIncludedInNetIncomeAvailablefOrSaleSecuritiesTax",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_OwnerOccupiedCommercialRealEstateMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Owner-occupied commercial real estate.",
        "label": "Owner Occupied Commercial Real Estate [Member]",
        "terseLabel": "Owner-Occupied [Member]",
        "verboseLabel": "Owner-Occupied Commercial Real Estate [Member]"
       }
      }
     },
     "localname": "OwnerOccupiedCommercialRealEstateMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PaymentsToCommitmentsUnderTroubleDebtRestructuring": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amounts advanced under commitments to lend additional funds to borrowers who have loans currently modified in a troubled debt restructuring.",
        "label": "Payments To Commitments Under Trouble Debt Restructuring",
        "terseLabel": "Payments under funding commitments"
       }
      }
     },
     "localname": "PaymentsToCommitmentsUnderTroubleDebtRestructuring",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_PcdLoansAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "PCD loans [Axis]"
       }
      }
     },
     "localname": "PcdLoansAxis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_PcdLoansDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "PCD loans [Domain]"
       }
      }
     },
     "localname": "PcdLoansDomain",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PcdLoansMemberMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "PCD loans Member [Member]"
       }
      }
     },
     "localname": "PcdLoansMemberMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PercentOfCorporateSecuritiesPortfolio": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The percentage of the portfolio of corporate debt securities issued by domestic or foreign corporate business, banks and other entities with a promise of repayment.",
        "label": "Percent Of Corporate Securities Portfolio",
        "terseLabel": "Percent of corporate securities portfolio"
       }
      }
     },
     "localname": "PercentOfCorporateSecuritiesPortfolio",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_PercentOfMunicipalBondPortfolioWithCreditSupport": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percent of municipal bond portfolio supported by the general obligation of the issuing municipality which allows for the securities to be repaid by any means available to the municipality.",
        "label": "Percent Of Municipal Bond Portfolio With Credit Support",
        "terseLabel": "Percent of portfolio with credit support"
       }
      }
     },
     "localname": "PercentOfMunicipalBondPortfolioWithCreditSupport",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_PercentageOfAvailableForSaleSecuritiesAtAmortizedCostRated": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of available for sale securities, at amortized cost, that have a credit rating.",
        "label": "Percentage Of Available For Sale Securities At Amortized Cost Rated",
        "terseLabel": "Percentage of available for sale securities at amortized cost rated"
       }
      }
     },
     "localname": "PercentageOfAvailableForSaleSecuritiesAtAmortizedCostRated",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_PercentageOfAvailableForSaleSecuritiesAtAmortizedCostUnrated": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of available for sale securities, at amortized cost, that do not have a credit rating.",
        "label": "Percentage Of Available For Sale Securities At Amortized Cost Unrated",
        "terseLabel": "Percentage of available for sale securities at amortized cost unrated"
       }
      }
     },
     "localname": "PercentageOfAvailableForSaleSecuritiesAtAmortizedCostUnrated",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_PercentageOfGuaranteeRepaymentByGovernment": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents percentage of guarantee repayment by government.",
        "label": "Percentage Of Guarantee Repayment By Government"
       }
      }
     },
     "localname": "PercentageOfGuaranteeRepaymentByGovernment",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_PremierStatutoryTrustIiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Premier statutory trust II.",
        "label": "Premier Statutory Trust II [Member]",
        "verboseLabel": "Premier Statutory Trust II [Member]"
       }
      }
     },
     "localname": "PremierStatutoryTrustIiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PremierStatutoryTrustIiiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Premier statutory trust III.",
        "label": "Premier Statutory Trust III [Member]",
        "verboseLabel": "Premier Statutory Trust III [Member]"
       }
      }
     },
     "localname": "PremierStatutoryTrustIiiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PremierStatutoryTrustIvMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Premier statutory trust IV.",
        "label": "Premier Statutory Trust Iv [Member]",
        "verboseLabel": "Premier Statutory Trust IV [Member]"
       }
      }
     },
     "localname": "PremierStatutoryTrustIvMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PremierStatutoryTrustVMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Premier statutory trust V.",
        "label": "Premier Statutory Trust V [Member]"
       }
      }
     },
     "localname": "PremierStatutoryTrustVMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PriorToAgeFortyFiveMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Prior to age forty five.",
        "label": "Prior To Age Forty Five [Member]",
        "terseLabel": "Prior to Age 45 [Member]"
       }
      }
     },
     "localname": "PriorToAgeFortyFiveMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_PriorToAgeFortyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Prior To Age Forty [Member]",
        "terseLabel": "Prior to Age 40 [Member]"
       }
      }
     },
     "localname": "PriorToAgeFortyMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_ProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with maturities (principal being due), prepayments and calls (requests of early payments) on securities not classified as either held-to-maturity securities or trading securities which are classified as available-for-sale securities.",
        "label": "Proceeds From Maturities Sales And Calls Of Available For Sale Securities",
        "terseLabel": "Proceeds from sales and calls"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfGainsOrLossesOnProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecuritiesBySpecificIdentificationMethodDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_ProvisionForRecoveryOfLoanAndLeaseLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense (or recovery of expense) related to the estimated loss from loan and lease transactions.",
        "label": "Provision For Recovery Of Loan And Lease Losses",
        "terseLabel": "Provision"
       }
      }
     },
     "localname": "ProvisionForRecoveryOfLoanAndLeaseLosses",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_RenewalPeriodOfLineOfCredit": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The time period for renewal of a line of credit.",
        "label": "Renewal Period Of Line Of Credit",
        "terseLabel": "Renewal period of line of credit"
       }
      }
     },
     "localname": "RenewalPeriodOfLineOfCredit",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "durationStringItemType"
    },
    "ubsi_ReserveForLendingRelatedCommitments": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 8.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents an accrued liability that is appropriate to cover estimated credit losses on off-balance sheet loan commitments, standby letters of credit, and guarantees.",
        "label": "Reserve For Lending Related Commitments",
        "terseLabel": "Reserve for lending-related commitments"
       }
      }
     },
     "localname": "ReserveForLendingRelatedCommitments",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_ReserveForPossibleLossesDueToRepurchaseOfLoansPreviouslySoldToInvestors": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reserve for possible losses due to the repurchase of loans previously sold to investors.",
        "label": "Reserve for Possible Losses due to Repurchase of Loans Previously Sold to Investors",
        "terseLabel": "Reserve for possible losses due to the repurchase of loans previously sold to investors"
       }
      }
     },
     "localname": "ReserveForPossibleLossesDueToRepurchaseOfLoansPreviouslySoldToInvestors",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_ResidentialMortgageBackedSecuritiesNonAgencyMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Residential mortgage-backed securities non-agency.",
        "label": "Residential Mortgage Backed Securities Non Agency [Member]",
        "terseLabel": "Residential Mortgage-Backed Securities, Non-agency [Member]"
       }
      }
     },
     "localname": "ResidentialMortgageBackedSecuritiesNonAgencyMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_RestructuredLoansOnNonaccrualStatus": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Recorded investment in restructured loans that are on nonaccrual status as of the balance sheet date.",
        "label": "Restructured Loans on Nonaccrual Status",
        "terseLabel": "Restructured loans on nonaccrual status"
       }
      }
     },
     "localname": "RestructuredLoansOnNonaccrualStatus",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_RevolvingLoansConvertedtoTermLoans": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Revolving loans converted\u00a0to term loans.",
        "label": "Revolving Loans Convertedto Term Loans",
        "terseLabel": "Revolving loans converted to term loans"
       }
      }
     },
     "localname": "RevolvingLoansConvertedtoTermLoans",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_RevolvingloansAmortizedCostBasis": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Revolving loans on an amortized basis.",
        "label": "RevolvingLoans Amortized Cost Basis",
        "terseLabel": "Revolving loans amortized cost basis"
       }
      }
     },
     "localname": "RevolvingloansAmortizedCostBasis",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_SalesPriceOfLoansHeldForSaleIncreasePercentage": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage increase to investor's indicated pricing based on historical sales prices for loans held for sale and associated derivatives.",
        "label": "Sales Price Of Loans Held For Sale Increase Percentage",
        "terseLabel": "Sales price of loans held for sale increase percentage"
       }
      }
     },
     "localname": "SalesPriceOfLoansHeldForSaleIncreasePercentage",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_ScheduleOfTroubledDebtRestructuringsOnFinancingReceivablesChargeOffsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the charge-off activity during the time periods indicated for troubled debt restructurings on financing receivables that have been modified during the past twelve months.",
        "label": "Schedule Of Troubled Debt Restructurings On Financing Receivables Charge Offs [Table Text Block]",
        "verboseLabel": "Schedule of Charged-off Troubled Debt Restructurings on Financing Receivables"
       }
      }
     },
     "localname": "ScheduleOfTroubledDebtRestructuringsOnFinancingReceivablesChargeOffsTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_ScheduleRelatedToAccruedInterestReceivablesAndWrittenOffTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of accrued but unpaid interest on loans and amounts written off by reversing interest income.",
        "label": "Schedule Related To Accrued Interest Receivables And Written Off [Table Text Block]",
        "terseLabel": "Schedule Of Credit Losses Related To Accrued Interest Receivables and Written Off"
       }
      }
     },
     "localname": "ScheduleRelatedToAccruedInterestReceivablesAndWrittenOffTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_ScheduleoftermloansandfinancingreceivableTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of the loan terms in which financing receivables are reviewed to classify as to credit risk.",
        "label": "ScheduleOfTermLoansAndFinancingReceivable [Table Text Block]",
        "terseLabel": "Schedule Of Term Loans And Financing Receivable"
       }
      }
     },
     "localname": "ScheduleoftermloansandfinancingreceivableTableTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_ServicingAssetAcquisitionFromSubsidary": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of mortgage servicing assets acquired in a business combination.",
        "label": "Servicing Asset Acquisition From Subsidary",
        "terseLabel": "Mortgage servicing rights",
        "verboseLabel": "Addition from acquisition of subsidiary"
       }
      }
     },
     "localname": "ServicingAssetAcquisitionFromSubsidary",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_ServicingAssetAmountCapitalised": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of new mortgage servicing assets recognized during the period.",
        "label": "Servicing Asset Amount Capitalised",
        "verboseLabel": "Amount capitalized"
       }
      }
     },
     "localname": "ServicingAssetAmountCapitalised",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_ServicingAssetTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of Servicing\u200b asset.",
        "label": "Servicing Asset [Text Block]",
        "verboseLabel": "Mortage Servicing Rights"
       }
      }
     },
     "localname": "ServicingAssetTextBlock",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRights"
     ],
     "xbrltype": "textBlockItemType"
    },
    "ubsi_ShareBasedCompensationByShareBasedPaymentArrangementOptionsAssumedInBusinessAcquisition": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share Based Compensation By Share Based Payment Arrangement Options Assumed In Business Acquisition.",
        "label": "Share Based Compensation By Share Based Payment Arrangement Options Assumed In Business Acquisition",
        "terseLabel": "Shares, Assumed"
       }
      }
     },
     "localname": "ShareBasedCompensationByShareBasedPaymentArrangementOptionsAssumedInBusinessAcquisition",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "ubsi_ShareBasedCompensationByShareBasedPaymentArrangementOptionsAssumedInBusinessAcquisitionWeightedAverageExercisePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share Based Compensation By Share Based Payment Arrangement Options Assumed In Business Acquisition Weighted Average Exercise Price.",
        "label": "Share Based Compensation By Share Based Payment Arrangement Options Assumed In Business Acquisition Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Assumed"
       }
      }
     },
     "localname": "ShareBasedCompensationByShareBasedPaymentArrangementOptionsAssumedInBusinessAcquisitionWeightedAverageExercisePrice",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "ubsi_ShareBasedCompensationRestrictedStockActivityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share Based Compensation Restricted Stock Activity [Abstract]",
        "label": "Share Based Compensation Restricted Stock Activity [Abstract]"
       }
      }
     },
     "localname": "ShareBasedCompensationRestrictedStockActivityAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "xbrltype": "stringItemType"
    },
    "ubsi_SingleIssueTrustPreferredSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Single issue trust preferred securities.",
        "label": "Single Issue Trust Preferred Securities [Member]",
        "terseLabel": "Single Issue Trust Preferred Securities [Member]"
       }
      }
     },
     "localname": "SingleIssueTrustPreferredSecuritiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_SplitRatedBondsInvestmentGradeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Split Rated Bonds Investment Grade [Member]"
       }
      }
     },
     "localname": "SplitRatedBondsInvestmentGradeMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_StockBasedCompensationArrangementByAwardVestAndConvertInToOtherThanOptionToAcquireCommonStockExchangeRatio": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The conversion ratio is the relative number of stock awards other than options of the acquiring organization that will be given to existing stock award holders of the target organization in a merger transaction.",
        "label": "Stock based Compensation Arrangement By Award Vest And Convert In to Other Than Option To Acquire Common Stock Exchange Ratio",
        "terseLabel": "Conversion of stock award to acquire common stock exchange ratio"
       }
      }
     },
     "localname": "StockBasedCompensationArrangementByAwardVestAndConvertInToOtherThanOptionToAcquireCommonStockExchangeRatio",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ubsi_StockBasedCompnesationArrangementByAwardVestingOptionToAcquireConversionOfCommonStockExchangeRatio": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The conversion ratio is the relative number of options of the acquiring organization that will be given to existing option holders of the target organization in a merger transaction.",
        "label": "Stock based Compnesation Arrangement By Award Vesting Option To Acquire Conversion Of Common Stock Exchange Ratio",
        "terseLabel": "Conversion of Option to acquire common stock exchange ratio"
       }
      }
     },
     "localname": "StockBasedCompnesationArrangementByAwardVestingOptionToAcquireConversionOfCommonStockExchangeRatio",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ubsi_StockIssuedDuringPeriodMergerConversionRatio": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The conversion ratio is the relative number of common shares of the acquiring organization that will be given to existing shareholders of the target organization in a merger transaction.",
        "label": "Stock Issued During Period Merger Conversion Ratio",
        "terseLabel": "Stock issued during period merger conversion ratio"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodMergerConversionRatio",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "pureItemType"
    },
    "ubsi_TbaMortgageBackedSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "TBA mortgage backed securities.",
        "label": "TBA Mortgage Backed Securities [Member]",
        "terseLabel": "TBA Mortgage Backed Securities [Member]"
       }
      }
     },
     "localname": "TbaMortgageBackedSecuritiesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_TermLoansOriginationYearFive": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans originated in year five.",
        "label": "Term Loans Origination Year Five",
        "terseLabel": "2016"
       }
      }
     },
     "localname": "TermLoansOriginationYearFive",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TermLoansOriginationYearFour": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans originated in year four.",
        "label": "Term Loans Origination Year Four",
        "terseLabel": "2017"
       }
      }
     },
     "localname": "TermLoansOriginationYearFour",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TermLoansOriginationYearOne": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans originated in year one.",
        "label": "Term Loans Origination Year One",
        "terseLabel": "2020"
       }
      }
     },
     "localname": "TermLoansOriginationYearOne",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TermLoansOriginationYearPrior": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans originated prior to year five.",
        "label": "Term Loans Origination Year Prior",
        "terseLabel": "Prior"
       }
      }
     },
     "localname": "TermLoansOriginationYearPrior",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TermLoansOriginationYearThree": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans origination year three.",
        "label": "Term Loans Origination Year Three",
        "terseLabel": "2018"
       }
      }
     },
     "localname": "TermLoansOriginationYearThree",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TermLoansOriginationYearTwo": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term loans originated in year two.",
        "label": "Term Loans Origination Year Two",
        "terseLabel": "2019"
       }
      }
     },
     "localname": "TermLoansOriginationYearTwo",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TransferOfAssetMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Transfer Of Asset.",
        "label": "Transfer of asset [Member]"
       }
      }
     },
     "localname": "TransferOfAssetMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_TroubledDebtRestructuringsNumberOfContracts": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of troubled debt restructured loans.",
        "label": "Troubled Debt Restructurings Number Of Contracts",
        "terseLabel": "Number of Contracts"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsNumberOfContracts",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "ubsi_TroubledDebtRestructuringsPostModificationAdditionalFundsRecordedInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Additional funds advanced on outstanding recorded investment in troubled debt restructured loans.",
        "label": "Troubled Debt Restructurings Post Modification Additional Funds Recorded Investment",
        "verboseLabel": "Troubled debt restructurings post modification additional funds recorded investment"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsPostModificationAdditionalFundsRecordedInvestment",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TroubledDebtRestructuringsPostModificationOutstandingRecordedInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The post-modification outstanding recorded investment in troubled debt restructured loans.",
        "label": "Troubled Debt Restructurings Post Modification Outstanding Recorded Investment",
        "terseLabel": "Post-Modification Outstanding Recorded Investment"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsPostModificationOutstandingRecordedInvestment",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_TroubledDebtRestructuringsPreModificationOutstandingRecordedInvestment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The pre-modification outstanding recorded investment in troubled debt restructured loans.",
        "label": "Troubled Debt Restructurings Pre Modification Outstanding Recorded Investment",
        "terseLabel": "Pre-Modification Outstanding Recorded Investment"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsPreModificationOutstandingRecordedInvestment",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_UFBCCapitalTrustIMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "UFBC capital trust I.",
        "label": "UFBC Capital Trust I [Member]"
       }
      }
     },
     "localname": "UFBCCapitalTrustIMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UndistributedEarningsAllocatedToCommonStockholders": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Undistributed earnings (net income less dividends paid) available to common stockholders.",
        "label": "Undistributed Earnings Allocated To Common Stockholders",
        "terseLabel": "Undistributed earnings allocated to common stock"
       }
      }
     },
     "localname": "UndistributedEarningsAllocatedToCommonStockholders",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "ubsi_UnitedStatutoryTrustIiiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "United statutory trust III.",
        "label": "United Statutory Trust III [Member]",
        "verboseLabel": "United Statutory Trust III [Member]"
       }
      }
     },
     "localname": "UnitedStatutoryTrustIiiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UnitedStatutoryTrustIvMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "United statutory trust IV.",
        "label": "United Statutory Trust Iv [Member]",
        "verboseLabel": "United Statutory Trust IV [Member]"
       }
      }
     },
     "localname": "UnitedStatutoryTrustIvMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UnitedStatutoryTrustVMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "United statutory trust V.",
        "label": "United Statutory Trust V [Member]"
       }
      }
     },
     "localname": "UnitedStatutoryTrustVMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UnitedStatutoryTrustViMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "United statutory trust VI.",
        "label": "United Statutory Trust VI [Member]",
        "verboseLabel": "United Statutory Trust VI [Member]"
       }
      }
     },
     "localname": "UnitedStatutoryTrustViMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UnratedBondsInvestmentGradeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unrated Bonds Investment Grade Member.",
        "label": "Unrated Bonds Investment Grade [Member]",
        "verboseLabel": "Unrated Bonds Investment Grade [Member]"
       }
      }
     },
     "localname": "UnratedBondsInvestmentGradeMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_UnrelatedFinancialInstitutionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unrelated financial institution.",
        "label": "Unrelated Financial Institution [Member]",
        "terseLabel": "Unrelated Financial Institution [Member]"
       }
      }
     },
     "localname": "UnrelatedFinancialInstitutionMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_VirginiaCommerceTrustIiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Virginia commerce trust II.",
        "label": "Virginia Commerce Trust II [Member]"
       }
      }
     },
     "localname": "VirginiaCommerceTrustIiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_VirginiaCommerceTrustIiiMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Virginia commerce trust III.",
        "label": "Virginia Commerce Trust III [Member]"
       }
      }
     },
     "localname": "VirginiaCommerceTrustIiiMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_WeightedAverageAssumptionsDiscountRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assumption of the interest rate used to bring future cash flows to the present to account for the time value of money.",
        "label": "Weighted Average Assumptions Discount Rate",
        "terseLabel": "Discount Rate"
       }
      }
     },
     "localname": "WeightedAverageAssumptionsDiscountRate",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "ubsi_WeightedaverageDiscountRateAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weightedaverage discount rate [Abstract]"
       }
      }
     },
     "localname": "WeightedaverageDiscountRateAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_WeightedaverageRemainingLeaseTermAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weightedaverage remaining lease term [Abstract]"
       }
      }
     },
     "localname": "WeightedaverageRemainingLeaseTermAbstract",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "ubsi_YTSChargeOffsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "YTS Charge Offs [Member]",
        "terseLabel": "YTD Charge Offs [Member]"
       }
      }
     },
     "localname": "YTSChargeOffsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_YTSNetChargeOffsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "YTS Net Charge Offs [Member]",
        "terseLabel": "YTD Net Charge Offs [Member]"
       }
      }
     },
     "localname": "YTSNetChargeOffsMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "ubsi_YTSRecoveriesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "YTS Recoveries [Member]",
        "terseLabel": "YTD Recoveries [Member]"
       }
      }
     },
     "localname": "YTSRecoveriesMember",
     "nsuri": "http://www.ubsi-inc.com/20200630",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingChangesAndErrorCorrectionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accounting Changes and Error Corrections [Abstract]"
       }
      }
     },
     "localname": "AccountingChangesAndErrorCorrectionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201613Member": {
     "auth_ref": [
      "r244"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accounting Standards Update 2016-13 Financial Instruments-Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments.",
        "label": "Accounting Standards Update 2016-13 [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201613Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201712Member": {
     "auth_ref": [
      "r565"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accounting Standards Update 2017-12 Derivatives and Hedging (Topic 815): Targeted Improvements to Accounting for Hedging Activities.",
        "label": "Accounting Standards Update 2017-12 [Member]",
        "terseLabel": "Accounting Standards Update 2017-12 [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201712Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdateExtensibleList": {
     "auth_ref": [
      "r111",
      "r112",
      "r113",
      "r114",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r489",
      "r490",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Indicates amendment to accounting standards.",
        "label": "Accounting Standards Update [Extensible List]",
        "terseLabel": "Accounting Standards Update [Extensible List]"
       }
      }
     },
     "localname": "AccountingStandardsUpdateExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "extensibleListItemType"
    },
    "us-gaap_AccountsNotesAndLoansReceivableLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Accounts, Notes, Loans and Financing Receivable [Line Items]",
        "terseLabel": "Accounts, Notes, Loans and Financing Receivable [Line Items]"
       }
      }
     },
     "localname": "AccountsNotesAndLoansReceivableLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccruedLiabilitiesAndOtherLiabilities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expenses incurred but not yet paid nor invoiced, and liabilities classified as other.",
        "label": "Accrued Liabilities and Other Liabilities",
        "terseLabel": "Accrued expenses and other liabilities"
       }
      }
     },
     "localname": "AccruedLiabilitiesAndOtherLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDefinedBenefitPlansAdjustmentMember": {
     "auth_ref": [
      "r45",
      "r51",
      "r54",
      "r521"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive (income) loss related to defined benefit plans attributable to the parent.",
        "label": "Accumulated Defined Benefit Plans Adjustment Attributable to Parent [Member]",
        "terseLabel": "Accumulated Defined Benefit Plans Adjustment [Member]"
       }
      }
     },
     "localname": "AccumulatedDefinedBenefitPlansAdjustmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedGainLossNetCashFlowHedgeParentMember": {
     "auth_ref": [
      "r51",
      "r61",
      "r520"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive income (loss) from gain (loss) of derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, attributable to parent.",
        "label": "Accumulated Gain (Loss), Net, Cash Flow Hedge, Parent [Member]",
        "terseLabel": "Accumulated Gain (Loss) Net Cash Flow Hedge Parent [Member]"
       }
      }
     },
     "localname": "AccumulatedGainLossNetCashFlowHedgeParentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember": {
     "auth_ref": [
      "r40",
      "r41",
      "r43",
      "r51",
      "r54"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), attributable to parent.",
        "label": "Accumulated Net Investment Gain (Loss) Attributable to Parent [Member]",
        "terseLabel": "Unrealized Gains/Losses on AFS Securities [Member]"
       }
      }
     },
     "localname": "AccumulatedNetUnrealizedInvestmentGainLossMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Accumulated Other Comprehensive Income (Loss) [Line Items]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Line Items]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r18",
      "r48",
      "r50",
      "r51",
      "r751",
      "r776",
      "r780"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 16.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated change in equity from transactions and other events and circumstances from non-owner sources, net of tax effect, at period end. Excludes Net Income (Loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners. Includes foreign currency translation items, certain pension adjustments, unrealized gains and losses on certain investments in debt and equity securities, other than temporary impairment (OTTI) losses related to factors other than credit losses on available-for-sale and held-to-maturity debt securities that an entity does not intend to sell and it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis, as well as changes in the fair value of derivatives related to the effective portion of a designated cash flow hedge.",
        "label": "Accumulated Other Comprehensive Income (Loss), Net of Tax",
        "verboseLabel": "Accumulated other comprehensive gain (loss)"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxAvailableforsaleDebtSecurities": {
     "auth_ref": [
      "r51",
      "r214",
      "r218"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive loss related to portion of other than temporary impairment (OTTI) due to factors other than credit losses on debt securities categorized as available-for-sale that an entity does not intend to sell and which it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis of the debt security. The amount represented by this item is net of tax, as applicable.",
        "label": "Accumulated Other Comprehensive Income (Loss), Other than Temporary Impairment, Not Credit Loss, Net of Tax, Available-for-sale, Debt Securities",
        "terseLabel": "Cumulative OTTI in AOCI"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxAvailableforsaleDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxHeldtomaturityDebtSecurities": {
     "auth_ref": [
      "r51",
      "r214",
      "r230"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated other comprehensive loss related to portion of other than temporary impairment (OTTI) due to factors other than credit losses on debt securities categorized as held-to-maturity that an entity does not intend to sell and which it is not more likely than not that the entity will be required to sell before recovery of the amortized cost basis of the debt security. The amount represented by this item is net of tax, as applicable.",
        "label": "Accumulated Other Comprehensive Income (Loss), Other than Temporary Impairment, Not Credit Loss, Net of Tax, Held-to-maturity, Debt Securities",
        "negatedLabel": "Decrease in AOCI due to transfer of held to maturity securities"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossOtherThanTemporaryImpairmentNotCreditLossNetOfTaxHeldtomaturityDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeLossTable": {
     "auth_ref": [
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r605"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about components of accumulated other comprehensive income (loss).",
        "label": "Accumulated Other Comprehensive Income (Loss) [Table]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Table]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeLossTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r47",
      "r51",
      "r54",
      "r106",
      "r107",
      "r109",
      "r521",
      "r771",
      "r772"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "AOCI Attributable to Parent [Member]",
        "terseLabel": "Accumulated Other Comprehensive Income (Loss) [Member]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapitalCommonStock": {
     "auth_ref": [
      "r16"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 14.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value received from shareholders in common stock-related transactions that are in excess of par value or stated value and amounts received from other stock-related transactions. Includes only common stock transactions (excludes preferred stock transactions). May be called contributed capital, capital in excess of par, capital surplus, or paid-in capital.",
        "label": "Additional Paid in Capital, Common Stock",
        "terseLabel": "Surplus"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r106",
      "r107",
      "r109",
      "r472",
      "r473",
      "r474"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-in Capital [Member]",
        "terseLabel": "Surplus [Member]"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r111",
      "r112",
      "r113",
      "r114",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r487",
      "r488",
      "r489",
      "r490",
      "r674",
      "r675",
      "r676",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Adjustments for New Accounting Pronouncements [Axis]",
        "terseLabel": "Adjustments for New Accounting Pronouncements [Axis]"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue": {
     "auth_ref": [
      "r440",
      "r442",
      "r477",
      "r478"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase to additional paid-in capital (APIC) for recognition of cost for award under share-based payment arrangement.",
        "label": "Adjustments to Additional Paid in Capital, Share-based Compensation, Requisite Service Period Recognition",
        "terseLabel": "Stock based compensation expense"
       }
      }
     },
     "localname": "AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdvancesFromFederalHomeLoanBanks": {
     "auth_ref": [
      "r743"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Advances from Federal Home Loan Banks",
        "documentation": "Amount of borrowings as of the balance sheet date from the Federal Home Loan Bank, which are primarily used to cover shortages in the required reserve balance and liquidity shortages.",
        "label": "Advances from Federal Home Loan Banks",
        "terseLabel": "Federal Home Loan Bank (\"FHLB\")borrowings"
       }
      }
     },
     "localname": "AdvancesFromFederalHomeLoanBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AgencySecuritiesMember": {
     "auth_ref": [
      "r242"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities issued by government sponsored entities.",
        "label": "Agency Securities [Member]",
        "terseLabel": "Agency [Member]"
       }
      }
     },
     "localname": "AgencySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r442",
      "r465",
      "r476"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Allocated Share-based Compensation Expense",
        "terseLabel": "Recognition of compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r192",
      "r255"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of allowance for credit loss on financing receivable.",
        "label": "Allowance for Credit Losses on Financing Receivables [Table Text Block]",
        "terseLabel": "Schedule of Allowance for Loan Losses and Carrying Amount of Loans"
       }
      }
     },
     "localname": "AllowanceForCreditLossesOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForCreditLossesTextBlock": {
     "auth_ref": [
      "r210"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for allowance for credit losses.",
        "label": "Allowance for Credit Losses [Text Block]",
        "terseLabel": "Allowance for Credit Losses"
       }
      }
     },
     "localname": "AllowanceForCreditLossesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLosses"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossRecoveryOfBadDebts": {
     "auth_ref": [
      "r189"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of recovery of loans and lease receivables which had previously been fully or partially written-off as bad debts.",
        "label": "Allowance for Loan and Lease Loss, Recovery of Bad Debts",
        "terseLabel": "Recoveries"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossRecoveryOfBadDebts",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesLoansAcquired": {
     "auth_ref": [
      "r193"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of addition to allowance reserve for credit loss arising from purchase of loan and lease portfolios.",
        "label": "Allowance for Loan and Lease Losses, Loans Acquired",
        "verboseLabel": "Business acquisition increase in expected credit losses"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossesLoansAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForLoanAndLeaseLossesWriteOffs": {
     "auth_ref": [
      "r188"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of loans and leases that have been written off from both loan receivables and allowance reserve for credit loss.",
        "label": "Allowance for Loan and Lease Losses, Write-offs",
        "terseLabel": "Charge-offs"
       }
      }
     },
     "localname": "AllowanceForLoanAndLeaseLossesWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AmortizationOfMortgageServicingRightsMSRs": {
     "auth_ref": [
      "r91",
      "r662"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The periodic amortization (in proportion to and over the period of estimated net servicing income or loss) of capitalized servicing rights, which contractually entitle the servicer to receive fees and ancillary revenues for performing billing, collection, disbursement and recordkeeping services in connection with a mortgage portfolio. As a noncash expense, this element is added back to net income when calculating cash provided by or used in operations using the indirect method.",
        "label": "Amortization of Mortgage Servicing Rights (MSRs)",
        "negatedLabel": "Amount amortized"
       }
      }
     },
     "localname": "AmortizationOfMortgageServicingRightsMSRs",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetBackedSecuritiesMember": {
     "auth_ref": [
      "r231",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities that are primarily serviced by the cash flows of a discrete pool of receivables or other financial assets for example, but not limited to, credit card receivables, car loans, recreational vehicle loans, and mobile home loans.",
        "label": "Asset-backed Securities [Member]",
        "terseLabel": "Asset-Backed Securities [Member]"
       }
      }
     },
     "localname": "AssetBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r98",
      "r159",
      "r166",
      "r173",
      "r243",
      "r518",
      "r522",
      "r591",
      "r696",
      "r749"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets",
        "terseLabel": "Total assets at consummation",
        "totalLabel": "TOTAL ASSETS",
        "verboseLabel": "Aggregate Assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Assets [Abstract]",
        "terseLabel": "Assets"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsNet": {
     "auth_ref": [
      "r3",
      "r783",
      "r784",
      "r785",
      "r786"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of net assets (liabilities).",
        "label": "Net Assets",
        "terseLabel": "Total assets (liabilities)",
        "totalLabel": "Risk Of Loss"
       }
      }
     },
     "localname": "AssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability": {
     "auth_ref": [
      "r102"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount to be repaid to the counterparty to the repurchase agreement when the carrying amount (or market value, if higher than the carrying amount) of securities or other assets sold under the repurchase agreement exceeds 10 percent of total assets.",
        "label": "Assets Sold under Agreements to Repurchase, Repurchase Liability",
        "terseLabel": "Repurchase agreements"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseRepurchaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleEquitySecuritiesGrossUnrealizedGain": {
     "auth_ref": [
      "r219"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized gain before deducting unrealized loss on investments in equity securities classified as available-for-sale securities.",
        "label": "Available-for-sale Equity Securities, Gross Unrealized Gain",
        "terseLabel": "Unrealized gains recognized during the period on equity securities still held at period end"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesGrossUnrealizedGain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleEquitySecuritiesGrossUnrealizedLoss": {
     "auth_ref": [
      "r220"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized loss before deducting unrealized gain on investments in available-for-sale equity securities.",
        "label": "Available-for-sale Equity Securities, Gross Unrealized Loss",
        "negatedLabel": "Unrealized losses recognized during the period on equity securities still held at period end"
       }
      }
     },
     "localname": "AvailableForSaleEquitySecuritiesGrossUnrealizedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 27.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt and equity securities categorized neither as held-to-maturity nor trading.",
        "label": "Available-for-sale Securities",
        "positiveLabel": "Securities available for sale",
        "positiveVerboseLabel": "Securities available for sale at estimated fair value (amortized cost-$2,730,350 at June 30, 2020 and $2,426,924 at December 31, 2019, allowance for credit losses of $0 at June 30, 2020)",
        "totalLabel": "Total available for sale securities",
        "verboseLabel": "Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax": {
     "auth_ref": [
      "r219"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of unrealized gain in accumulated other comprehensive income (AOCI) on investments in debt and equity securities classified as available-for-sale.",
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Gain, before Tax",
        "terseLabel": "Gross Unrealized Gains"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of unrealized loss in accumulated other comprehensive income (AOCI) on investments in debt and equity securities classified as available-for-sale.",
        "label": "Available-for-sale Securities, Accumulated Gross Unrealized Loss, before Tax",
        "terseLabel": "Gross Unrealized Losses",
        "verboseLabel": "Gross unrealized losses on available for sale securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAccumulatedGrossUnrealizedLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.",
        "label": "Available-for-sale Securities, Amortized Cost Basis",
        "terseLabel": "Amortized cost of available for sale securities",
        "totalLabel": "Amortized Cost",
        "verboseLabel": "Securities available for sale, amortized cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale that have been in a continuous loss position for twelve months or longer.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss",
        "terseLabel": "12 months or longer, Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss": {
     "auth_ref": [
      "r236"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale in a continuous loss position.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Accumulated Loss",
        "verboseLabel": "Total, Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities in an unrealized loss position which are categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Fair Value",
        "verboseLabel": "Total, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated unrealized loss on investments in debt and equity securities classified as available-for-sale that have been in a continuous loss position for less than twelve months.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss",
        "terseLabel": "Less than 12 months, Unrealized Losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities categorized neither as held-to-maturity nor trading securities that have been in a continuous unrealized loss position for less than twelve months.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Less than Twelve Months, Fair Value",
        "terseLabel": "Less than 12 months, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionLessThanTwelveMonthsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the aggregate fair value of investments in debt and equity securities categorized neither as held-to-maturity nor trading securities that have been in a continuous unrealized loss position for twelve months or longer.",
        "label": "Available-for-sale Securities, Continuous Unrealized Loss Position, Twelve Months or Longer, Fair Value",
        "terseLabel": "12 months or longer, Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesContinuousUnrealizedLossPositionTwelveMonthsOrLongerFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost": {
     "auth_ref": [
      "r225"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Amortized Cost",
        "terseLabel": "Due after five years through ten years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue": {
     "auth_ref": [
      "r221",
      "r225",
      "r740"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_AvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in sixth through tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after Five Through Ten Years, Fair Value",
        "terseLabel": "Due after five years through ten years, Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost": {
     "auth_ref": [
      "r224"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Amortized Cost",
        "terseLabel": "Due after one year through five years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue": {
     "auth_ref": [
      "r221",
      "r224",
      "r739"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_AvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in second through fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after One Through Five Years, Fair Value",
        "terseLabel": "Due after one year through five years, Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost": {
     "auth_ref": [
      "r226"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Allocated and Single Maturity Date, Maturity, after 10 Years, Amortized Cost",
        "terseLabel": "Due after ten years, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue": {
     "auth_ref": [
      "r221",
      "r226",
      "r741"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 8.0,
       "parentTag": "us-gaap_AvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing after tenth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, after 10 Years, Fair Value",
        "terseLabel": "Due after ten years, Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost": {
     "auth_ref": [
      "r223"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Amortized Cost",
        "terseLabel": "Due in one year or less, Amortized Cost"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue": {
     "auth_ref": [
      "r221",
      "r223",
      "r738"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_AvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), with single maturity date and allocated without single maturity date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Debt Securities, Available-for-sale, Maturity, Allocated and Single Maturity Date, within One Year, Fair Value",
        "terseLabel": "Due in one year or less, Estimated Fair Value"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfMaturitiesOfSecuritiesAvailableForSaleByAmortizedCostAndEstimatedFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesDebtSecurities": {
     "auth_ref": [
      "r211",
      "r217",
      "r278",
      "r701"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale",
        "terseLabel": "Available for sale debt securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesDebtSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesEquitySecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of equity securities categorized neither as held-to-maturity nor as trading.",
        "label": "Available-for-sale Securities, Equity Securities",
        "terseLabel": "Available for sale equity securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesEquitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossRealizedGainLossNet": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the difference between the gross realized gains and losses realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities. Additionally, this item would include any losses recognized for other than temporary impairments (OTTI) of the subject investments in debt and equity securities.",
        "label": "Available-for-sale Securities, Gross Realized Gain (Loss)",
        "terseLabel": "Net gains recognized during the period"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossRealizedGainLossNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossRealizedGains": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the gross profit realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Gross Realized Gains",
        "terseLabel": "Gross realized gains"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossRealizedGains",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfGainsOrLossesOnProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecuritiesBySpecificIdentificationMethodDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the gross loss realized on the sale of debt or equity securities categorized neither as held-to-maturity nor trading securities.",
        "label": "Available-for-sale Securities, Gross Realized Losses",
        "terseLabel": "Gross realized losses"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossRealizedLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfGainsOrLossesOnProceedsFromMaturitiesSalesAndCallsOfAvailableForSaleSecuritiesBySpecificIdentificationMethodDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Securities, Available-for-sale, Unrealized Gain (Loss) [Abstract]"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesGrossUnrealizedGainLossAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of available-for-sale securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for as available-for-sale, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures related to available for sale securities.",
        "label": "Available-for-sale Securities [Table Text Block]",
        "terseLabel": "Summary of Amortized Cost and Estimated Fair Values of Available for Sale Securities"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1": {
     "auth_ref": [
      "r234"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of investment positions in available-for-sale investments in a continuous unrealized loss position for which an other-than-temporary impairment (OTTI) has not been recognized in the income statement.",
        "label": "Available-for-sale, Securities in Unrealized Loss Positions, Qualitative Disclosure, Number of Positions",
        "terseLabel": "Available for sale securities in unrealized loss position"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesInUnrealizedLossPositionsQualitativeDisclosureNumberOfPositions1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_AvailableforsaleSecuritiesMember": {
     "auth_ref": [
      "r238"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Available-for-sale Securities [Member]",
        "terseLabel": "Available-for-sale Securities [Member]"
       }
      }
     },
     "localname": "AvailableforsaleSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r444",
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]",
        "terseLabel": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r540",
      "r545"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]",
        "terseLabel": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BankOwnedLifeInsuranceIncome": {
     "auth_ref": [
      "r723"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 15.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Earnings on or other increases in the value of the cash surrender value of bank owned life insurance policies.",
        "label": "Bank Owned Life Insurance Income",
        "verboseLabel": "Income from bank-owned life insurance"
       }
      }
     },
     "localname": "BankOwnedLifeInsuranceIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Accounting, Policy [Policy Text Block]",
        "terseLabel": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BuildingMember": {
     "auth_ref": [
      "r298"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Facility held for productive use including, but not limited to, office, production, storage and distribution facilities.",
        "label": "Building [Member]"
       }
      }
     },
     "localname": "BuildingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAcquireeDomain": {
     "auth_ref": [
      "r421",
      "r434"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identification of the acquiree in a material business combination (or series of individually immaterial business combinations), which may include the name or other type of identification of the acquiree.",
        "label": "Business Acquisition, Acquiree [Domain]",
        "terseLabel": "Business Acquisition, Acquiree [Domain]"
       }
      }
     },
     "localname": "BusinessAcquisitionAcquireeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BusinessAcquisitionAxis": {
     "auth_ref": [
      "r421",
      "r434",
      "r502",
      "r503"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business combination or series of individually immaterial business combinations.",
        "label": "Business Acquisition [Axis]",
        "terseLabel": "Business Acquisition [Axis]"
       }
      }
     },
     "localname": "BusinessAcquisitionAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued": {
     "auth_ref": [
      "r512"
     ],
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Business combination number of shares issued",
        "documentation": "Number of shares of equity interests issued or issuable to acquire entity.",
        "label": "Business Acquisition, Equity Interest Issued or Issuable, Number of Shares",
        "terseLabel": "Business combination shares issued during the year"
       }
      }
     },
     "localname": "BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_BusinessAcquisitionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Business Acquisition [Line Items]"
       }
      }
     },
     "localname": "BusinessAcquisitionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired": {
     "auth_ref": [
      "r498"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of voting equity interests acquired at the acquisition date in the business combination.",
        "label": "Business Acquisition, Percentage of Voting Interests Acquired",
        "terseLabel": "Business acquisition, percentage of voting interests acquired"
       }
      }
     },
     "localname": "BusinessAcquisitionPercentageOfVotingInterestsAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_BusinessAcquisitionProFormaInformationTextBlock": {
     "auth_ref": [
      "r500",
      "r501"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of pro forma results of operations for a material business acquisition or series of individually immaterial business acquisitions that are material in the aggregate.",
        "label": "Business Acquisition, Pro Forma Information [Table Text Block]",
        "terseLabel": "Summary of Business Acquisition, Pro Forma Information"
       }
      }
     },
     "localname": "BusinessAcquisitionProFormaInformationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount": {
     "auth_ref": [
      "r513"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of goodwill arising from a business combination that is expected to be deductible for tax purposes.",
        "label": "Business Acquisition, Goodwill, Expected Tax Deductible Amount",
        "verboseLabel": "Business combination expected tax deductible goodwill"
       }
      }
     },
     "localname": "BusinessAcquisitionPurchasePriceAllocationGoodwillExpectedTaxDeductibleAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessAcquisitionSharePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination.",
        "label": "Business Acquisition, Share Price",
        "terseLabel": "Business Acquisition, Share Price"
       }
      }
     },
     "localname": "BusinessAcquisitionSharePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss": {
     "auth_ref": [
      "r500",
      "r501"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The pro forma net Income or Loss for the period as if the business combination or combinations had been completed at the beginning of a period.",
        "label": "Business Acquisition, Pro Forma Net Income (Loss)",
        "verboseLabel": "Net Income"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaNetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessAcquisitionsProFormaRevenue": {
     "auth_ref": [
      "r500",
      "r501"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The pro forma revenue for a period as if the business combination or combinations had been completed at the beginning of the period.",
        "label": "Business Acquisition, Pro Forma Revenue",
        "verboseLabel": "Total Revenues"
       }
      }
     },
     "localname": "BusinessAcquisitionsProFormaRevenue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfOperatingCostSavingsAndOtherBusinessSynergiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationAcquiredDirectFinancingLeaseReceivable": {
     "auth_ref": [
      "r506"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of acquired direct financing lease receivable from business combination.",
        "label": "Business Combination, Acquired Direct Financing Lease Receivable",
        "terseLabel": "Business combination lease receivable acquired gross outstanding"
       }
      }
     },
     "localname": "BusinessCombinationAcquiredDirectFinancingLeaseReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationAcquiredReceivablesFairValue": {
     "auth_ref": [
      "r505"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of acquired receivable from business combination, excluding certain loans and debt securities acquired in transfer.",
        "label": "Business Combination, Acquired Receivable, Fair Value",
        "verboseLabel": "Business acquisition fair value of non purchase credit deteroration loans acquired"
       }
      }
     },
     "localname": "BusinessCombinationAcquiredReceivablesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferred1": {
     "auth_ref": [
      "r508",
      "r509",
      "r510"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of consideration transferred, consisting of acquisition-date fair value of assets transferred by the acquirer, liabilities incurred by the acquirer, and equity interest issued by the acquirer.",
        "label": "Business Combination, Consideration Transferred",
        "totalLabel": "Total purchase price",
        "verboseLabel": "Business combination aggregate purchase consideration"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferred1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Combination, Consideration Transferred [Abstract]",
        "terseLabel": "Purchase price:"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable": {
     "auth_ref": [
      "r508",
      "r509"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of equity interests of the acquirer, including instruments or interests issued or issuable in consideration for the business combination.",
        "label": "Business Combination, Consideration Transferred, Equity Interests Issued and Issuable",
        "terseLabel": "Value of common shares issued",
        "verboseLabel": "Business combination purchase consideration equity shares issued or issuable value"
       }
      }
     },
     "localname": "BusinessCombinationConsiderationTransferredEquityInterestsIssuedAndIssuable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationDisclosureTextBlock": {
     "auth_ref": [
      "r514"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities. The disclosure may include leverage buyout transactions (as applicable).",
        "label": "Business Combination Disclosure [Text Block]",
        "terseLabel": "Mergers and Acquisitions"
       }
      }
     },
     "localname": "BusinessCombinationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitions"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual": {
     "auth_ref": [
      "r499"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents the amount of earnings or loss of the acquiree since the acquisition date included in the consolidated income statement for the reporting period.",
        "label": "Business Combination, Pro Forma Information, Earnings or Loss of Acquiree since Acquisition Date, Actual",
        "verboseLabel": "Business acquisition net income of the acquiree included in the total revenue since the date of acquisition"
       }
      }
     },
     "localname": "BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual": {
     "auth_ref": [
      "r499"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents the amount of revenue of the acquiree since the acquisition date included in the consolidated income statement for the reporting period.",
        "label": "Business Combination, Pro Forma Information, Revenue of Acquiree since Acquisition Date, Actual",
        "terseLabel": "Business acquisition revenue of the acquiree included in the total revenue since the date of acquisition"
       }
      }
     },
     "localname": "BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 10.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of assets acquired at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets",
        "totalLabel": "Total identifiable assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets [Abstract]",
        "terseLabel": "Identifiable assets:"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 11.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions, acquired at the acquisition date. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets": {
     "auth_ref": [
      "r504",
      "r507",
      "r597"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 12.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of financial assets (as defined) recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Financial Assets",
        "terseLabel": "Investment securities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFinancialAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 19.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of assets, excluding financial assets and goodwill, that lack physical substance, having a projected indefinite period of benefit, acquired at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Indefinite-Lived Intangible Assets",
        "terseLabel": "Crescent Mortgage trade name intangible",
        "verboseLabel": "Business combination intangible assets acquired other than goodwill indefinite lived"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIndefiniteLivedIntangibleAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles": {
     "auth_ref": [
      "r504",
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 20.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of identifiable intangible assets recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles",
        "presentationGuidance": "Core deposit intangible",
        "verboseLabel": "Business combination intangible assets acquired other than goodwill core deposit intangibles finite lived"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liabilities assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities",
        "totalLabel": "Total identifiable liabilities"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities [Abstract]",
        "terseLabel": "Identifiable liabilities:"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet": {
     "auth_ref": [
      "r504",
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount recognized as of the acquisition date for the identifiable assets acquired in excess of (less than) the aggregate liabilities assumed.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net",
        "totalLabel": "Preliminary fair value of net assets acquired including identifiable intangible assets"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt": {
     "auth_ref": [
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt due after one year or the normal operating cycle, if longer, assumed at the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Noncurrent Liabilities, Long-term Debt",
        "terseLabel": "Long-term borrowings"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedNoncurrentLiabilitiesLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment": {
     "auth_ref": [
      "r504",
      "r507"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 15.0,
       "parentTag": "us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of property, plant, and equipment recognized as of the acquisition date.",
        "label": "Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment",
        "terseLabel": "Premises and equipment"
       }
      }
     },
     "localname": "BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_BusinessCombinationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Business Combinations [Abstract]"
       }
      }
     },
     "localname": "BusinessCombinationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r588",
      "r589"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Reported Value Measurement [Member]",
        "terseLabel": "Carrying Amount [Member]"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of cash and cash equivalent balance.",
        "label": "Cash and Cash Equivalents [Axis]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CashAndDueFromBanks": {
     "auth_ref": [
      "r693"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 19.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For banks and other depository institutions: Includes cash on hand (currency and coin), cash items in process of collection, noninterest bearing deposits due from other financial institutions (including corporate credit unions), and noninterest bearing balances with the Federal Reserve Banks, Federal Home Loan Banks and central banks.",
        "label": "Cash and Due from Banks",
        "terseLabel": "Cash and due from banks"
       }
      }
     },
     "localname": "CashAndDueFromBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsAndFederalFundsSold": {
     "auth_ref": [
      "r703"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 18.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of cash and cash equivalents plus Federal Funds Sold. Cash and cash equivalents consist of short term, highly liquid investments that are readily convertible to known amounts of cash and are so near their maturity that they present negligible risk of changes in value due to changes in interest rates -- usually with an original maturity less than 90 days.",
        "label": "Cash, Cash Equivalents, and Federal Funds Sold",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of year",
        "terseLabel": "Cash and cash equivalents",
        "totalLabel": "Total cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsAndFederalFundsSold",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows",
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect": {
     "auth_ref": [
      "r88",
      "r598"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; excluding effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash, Cash Equivalents, Restricted Cash and Restricted Cash Equivalents, Period Increase (Decrease), Excluding Exchange Rate Effect",
        "totalLabel": "Increase in cash and cash equivalents"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r537"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk.",
        "label": "Cash Flow Hedging [Member]",
        "terseLabel": "Cash Flow Hedging [Member]"
       }
      }
     },
     "localname": "CashFlowHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Cash Flow, Noncash Investing and Financing Activities Disclosure [Abstract]",
        "terseLabel": "Noncash investing activities:"
       }
      }
     },
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ClassOfStockDomain": {
     "auth_ref": [
      "r97",
      "r98",
      "r128",
      "r129",
      "r130",
      "r133",
      "r135",
      "r143",
      "r144",
      "r145",
      "r243",
      "r591"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Share of stock differentiated by the voting rights the holder receives. Examples include, but are not limited to, common stock, redeemable preferred stock, nonredeemable preferred stock, and convertible stock.",
        "label": "Class of Stock [Domain]"
       }
      }
     },
     "localname": "ClassOfStockDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail",
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail",
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CollateralAxis": {
     "auth_ref": [
      "r271"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Axis]"
       }
      }
     },
     "localname": "CollateralAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Category of collateral or no collateral, from lender's perspective.",
        "label": "Collateral [Domain]"
       }
      }
     },
     "localname": "CollateralDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CollateralizedDebtObligationsMember": {
     "auth_ref": [
      "r216",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities collateralized by a pool of assets.",
        "label": "Collateralized Debt Obligations [Member]",
        "terseLabel": "Trust Preferred Collateralized Debt Obligations [Member]"
       }
      }
     },
     "localname": "CollateralizedDebtObligationsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r227",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities collateralized by commercial real estate mortgage loans.",
        "label": "Commercial Mortgage Backed Securities [Member]",
        "terseLabel": "Commercial Mortgage-Backed Securities [Member]"
       }
      }
     },
     "localname": "CommercialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial receivables.",
        "label": "Commercial Portfolio Segment [Member]",
        "terseLabel": "Other Commercial [Member]"
       }
      }
     },
     "localname": "CommercialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialRealEstateMember": {
     "auth_ref": [
      "r273",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Property that is solely used for business purposes.",
        "label": "Commercial Real Estate [Member]",
        "terseLabel": "Commercial Real Estate [Member]"
       }
      }
     },
     "localname": "CommercialRealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommercialRealEstatePortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to commercial real estate.",
        "label": "Commercial Real Estate Portfolio Segment [Member]",
        "terseLabel": "Commercial Real Estate [Member]"
       }
      }
     },
     "localname": "CommercialRealEstatePortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureTextBlock": {
     "auth_ref": [
      "r304",
      "r305",
      "r306",
      "r314"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for commitments and contingencies.",
        "label": "Commitments and Contingencies Disclosure [Text Block]",
        "terseLabel": "Commitments and Contingent Liabilities"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommitmentsToExtendCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan commitments are legally binding commitments to extend credit to a counterparty under certain terms and conditions.",
        "label": "Commitments to Extend Credit [Member]",
        "terseLabel": "Commitments to Extend Credit [Member]"
       }
      }
     },
     "localname": "CommitmentsToExtendCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "auth_ref": [
      "r333"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding.",
        "label": "Common Stock, Dividends, Per Share, Cash Paid",
        "terseLabel": "Cash dividends per share"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r106",
      "r107"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]",
        "terseLabel": "Common Stock [Member]"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r14"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common Stock, Par or Stated Value Per Share",
        "terseLabel": "Common stock, par value",
        "verboseLabel": "Par value of Share"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r14"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common Stock, Shares Authorized",
        "terseLabel": "Common stock, shares authorized"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r14"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common Stock, Shares, Issued",
        "terseLabel": "Common stock, shares issued"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r14"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 13.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common Stock, Value, Issued",
        "verboseLabel": "Common stock, $2.50 par value; Authorized-200,000,000 shares; issued-133,716,280 and 105,494,290 at June 30, 2020 and December 31, 2019, respectively, including 3,960,885 and 3,940,619 shares in treasury at June 30, 2020 and December 31, 2019, respectively"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Retirement Benefits [Abstract]"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTax": {
     "auth_ref": [
      "r57",
      "r59",
      "r60",
      "r67",
      "r716",
      "r760"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners.",
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent",
        "terseLabel": "Total Comprehensive Income",
        "totalLabel": "Comprehensive income, net of tax"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ComprehensiveIncomeNetOfTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Comprehensive Income (Loss), Net of Tax, Attributable to Parent [Abstract]"
       }
      }
     },
     "localname": "ComprehensiveIncomeNetOfTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComprehensiveIncomeNoteTextBlock": {
     "auth_ref": [
      "r66",
      "r72",
      "r715",
      "r759"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for comprehensive income, which includes, but is not limited to, 1) the amount of income tax expense or benefit allocated to each component of other comprehensive income, including reclassification adjustments, 2) the reclassification adjustments for each classification of other comprehensive income and 3) the ending accumulated balances for each component of comprehensive income.",
        "label": "Comprehensive Income (Loss) Note [Text Block]",
        "terseLabel": "Comprehensive Income"
       }
      }
     },
     "localname": "ComprehensiveIncomeNoteTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncome"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionLoansMember": {
     "auth_ref": [
      "r806"
     ],
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Construction [Member]",
        "documentation": "A borrowing arrangement which provides the entity constructing a facility (such as a building and a landfill) with funds to effect construction, generally on a draw down, or as needed, basis.",
        "label": "Construction Loans [Member]",
        "terseLabel": "Construction &amp; Land Development [Member]",
        "verboseLabel": "Construction Loans [Member]"
       }
      }
     },
     "localname": "ConstructionLoansMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConsumerPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to consumer receivables.",
        "label": "Consumer Portfolio Segment [Member]",
        "terseLabel": "Consumer [Member]",
        "verboseLabel": "Consumer Portfolio Segment [Member]"
       }
      }
     },
     "localname": "ConsumerPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractWithCustomerDurationAxis": {
     "auth_ref": [
      "r337",
      "r339"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by duration of contract with customer. Includes, but is not limited to, short-term and long-term contracts.",
        "label": "Contract with Customer, Duration [Axis]",
        "terseLabel": "Contract with Customer, Duration [Axis]"
       }
      }
     },
     "localname": "ContractWithCustomerDurationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ContractWithCustomerDurationDomain": {
     "auth_ref": [
      "r337",
      "r339"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Duration of contract with customer. Includes, but is not limited to, short-term and long-term contracts.",
        "label": "Contract with Customer, Duration [Domain]",
        "terseLabel": "Contract with Customer, Duration [Domain]"
       }
      }
     },
     "localname": "ContractWithCustomerDurationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractualInterestRateReductionMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan modification for a reduction of contractual interest rate.",
        "label": "Contractual Interest Rate Reduction [Member]",
        "terseLabel": "Interest rate reduction [Member]"
       }
      }
     },
     "localname": "ContractualInterestRateReductionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ContractualObligation": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of contractual obligation, including but not limited to, long-term debt, capital lease obligations, operating lease obligations, purchase obligations, and other commitments.",
        "label": "Contractual Obligation",
        "terseLabel": "Additional commitments to extend credit"
       }
      }
     },
     "localname": "ContractualObligation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CoreDepositsMember": {
     "auth_ref": [
      "r744"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Entity's long-term relationships with depositors, commonly known as core deposit intangibles, which are separate from the financial instruments themselves.",
        "label": "Core Deposits [Member]",
        "terseLabel": "Core Deposit Intangible Assets [Member]"
       }
      }
     },
     "localname": "CoreDepositsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CorporateDebtSecuritiesMember": {
     "auth_ref": [
      "r366",
      "r415",
      "r781"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Debt securities issued by domestic or foreign corporate business, banks and other entities with a promise of repayment.",
        "label": "Corporate Debt Securities [Member]",
        "terseLabel": "Corporate Bonds [Member]"
       }
      }
     },
     "localname": "CorporateDebtSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditCardMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Card issued to user to facilitate payment for purchase of product and service, paid directly to merchant by card issuer, and later paid by cardholder to card issuer.",
        "label": "Credit Card [Member]",
        "terseLabel": "Bankcard Fees and Merchant Discounts [Member]"
       }
      }
     },
     "localname": "CreditCardMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CreditLossStatusAxis": {
     "auth_ref": [
      "r208",
      "r277",
      "r285"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by credit loss status of financial asset.",
        "label": "Credit Loss Status [Axis]",
        "terseLabel": "Credit Loss Status [Axis]"
       }
      }
     },
     "localname": "CreditLossStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CreditLossStatusDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit loss status of financial asset.",
        "label": "Credit Loss Status [Domain]",
        "terseLabel": "Credit Loss Status [Domain]"
       }
      }
     },
     "localname": "CreditLossStatusDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtAndEquitySecuritiesGainLoss": {
     "auth_ref": [
      "r69",
      "r70"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in debt and equity securities.",
        "label": "Debt and Equity Securities, Gain (Loss)",
        "terseLabel": "Net reclassification adjustment for losses (gains) included in net income"
       }
      }
     },
     "localname": "DebtAndEquitySecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r8",
      "r10",
      "r11",
      "r697",
      "r698",
      "r746"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]",
        "terseLabel": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentIssuanceDate1": {
     "auth_ref": [
      "r29"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date the debt instrument was issued, in CCYY-MM-DD format.",
        "label": "Debt Instrument, Issuance Date",
        "verboseLabel": "Issuance Date"
       }
      }
     },
     "localname": "DebtInstrumentIssuanceDate1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]",
        "terseLabel": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r28",
      "r573"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in CCYY-MM-DD format.",
        "label": "Debt Instrument, Maturity Date",
        "verboseLabel": "Maturity Date"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r30"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]",
        "terseLabel": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r30",
      "r100",
      "r329",
      "r330",
      "r331",
      "r332",
      "r607",
      "r608",
      "r610",
      "r745"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]",
        "terseLabel": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Debt Instruments [Abstract]",
        "terseLabel": "Borrowings:"
       }
      }
     },
     "localname": "DebtInstrumentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtSecuritiesAvailableForSaleAllowanceForCreditLoss": {
     "auth_ref": [
      "r218",
      "r278",
      "r281",
      "r282"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of allowance for credit loss on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Debt Securities, Available-for-sale, Allowance for Credit Loss",
        "verboseLabel": "Allowance For Credit Losses"
       }
      }
     },
     "localname": "DebtSecuritiesAvailableForSaleAllowanceForCreditLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtSecuritiesHeldToMaturityTransferAmount": {
     "auth_ref": [
      "r215"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security, measured at amortized cost, transferred to investment in debt security, measured at fair value, with change in fair value recognized in other comprehensive income (available-for-sale) and net income (trading).",
        "label": "Debt Securities, Held-to-maturity, Transfer, Amount",
        "terseLabel": "Held-to-maturity securities, transferred security, at carrying value",
        "verboseLabel": "Transfer of held to maturity debt securities to available for sale debt securities"
       }
      }
     },
     "localname": "DebtSecuritiesHeldToMaturityTransferAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis": {
     "auth_ref": [
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of deferred compensation related to equity-based payment arrangements. Includes, but is not limited to, employment contracts with one or more selected officers or key employees. Excludes broad group equity-based compensation plans, defined benefit pension plans, defined benefit other postretirement benefit plans and other deferred compensation that is not equivalent to a defined benefit pension plan or a defined benefit other postretirement benefit plan.",
        "label": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Axis]",
        "terseLabel": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Axis]"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualShareBasedPaymentsByTypeOfDeferredCompensationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax": {
     "auth_ref": [
      "r51",
      "r386"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after tax, of accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit.",
        "label": "Accumulated Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss), after Tax",
        "terseLabel": "Unrecognized actuarial gains (losses), net of tax"
       }
      }
     },
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesAfterTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax": {
     "auth_ref": [
      "r51",
      "r386"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax, of accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit.",
        "label": "Defined Benefit Plan, Accumulated Other Comprehensive Income (Loss), Gain (Loss), before Tax",
        "terseLabel": "Unrecognized actuarial gains (losses), before tax"
       }
      }
     },
     "localname": "DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanActuarialGainLossImmediateRecognitionAsComponentInNetPeriodicBenefitCostCredit": {
     "auth_ref": [
      "r343",
      "r381",
      "r409"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss), recognized immediately as component of net periodic benefit (cost) credit, for change in value of benefit obligation or plan assets from experience different from that assumed, change in actuarial assumption, or consequence of temporarily deviating from substantive plan. Includes, but is not limited to, amount in excess of ten percent of greater of fair value of plan assets or benefit obligation.",
        "label": "Defined Benefit Plan, Actuarial Gain (Loss), Immediate Recognition as Component in Net Periodic Benefit (Cost) Credit",
        "negatedLabel": "Recognized net actuarial loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanActuarialGainLossImmediateRecognitionAsComponentInNetPeriodicBenefitCostCredit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease": {
     "auth_ref": [
      "r388"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average rate increase of compensation, used to determine benefit obligation of defined benefit plan. Plan includes, but is not limited to, pay-related defined benefit plan.",
        "label": "Defined Benefit Plan, Assumptions Used Calculating Benefit Obligation, Rate of Compensation Increase",
        "terseLabel": "Rate of compensation increase"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets": {
     "auth_ref": [
      "r389",
      "r414"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average rate of return on plan assets, reflecting average rate of earnings expected on existing plan assets and expected contributions, used to determine net periodic benefit cost of defined benefit plan.",
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Expected Long-term Rate of Return on Plan Assets",
        "terseLabel": "Expected return on assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis": {
     "auth_ref": [
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r392",
      "r415"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by defined benefit plan asset investment.",
        "label": "Defined Benefit Plan, Plan Assets, Category [Axis]",
        "terseLabel": "Defined Benefit Plan, Plan Assets, Category [Axis]"
       }
      }
     },
     "localname": "DefinedBenefitPlanByPlanAssetCategoriesAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Defined Benefit Plan Disclosure [Line Items]",
        "terseLabel": "Defined Benefit Plan Disclosure [Line Items]"
       }
      }
     },
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedAmortizationOfGainLossNextFiscalYear": {
     "auth_ref": [
      "r398"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount included in accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan expected to be recognized in net periodic benefit (cost) credit for fiscal year following most recent annual statement of financial position.",
        "label": "Defined Benefit Plan, Expected Amortization of Gain (Loss), Next Fiscal Year",
        "terseLabel": "Amortization expected to be recognized"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedAmortizationOfGainLossNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "auth_ref": [
      "r343",
      "r380",
      "r408",
      "r415",
      "r416"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan.",
        "label": "Defined Benefit Plan, Expected Return (Loss) on Plan Assets",
        "negatedLabel": "Expected return on plan assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r343",
      "r347",
      "r379",
      "r407",
      "r415",
      "r416"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan.",
        "label": "Defined Benefit Plan, Interest Cost",
        "terseLabel": "Interest cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanInterestCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r377",
      "r405",
      "r415",
      "r416"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan.",
        "label": "Defined Benefit Plan, Net Periodic Benefit Cost (Credit)",
        "totalLabel": "Net periodic pension cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "auth_ref": [
      "r345",
      "r378",
      "r406",
      "r415",
      "r416"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Defined Benefit Plan, Service Cost",
        "terseLabel": "Service cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanServiceCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Defined Benefit Plan, Weighted Average Assumptions Used in Calculating Net Periodic Benefit Cost [Abstract]",
        "terseLabel": "Weighted-Average Assumptions:"
       }
      }
     },
     "localname": "DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of discretionary contributions made by an employer to a defined contribution plan.",
        "label": "Defined Contribution Plan, Employer Discretionary Contribution Amount",
        "terseLabel": "Employer discretionary contribution amount"
       }
      }
     },
     "localname": "DefinedContributionPlanEmployerDiscretionaryContributionAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositAccountMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bank account at depository institution allowing money to be withdrawn or deposited by account holder.",
        "label": "Deposit Account [Member]",
        "terseLabel": "Fees from Deposit Services [Member]"
       }
      }
     },
     "localname": "DepositAccountMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Deposits": {
     "auth_ref": [
      "r704"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate of all deposit liabilities held by the entity, including foreign and domestic, interest and noninterest bearing; may include demand deposits, saving deposits, Negotiable Order of Withdrawal (NOW) and time deposits among others.",
        "label": "Deposits",
        "terseLabel": "Deposits",
        "totalLabel": "Total deposits"
       }
      }
     },
     "localname": "Deposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DepositsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Deposits [Abstract]",
        "terseLabel": "Deposits:"
       }
      }
     },
     "localname": "DepositsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeAssetNotionalAmount": {
     "auth_ref": [
      "r532",
      "r533",
      "r535"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative asset.",
        "label": "Derivative Asset, Notional Amount",
        "terseLabel": "Asset derivatives, notional amount"
       }
      }
     },
     "localname": "DerivativeAssetNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r36",
      "r37",
      "r587"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Asset",
        "terseLabel": "Derivative financial assets"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract [Domain]",
        "terseLabel": "Derivative Contract [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFinancialInstrumentsLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents derivative instrument obligations meeting the definition of a liability which are reported as of the balance sheet date. Derivative instrument obligations are generally measured at fair value, and adjustments to the carrying amount of hedged items reflect changes in their fair value (that is, losses) that are attributable to the risk being hedged and that arise while the hedge is in effect.",
        "label": "Derivative Financial Instruments, Liabilities [Member]",
        "verboseLabel": "Derivative financial liabilities [Member]"
       }
      }
     },
     "localname": "DerivativeFinancialInstrumentsLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFixedInterestRate": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fixed interest rate related to the interest rate derivative.",
        "label": "Derivative, Fixed Interest Rate",
        "verboseLabel": "Derivative instrument pay fixed rate of interest and receive floating rate"
       }
      }
     },
     "localname": "DerivativeFixedInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r542"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement.",
        "label": "Derivative, Gain (Loss) on Derivative, Net",
        "terseLabel": "Derivatives in hedging relationships"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r541",
      "r543",
      "r550",
      "r553"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument [Axis]",
        "terseLabel": "Derivative Instrument [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r568"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative Instruments and Hedging Activities Disclosure [Text Block]",
        "terseLabel": "Derivative Financial Instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r538",
      "r541",
      "r550"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Hedging Relationship [Axis]",
        "terseLabel": "Hedging Relationship [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsInHedgesLiabilitiesAtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate fair value of all derivative liabilities designated as hedging instruments. Includes instruments designated as cash flow hedges, fair value hedges, and hedges of net investments in foreign operations.",
        "label": "Derivative Instruments in Hedges, Liabilities, at Fair Value",
        "terseLabel": "Liability derivatives designated as hedging instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsInHedgesLiabilitiesAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue": {
     "auth_ref": [
      "r544"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of derivative instrument not designated as hedging instrument and classified as an asset.",
        "label": "Derivative Instruments Not Designated as Hedging Instruments, Asset, at Fair Value",
        "terseLabel": "Asset derivatives not designated as hedging instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsAssetAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet": {
     "auth_ref": [
      "r549",
      "r551"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of realized and unrealized gain (loss) of derivative instruments not designated or qualifying as hedging instruments.",
        "label": "Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net",
        "terseLabel": "Derivatives not designated as hedging instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue": {
     "auth_ref": [
      "r544"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value as of the balance sheet date of derivative instrument not designated as hedging instrument and classified as a liability.",
        "label": "Derivative Instruments Not Designated as Hedging Instruments, Liability, at Fair Value",
        "terseLabel": "Liability derivatives not designated as hedging instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsLiabilityAtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r36",
      "r37",
      "r587"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liability",
        "terseLabel": "Derivative financial liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityNotionalAmount": {
     "auth_ref": [
      "r532",
      "r533",
      "r535"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nominal or face amount used to calculate payments on the derivative liability.",
        "label": "Derivative Liability, Notional Amount",
        "terseLabel": "Liability derivatives, notional amount",
        "verboseLabel": "Derivative liabilities notional amount"
       }
      }
     },
     "localname": "DerivativeLiabilityNotionalAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivative [Line Items]",
        "terseLabel": "Derivative [Line Items]"
       }
      }
     },
     "localname": "DerivativeLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeNetLiabilityPositionAggregateFairValue": {
     "auth_ref": [
      "r558"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate fair value amounts of derivative instruments that contain credit-risk-related contingent features that are in a net liability position at the end of the reporting period. For nonderivative instruments that are designated and qualify as hedging instruments, the fair value amounts are the carrying value of the nonderivative hedging instrument, including the adjustment for the foreign currency transaction gain (loss) on that instrument.",
        "label": "Derivative, Net Liability Position, Aggregate Fair Value",
        "terseLabel": "Fair value of interest rate swaps liability net"
       }
      }
     },
     "localname": "DerivativeNetLiabilityPositionAggregateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeTable": {
     "auth_ref": [
      "r531",
      "r534",
      "r535",
      "r538",
      "r539",
      "r546",
      "r550",
      "r562",
      "r563",
      "r566"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule that describes and identifies a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item.",
        "label": "Derivative [Table]",
        "terseLabel": "Derivative [Table]"
       }
      }
     },
     "localname": "DerivativeTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DescriptionOfCreditRiskExposure": {
     "auth_ref": [
      "r531",
      "r534",
      "r535",
      "r538",
      "r539",
      "r561"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the sources of credit risk exposure faced by the entity.",
        "label": "Description of Credit Risk Exposure",
        "terseLabel": "Description of Credit Risk Exposure"
       }
      }
     },
     "localname": "DescriptionOfCreditRiskExposure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DesignatedAsHedgingInstrumentMember": {
     "auth_ref": [
      "r538"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative instrument designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Designated as Hedging Instrument [Member]",
        "terseLabel": "Designated as Hedging Instrument [Member]"
       }
      }
     },
     "localname": "DesignatedAsHedgingInstrumentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r479"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Disclosure of Compensation Related Costs, Share-based Payments [Text Block]",
        "terseLabel": "Stock Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Disclosure of Compensation Related Costs, Share-based Payments [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DividendsCommonStockCash": {
     "auth_ref": [
      "r333"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash.",
        "label": "Dividends, Common Stock, Cash",
        "negatedLabel": "Cash dividends"
       }
      }
     },
     "localname": "DividendsCommonStockCash",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DoubtfulMember": {
     "auth_ref": [
      "r194",
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A category of financing receivables that have all the weaknesses inherent in those classified as substandard, with the added characteristic that the weaknesses make collection or liquidation in full, on the basis of currently existing facts, conditions, and values, highly questionable and improbable.",
        "label": "Doubtful [Member]",
        "terseLabel": "Doubtful [Member]"
       }
      }
     },
     "localname": "DoubtfulMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EarningsPerShareAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Earnings Per Share [Abstract]",
        "terseLabel": "Earnings per common share:"
       }
      }
     },
     "localname": "EarningsPerShareAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r68",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r125",
      "r128",
      "r133",
      "r134",
      "r135",
      "r139",
      "r140",
      "r717",
      "r761"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Basic",
        "verboseLabel": "Earnings per basic common share"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r68",
      "r116",
      "r117",
      "r118",
      "r119",
      "r120",
      "r128",
      "r133",
      "r134",
      "r135",
      "r139",
      "r140",
      "r717",
      "r761"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Diluted",
        "verboseLabel": "Earnings per diluted common share"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareTextBlock": {
     "auth_ref": [
      "r136",
      "r137",
      "r138",
      "r141"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for earnings per share.",
        "label": "Earnings Per Share [Text Block]",
        "verboseLabel": "Earnings Per Share"
       }
      }
     },
     "localname": "EarningsPerShareTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShare"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r481"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Reconciliation, Percent",
        "verboseLabel": "Effective tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquipmentExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 25.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents equipment expense including depreciation, repairs, rentals, and service contract costs. This item also includes equipment purchases which do not qualify for capitalization in accordance with the entity's accounting policy. This item may also include furniture expenses.",
        "label": "Equipment Expense",
        "terseLabel": "Equipment expense"
       }
      }
     },
     "localname": "EquipmentExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Equity [Abstract]"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain": {
     "auth_ref": [
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Deferred compensation related to equity-based payment arrangements. Includes, but is not limited to, employment contracts with one or more selected officers or key employees. Excludes broad group equity-based compensation plans, defined benefit pension plans, defined benefit other postretirement benefit plans and other deferred compensation that is not equivalent to a defined benefit pension plan or a defined benefit other postretirement benefit plan.",
        "label": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Domain]",
        "terseLabel": "Equity-Based Arrangements, Individual Contracts, Type of Deferred Compensation [Domain]"
       }
      }
     },
     "localname": "EquityBasedArrangementsIndividualContractsTypeOfDeferredCompensationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r106",
      "r107",
      "r109",
      "r112",
      "r121",
      "r124",
      "r142",
      "r248",
      "r328",
      "r333",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r605",
      "r771",
      "r772",
      "r773"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]",
        "terseLabel": "Equity Component [Domain]",
        "verboseLabel": "Statement Equity Components[Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityFundsMember": {
     "auth_ref": [
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "An investment that pools funds from many investors to invest in a combination of underlying investments, primarily equity investments.",
        "label": "Equity Funds [Member]",
        "terseLabel": "Equity Mutual Funds [Member]"
       }
      }
     },
     "localname": "EquityFundsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquitySecuritiesFvNi": {
     "auth_ref": [
      "r585"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Equity Securities, FV-NI",
        "terseLabel": "Equity securities"
       }
      }
     },
     "localname": "EquitySecuritiesFvNi",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesMember": {
     "auth_ref": [
      "r4",
      "r9",
      "r242",
      "r747",
      "r801",
      "r802",
      "r803"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants.",
        "label": "Equity Securities [Member]",
        "terseLabel": "Marketable Equity Securities [Member]"
       }
      }
     },
     "localname": "EquitySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r587"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Estimate of Fair Value Measurement [Member]",
        "terseLabel": "Fair Value [Member]"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExpenseRelatedToDistributionOrServicingAndUnderwritingFees": {
     "auth_ref": [
      "r725"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 31.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Expense related to distribution, servicing and underwriting fees.",
        "label": "Expense Related to Distribution or Servicing and Underwriting Fees",
        "terseLabel": "Mortgage loan servicing expense and impairment"
       }
      }
     },
     "localname": "ExpenseRelatedToDistributionOrServicingAndUnderwritingFees",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ExtendedMaturityMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan modification for an extension of the term of a loan in which it must be paid.",
        "label": "Extended Maturity [Member]",
        "terseLabel": "Extended maturity [Member]"
       }
      }
     },
     "localname": "ExtendedMaturityMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExtinguishmentOfDebtAxis": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information pertaining to the debt extinguished including the amount of gain (loss), the income tax effect on the gain (loss), and the amount of gain (loss), net or the related income tax, by debt instrument.",
        "label": "Extinguishment of Debt [Axis]",
        "terseLabel": "Extinguishment of Debt [Axis]"
       }
      }
     },
     "localname": "ExtinguishmentOfDebtAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ExtinguishmentOfDebtTypeDomain": {
     "auth_ref": [
      "r323"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of debt extinguished.",
        "label": "Extinguishment of Debt, Type [Domain]",
        "terseLabel": "Extinguishment of Debt, Type [Domain]"
       }
      }
     },
     "localname": "ExtinguishmentOfDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock": {
     "auth_ref": [
      "r569",
      "r570",
      "r571"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities by class, including financial instruments measured at fair value that are classified in shareholders' equity, if any, that are measured at fair value on a nonrecurring basis in periods after initial recognition (for example, impaired assets). Disclosures may include, but are not limited to: (a) the fair value measurements recorded and the reasons for the measurements and (b) the level within the fair value hierarchy in which the fair value measurements are categorized in their entirety (levels 1, 2, 3).",
        "label": "Fair Value Measurements, Nonrecurring [Table Text Block]",
        "terseLabel": "Summary of Financial Assets Measured at Fair Value on Nonrecurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnNonrecurringBasisTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r579"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3) and still held.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Change in Unrealized Gain (Loss)",
        "terseLabel": "The amount of total gains or losses for the period included in earnings (or changes in net assets) attributable to the change in unrealized gains or losses relating to assets still held at reporting date"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain": {
     "auth_ref": [
      "r575"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Class of asset.",
        "label": "Asset Class [Domain]",
        "terseLabel": "Asset Class [Domain]"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock": {
     "auth_ref": [
      "r575",
      "r582"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the fair value measurement of assets using significant unobservable inputs (Level 3), a reconciliation of the beginning and ending balances, separately presenting changes during the period attributable to the following: (1) total gains or losses for the period (realized and unrealized), segregating those gains or losses included in earnings (or changes in net assets) and gains or losses recognized in other comprehensive income (loss), and a description of where those gains or losses included in earnings (or changes in net assets) are reported in the statement of income (or activities); (2) purchases, sales, issues, and settlements (each type disclosed separately); and (3) transfers in and transfers out of Level 3 (for example, transfers due to changes in the observability of significant inputs), by class of asset.",
        "label": "Fair Value, Assets Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Schedule of Additional Information about Financial Assets and Liabilities Measured at Fair Value Utilized Level 3"
       }
      }
     },
     "localname": "FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]",
        "terseLabel": "Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByAssetClassAxis": {
     "auth_ref": [
      "r569",
      "r582"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by class of asset.",
        "label": "Asset Class [Axis]",
        "terseLabel": "Asset Class [Axis]"
       }
      }
     },
     "localname": "FairValueByAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r569",
      "r588",
      "r589"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table]",
        "terseLabel": "Fair Value, by Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r569",
      "r588"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value, by Balance Sheet Grouping [Table Text Block]",
        "terseLabel": "Summary of Estimated Fair Values of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r415",
      "r570",
      "r637",
      "r638",
      "r639"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Hierarchy and NAV [Axis]",
        "terseLabel": "Fair Value Hierarchy and NAV [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByLiabilityClassAxis": {
     "auth_ref": [
      "r581",
      "r582"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by class of liability.",
        "label": "Liability Class [Axis]",
        "terseLabel": "Liability Class [Axis]"
       }
      }
     },
     "localname": "FairValueByLiabilityClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r569",
      "r583"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r569",
      "r570",
      "r572",
      "r573",
      "r584"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]",
        "terseLabel": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r581"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value Disclosures [Text Block]",
        "terseLabel": "Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueHedgingMember": {
     "auth_ref": [
      "r536"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A hedge of the exposure to changes in the fair value of a recognized asset or liability, or of an unrecognized firm commitment, that are attributable to a particular risk.",
        "label": "Fair Value Hedging [Member]",
        "terseLabel": "Fair Value Hedging [Member]"
       }
      }
     },
     "localname": "FairValueHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r366",
      "r368",
      "r373",
      "r415",
      "r570",
      "r637"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Fair Value, Inputs, Level 1 [Member]",
        "terseLabel": "Quoted Prices in Active Markets for Identical Assets (Level 1) [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r366",
      "r368",
      "r373",
      "r415",
      "r570",
      "r638"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Fair Value, Inputs, Level 2 [Member]",
        "terseLabel": "Significant Other Observable Inputs (Level 2) [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r415",
      "r570",
      "r639"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Inputs, Level 3 [Member]",
        "terseLabel": "Significant Unobservable Inputs (Level 3) [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain": {
     "auth_ref": [
      "r575"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents classes of liabilities measured and disclosed at fair value.",
        "label": "Fair Value by Liability Class [Domain]",
        "terseLabel": "Fair Value by Liability Class [Domain]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationByLiabilityClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Fair Value, Measurement Frequency [Domain]",
        "terseLabel": "Fair Value, Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1": {
     "auth_ref": [
      "r576"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings (or changes in net assets)"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInEarnings1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "auth_ref": [
      "r577"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in other comprehensive income (OCI) from asset measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "terseLabel": "Included in other comprehensive income"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetGainLossIncludedInOtherComprehensiveIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues": {
     "auth_ref": [
      "r578"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of issuances of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Issuances",
        "terseLabel": "Originations"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetIssues",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlements": {
     "auth_ref": [
      "r578"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of purchases, (sales), issuances and (settlements) of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Purchases, (Sales), Issuances, (Settlements)",
        "terseLabel": "Acquired in Carolina Financial merger"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetPurchasesSalesIssuancesSettlements",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales": {
     "auth_ref": [
      "r578"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of sale of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Sales",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetSales",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of transfer of financial instrument classified as an asset into (out of) level 3 of the fair value hierarchy.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset, Transfers, Net",
        "terseLabel": "Transfers other"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetTransfersNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue": {
     "auth_ref": [
      "r575"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of financial instrument classified as an asset measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Asset Value",
        "periodEndLabel": "Balance, end of period",
        "periodStartLabel": "Balance, beginning of period"
       }
      }
     },
     "localname": "FairValueMeasurementWithUnobservableInputsReconciliationRecurringBasisAssetValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r415",
      "r637",
      "r638",
      "r639"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value Hierarchy and NAV [Domain]",
        "terseLabel": "Fair Value Hierarchy and NAV [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsNonrecurringMember": {
     "auth_ref": [
      "r569",
      "r570",
      "r572",
      "r573",
      "r580",
      "r584"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Infrequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, not frequently measured at fair value.",
        "label": "Fair Value, Measurements, Nonrecurring [Member]",
        "terseLabel": "Fair Value, Measurements, Nonrecurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsNonrecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r581",
      "r584"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Fair Value, Measurements, Recurring [Member]",
        "terseLabel": "Fair Value, Measurements, Recurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueOptionAggregateDifferencesLoansAndLongTermReceivables": {
     "auth_ref": [
      "r590"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the difference between the aggregate fair value and the aggregate unpaid principal balance of loans and long-term receivables (other than securities categorized as trading, available-for-sale or held-to-maturity) that have contractual principal amounts and for which the fair value option has been elected.",
        "label": "Fair Value, Option, Aggregate Differences, Loans and Long-term Receivables",
        "terseLabel": "Loans held for sale, fair value over/(under) unpaid principal balance"
       }
      }
     },
     "localname": "FairValueOptionAggregateDifferencesLoansAndLongTermReceivables",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfDifferenceBetweenAggregateFairValueAndRemainingContractualPrincipalOutstandingForFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionChangesInFairValueGainLoss1": {
     "auth_ref": [
      "r593"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings.",
        "label": "Fair Value, Option, Changes in Fair Value, Gain (Loss)",
        "terseLabel": "Income from mortgage banking activities"
       }
      }
     },
     "localname": "FairValueOptionChangesInFairValueGainLoss1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOptionQuantitativeDisclosuresLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Option, Quantitative Disclosures [Line Items]",
        "terseLabel": "Fair Value, Option, Quantitative Disclosures [Line Items]"
       }
      }
     },
     "localname": "FairValueOptionQuantitativeDisclosuresLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueOptionQuantitativeDisclosuresTextBlock": {
     "auth_ref": [
      "r592",
      "r594",
      "r595",
      "r596"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information about asset and liability measured at fair value under fair value option.",
        "label": "Fair Value Option, Disclosures [Table Text Block]",
        "terseLabel": "Summary of Difference Between Aggregate Fair Value and Remaining Contractual Principal Outstanding for Financial Instruments for which Fair Value Option has been Elected"
       }
      }
     },
     "localname": "FairValueOptionQuantitativeDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueOptionTextBlock": {
     "auth_ref": [
      "r597"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a company's election to apply the fair value option for measurement and reporting of eligible financial assets and liabilities (as defined), as well as certain other eligible items (as defined) included in the statement of financial position, whether such option is elected for a single eligible item or a group of similar eligible items and is in addition to other disclosures concerning fair value which the company may be required to provide.  Such disclosure might be expected to include: (1) for items included in the statement of financial position: (a) the reasons for electing a fair value option for each eligible item or group of similar eligible items; (b) if the fair value option is elected for some but not all eligible items within a group of similar eligible items: (i) a description of those similar items and the reasons for partial election and (ii) information of how the group of similar items relates to individual balance sheet line items; (c) for each line item in the statement of financial position that includes an item or items for which the fair value option has been elected: (i) information of how each line item in the statement of financial position relates to major categories of assets and liabilities presented in accordance with other fair value disclosures and (ii) the aggregate carrying amount of ineligible items included in each line item in the balance sheet, if any; (d) the difference between the aggregate fair value and the aggregate unpaid principal balance (assuming contractual principal amounts and fair value option elected) of: (i) loans and long-term receivables (other than securities otherwise reported at fair value) and (ii) long-term debt instruments; (e) for loans held as assets for which the fair value option has been elected: (i) the aggregate fair value of loans that are 90 days or more past due, (ii) if the policy is to recognize interest income separately from other changes in fair value, the aggregate fair value of loans in nonaccrual status, and (iii) the difference between the aggregate fair value and the aggregate unpaid principal balance for loans that are 90 days or more past due, in nonaccrual status, or both; (f) for investments that would have been accounted for under the equity method if the entity had not chosen to apply the fair value option, the information required for such investments, if material either individually or in the aggregate; (2) for items included in the income statement: (a) the amounts of gains and losses from fair value changes included in earnings and in which line in the income statement those gains and losses are reported whether or not combined with gains and losses from items required to be accounted for at fair value; (b) a description of how interest and dividends are measured and where they are reported in the income statement; (c) for loans and other receivables held as assets: (i) the estimated amount of gains or losses included in earnings attributable to changes in instrument-specific credit risk and (ii) how the gains or losses attributable to changes in instrument-specific credit risk were determined; (d) for liabilities with fair values that have been significantly affected during the reporting period by changes in the instrument-specific credit risk: (i) the estimated amount of gains and losses from fair value changes included in earnings that are attributable to changes in the instrument-specific credit risk, (ii) qualitative information about the reasons for those changes, and (iii) how the gains and losses attributable to changes in instrument-specific credit risk were determined; and (3) certain other disclosures as required or determined to be provided.",
        "label": "Fair Value, Option [Text Block]",
        "terseLabel": "Schedule of Changes in Fair Value Included in Earnings of Financial Instruments for which Fair Value Option has been Elected"
       }
      }
     },
     "localname": "FairValueOptionTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FederalDepositInsuranceCorporationPremiumExpense": {
     "auth_ref": [
      "r725"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 28.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense for Federal Deposit Insurance Corporation (FDIC) insurance.",
        "label": "Federal Deposit Insurance Corporation Premium Expense",
        "terseLabel": "FDIC insurance expense"
       }
      }
     },
     "localname": "FederalDepositInsuranceCorporationPremiumExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalFundsPurchased": {
     "auth_ref": [
      "r705"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of short term borrowing where a bank borrows, at the federal funds rate, from another bank.",
        "label": "Federal Funds Purchased",
        "verboseLabel": "Federal funds purchased"
       }
      }
     },
     "localname": "FederalFundsPurchased",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalFundsSold": {
     "auth_ref": [
      "r709"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 21.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount outstanding of funds lent to other depository institutions, securities brokers, or securities dealers in the form of Federal Funds sold; for example, immediately available funds lent under agreements or contracts that mature in one business day or roll over under a continuing contract, regardless of the nature of the transaction or the collateral involved, excluding overnight lending for commercial and industrial purposes. Also include Federal Funds sold under agreements to resell on a gross basis, excluding (1) sales of term Federal Funds, (2) due bills representing purchases of securities or other assets by the reporting bank that have not yet been delivered and similar instruments, (3) resale agreements that mature in more than one business day involving assets other than securities, and (4) yield maintenance dollar repurchase agreements.",
        "label": "Federal Funds Sold",
        "terseLabel": "Federal funds sold"
       }
      }
     },
     "localname": "FederalFundsSold",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesActivityForYearAverageInterestRateForYear": {
     "auth_ref": [
      "r706"
     ],
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Federal Home Loan Bank, Advances, Activity for Year, Average Interest Rate for Year",
        "documentation": "The calculated weighted average interest rate for Federal Home Loan Bank advances for the period ended as of the Balance Sheet date.",
        "label": "Federal Home Loan Bank, Advances, Activity for Year, Average Interest Rate for Year"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesActivityForYearAverageInterestRateForYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds": {
     "auth_ref": [
      "r27",
      "r706",
      "r743"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of advances or credit lines available from the Federal Home Loan Bank (FHLB).",
        "label": "Federal Home Loan Bank, Advances, General Debt Obligations, Amount of Available, Unused Funds",
        "terseLabel": "Unused borrowing amount"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresAmountOfAvailableUnusedFunds",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresRepaymentAndPenalties": {
     "auth_ref": [
      "r743",
      "r745"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 30.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of repayments and penalties incurred in the satisfaction or roll-over of Federal Home Loan Bank (FHLB) advance.",
        "label": "Federal Home Loan Bank, Advances, General Debt Obligations, Disclosures, Repayment and Penalties",
        "verboseLabel": "FHLB prepayment penalties"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesGeneralDebtObligationsDisclosuresRepaymentAndPenalties",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FederalHomeLoanBankAdvancesMember": {
     "auth_ref": [
      "r706"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Borrowings from the Federal Home Loan Bank, which are primarily used to cover shortages in the required reserve balance and also in times of liquidity shortages. The member institution executes a promissory note, which is generally collateralized by government securities to the Federal Reserve or loans.",
        "label": "Federal Home Loan Bank Advances [Member]"
       }
      }
     },
     "localname": "FederalHomeLoanBankAdvancesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FederalHomeLoanBankBorrowingsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This item represents the amount that a bank with insufficient reserves borrows, from the Federal Home Loan Bank [system], to meet its reserve requirements.",
        "label": "Federal Home Loan Bank Borrowings [Member]",
        "terseLabel": "Federal Home Loan Bank Borrowings [Member]"
       }
      }
     },
     "localname": "FederalHomeLoanBankBorrowingsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FeesAndCommissionsMortgageBankingAndServicing": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 19.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Income from mortgage banking activities (fees and commissions) and servicing real estate mortgages, credit cards, and other financial assets held by others net of any related impairment of capitalized service costs. Also includes any premiums received in lieu of regular servicing fees on such loans only as earned over the life of the loans.",
        "label": "Fees and Commissions, Mortgage Banking and Servicing",
        "terseLabel": "Mortgage loan servicing income"
       }
      }
     },
     "localname": "FeesAndCommissionsMortgageBankingAndServicing",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiduciaryAndTrustMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Person or entity with legal duty to act in best interest of client or beneficiary of trust and fiduciary relationship in which one party gives another party right to hold title to asset for benefit of beneficiary.",
        "label": "Fiduciary and Trust [Member]",
        "terseLabel": "Fees from Brokerage Services [Member]"
       }
      }
     },
     "localname": "FiduciaryAndTrustMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinanceLeaseLiability": {
     "auth_ref": [
      "r616",
      "r627"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease.",
        "label": "Finance Lease, Liability",
        "terseLabel": "Net lease liabilities"
       }
      }
     },
     "localname": "FinanceLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "auth_ref": [
      "r615"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease.",
        "label": "Finance Lease, Right-of-Use Asset",
        "terseLabel": "Net lease assets"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancialAssetAcquiredWithCreditDeteriorationMember": {
     "auth_ref": [
      "r208"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial asset acquired with deteriorated credit quality.",
        "label": "Financial Asset Acquired with Credit Deterioration [Member]",
        "terseLabel": "Loans Acquired with Deteriorated Credit Quality [Member]"
       }
      }
     },
     "localname": "FinancialAssetAcquiredWithCreditDeteriorationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialAssetOtherThanFinancialAssetAcquiredWithCreditDeteriorationMember": {
     "auth_ref": [
      "r208"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial asset other than financial asset acquired with credit deterioration.",
        "label": "Financial Asset, Other than Financial Asset Acquired with Credit Deterioration [Member]"
       }
      }
     },
     "localname": "FinancialAssetOtherThanFinancialAssetAcquiredWithCreditDeteriorationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r231",
      "r233",
      "r252",
      "r255",
      "r256",
      "r261",
      "r267",
      "r279",
      "r280",
      "r283",
      "r284",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r654",
      "r655",
      "r656",
      "r657",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r668",
      "r669",
      "r670"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]",
        "terseLabel": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialServiceOtherMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial assistance, including, but not limited to, management and maintenance of depositor account, credit card, merchant discount, trust, investment and insurance, classified as other.",
        "label": "Financial Service, Other [Member]",
        "terseLabel": "Other Service Charges, Commissions, and Fees [Member]"
       }
      }
     },
     "localname": "FinancialServiceOtherMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLosses": {
     "auth_ref": [
      "r186",
      "r251",
      "r253",
      "r254",
      "r702"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of allowance for credit loss on financing receivable. Excludes allowance for financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable, Allowance for Credit Losses",
        "terseLabel": "Allowance for Loan Losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment": {
     "auth_ref": [
      "r190"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The valuation allowance for financing receivables that are expected to be uncollectible that were collectively evaluated for impairment.",
        "label": "Financing Receivable, Allowance for Credit Losses, Collectively Evaluated for Impairment",
        "terseLabel": "Allowance for Loan Losses, collectively evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesCollectivelyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1": {
     "auth_ref": [
      "r190"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of valuation allowance for financing receivables that are expected to be uncollectible that were individually evaluated for impairment.",
        "label": "Financing Receivable, Allowance for Credit Losses, Individually Evaluated for Impairment",
        "terseLabel": "Allowance for Loan Losses, individually evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesIndividuallyEvaluatedForImpairment1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Financing Receivable, Allowance for Credit Losses [Line Items]",
        "terseLabel": "Financing Receivable, Allowance for Credit Losses [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease": {
     "auth_ref": [
      "r185",
      "r255"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss on financing receivable.",
        "label": "Financing Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total",
        "terseLabel": "Allowance for credit losses"
       }
      }
     },
     "localname": "FinancingReceivableAllowanceForCreditLossesPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCollectivelyEvaluatedForImpairment": {
     "auth_ref": [
      "r191"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The balance of financing receivables that were collectively evaluated for impairment.",
        "label": "Financing Receivable, Collectively Evaluated for Impairment",
        "terseLabel": "Financing receivables, collectively evaluated for impairment"
       }
      }
     },
     "localname": "FinancingReceivableCollectivelyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableCreditQualityIndicatorsTableTextBlock": {
     "auth_ref": [
      "r194",
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of financing receivables by credit quality indicator. The credit quality indicator is a statistic about the credit quality of financing receivables. Examples include, but not limited to, consumer credit risk scores, credit-rating-agency ratings, an entity's internal credit risk grades, loan-to-value ratios, collateral, collection experience and other internal metrics.",
        "label": "Financing Receivable Credit Quality Indicators [Table Text Block]",
        "terseLabel": "Schedule of Credit Quality Indicators Information, by Class of Loans"
       }
      }
     },
     "localname": "FinancingReceivableCreditQualityIndicatorsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinancingReceivableIndividuallyEvaluatedForImpairment": {
     "auth_ref": [
      "r191"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The balance of financing receivables that were individually evaluated for impairment.",
        "label": "Financing Receivable, Individually Evaluated for Impairment",
        "terseLabel": "Financing receivables, individually evaluated for impairment",
        "verboseLabel": "Individually assessed loans"
       }
      }
     },
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableModificationsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Financing Receivable, Modifications [Line Items]",
        "terseLabel": "Financing Receivable, Modifications [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableModificationsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableModificationsNumberOfContracts2": {
     "auth_ref": [
      "r196"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of financing receivables that have been modified by troubled debt restructurings.",
        "label": "Financing Receivable, Modifications, Number of Contracts",
        "verboseLabel": "Number of Contracts"
       }
      }
     },
     "localname": "FinancingReceivableModificationsNumberOfContracts2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_FinancingReceivableNonaccrualInterestIncome": {
     "auth_ref": [
      "r258"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest income on financing receivable on nonaccrual status.",
        "label": "Financing Receivable, Nonaccrual, Interest Income",
        "terseLabel": "Interest Income Recognized"
       }
      }
     },
     "localname": "FinancingReceivableNonaccrualInterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableNonaccrualNoAllowance": {
     "auth_ref": [
      "r260"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of financing receivable on nonaccrual status with no allowance for credit loss.",
        "label": "Financing Receivable, Nonaccrual, No Allowance",
        "verboseLabel": "With No Related Allowance for Credit Losses"
       }
      }
     },
     "localname": "FinancingReceivableNonaccrualNoAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentAxis": {
     "auth_ref": [
      "r252",
      "r255",
      "r268"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by the level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Axis]",
        "terseLabel": "Financing Receivable Portfolio Segment [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablePortfolioSegmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Level at which an entity develops and documents a systematic methodology to determine its allowance for credit losses.",
        "label": "Financing Receivable Portfolio Segment [Domain]",
        "terseLabel": "Financing Receivable Portfolio Segment [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablePortfolioSegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate": {
     "auth_ref": [
      "r263"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of allowance for credit loss at acquisition date of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Allowance for Credit Loss at Acquisition Date",
        "presentationGuidance": "Business acquisition allowances for loans and lease losses including reserve for unfunded commitments for assets with credit deterioration",
        "terseLabel": "Allowance for credit losses at acquisition",
        "verboseLabel": "Initial allowance for PCD loans (acquired during the period)"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAllowanceForCreditLossAtAcquisitionDate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue": {
     "auth_ref": [
      "r265"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount at par value of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Par Value",
        "terseLabel": "Par value (UPB) of acquired PCD loans at acquisition"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtParValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice": {
     "auth_ref": [
      "r262"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount at purchase price of financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Amount at Purchase Price",
        "terseLabel": "Purchase price of PCD loans at acquisition"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationAmountAtPurchasePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium": {
     "auth_ref": [
      "r264"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of discount (premium) attributable to other factors on financing receivable purchased with credit deterioration.",
        "label": "Financing Receivable, Purchased with Credit Deterioration, Discount (Premium)",
        "terseLabel": "Non-credit discount at acquisition",
        "verboseLabel": "Business acquisition loans purchase deterioration credit loans acquired discount due to diiferences in purchase consideration"
       }
      }
     },
     "localname": "FinancingReceivablePurchasedWithCreditDeteriorationDiscountPremium",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfReconciliationOfDifferenceBetweenPurchasePriceAndParValueOfPurchaseCreditLoansAcquiredDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing": {
     "auth_ref": [
      "r200",
      "r259",
      "r276"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of financing receivable 90 days or more past due and still accruing.",
        "label": "Financing Receivable, Recorded Investment, 90 Days Past Due and Still Accruing",
        "terseLabel": "Loans, Recorded Investment >90 Days &amp; Accruing",
        "verboseLabel": "Recorded Investment > 90 Days &amp; Accruing"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestment90DaysPastDueAndStillAccruing",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis": {
     "auth_ref": [
      "r195",
      "r201",
      "r202",
      "r256",
      "r261",
      "r267",
      "r269",
      "r270",
      "r275",
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by class of financing receivable determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Class of Financing Receivable [Axis]",
        "terseLabel": "Class of Financing Receivable, Type [Axis]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financing receivables determined on the basis of initial measurement attribute, risk characteristics and method of monitoring and assessing credit risk.",
        "label": "Class of Financing Receivable [Domain]",
        "terseLabel": "Class of Financing Receivable, Type [Domain]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentClassOfFinancingReceivableDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentCurrent": {
     "auth_ref": [
      "r202",
      "r256",
      "r276"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of financing receivable not past due.",
        "label": "Financing Receivable, Recorded Investment, Current",
        "terseLabel": "Loans, Current &amp; Other"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Financing Receivable, Recorded Investment [Line Items]",
        "terseLabel": "Financing Receivable, Recorded Investment [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentNonaccrualStatus": {
     "auth_ref": [
      "r199",
      "r257"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of financing receivable on nonaccrual status.",
        "label": "Financing Receivable, Recorded Investment, Nonaccrual Status",
        "verboseLabel": "Nonaccruals"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentNonaccrualStatus",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentPastDue": {
     "auth_ref": [
      "r202",
      "r256",
      "r276"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of financing receivable past due.",
        "label": "Financing Receivable, Recorded Investment, Past Due",
        "terseLabel": "Loans, Total Past Due"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivableRecordedInvestmentPastDueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Financing Receivable, Recorded Investment, Past Due [Line Items]",
        "terseLabel": "Financing Receivable, Recorded Investment, Past Due [Line Items]"
       }
      }
     },
     "localname": "FinancingReceivableRecordedInvestmentPastDueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesEqualToGreaterThan90DaysPastDueMember": {
     "auth_ref": [
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Financial asset equal to or greater than 90 days past due.",
        "label": "Financing Receivables, Equal to Greater than 90 Days Past Due [Member]",
        "terseLabel": "Financing Receivables, Equal to Greater than 90 Days Past Due [Member]"
       }
      }
     },
     "localname": "FinancingReceivablesEqualToGreaterThan90DaysPastDueMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FinancingReceivablesImpairedTroubledDebtRestructuringWriteDown": {
     "auth_ref": [
      "r209"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reflects the amount of the write-down related to a troubled debt restructuring.",
        "label": "Financing Receivables, Impaired, Troubled Debt Restructuring, Write-down",
        "terseLabel": "Troubled debt restructuring"
       }
      }
     },
     "localname": "FinancingReceivablesImpairedTroubledDebtRestructuringWriteDown",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueAxis": {
     "auth_ref": [
      "r256",
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by time period financial asset is past due.",
        "label": "Financing Receivables, Period Past Due [Axis]",
        "terseLabel": "Financing Receivables, Period Past Due [Axis]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancingReceivablesPeriodPastDueDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period in which financial asset is past due. Element name and standard label in Financial Asset, [numeric lower end] to [numeric higher end] [date measure] Past Due [Member] or Financial Asset, Greater Than [low end numeric value] [date measure] Past Due [Member] or Financial Asset, Less Than [high end numeric value] [date measure] Past Due [Member] formats.",
        "label": "Financing Receivables, Period Past Due [Domain]",
        "terseLabel": "Financing Receivables, Period Past Due [Domain]"
       }
      }
     },
     "localname": "FinancingReceivablesPeriodPastDueDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization": {
     "auth_ref": [
      "r294"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Accumulated amount of amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Accumulated Amortization",
        "terseLabel": "Accumulated Amortization"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAccumulatedAmortization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in remainder of current fiscal year.",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Remainder of Fiscal Year",
        "terseLabel": "2020"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseRemainderOfFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour": {
     "auth_ref": [
      "r295"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Year Four",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree": {
     "auth_ref": [
      "r295"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Year Three",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo": {
     "auth_ref": [
      "r295"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of amortization for assets, excluding financial assets and goodwill, lacking physical substance with finite life expected to be recognized in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finite-Lived Intangible Assets, Amortization Expense, Year Two",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsScheduleOfAnticipatedAmortizationExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis": {
     "auth_ref": [
      "r291",
      "r292",
      "r294",
      "r296",
      "r673",
      "r677"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by major type or class of finite-lived intangible assets.",
        "label": "Finite-Lived Intangible Assets by Major Class [Axis]",
        "terseLabel": "Finite-Lived Intangible Assets by Major Class [Axis]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsByMajorClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsGross": {
     "auth_ref": [
      "r294",
      "r677"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before amortization of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Finite-Lived Intangible Assets, Gross",
        "terseLabel": "Gross Carrying Amount"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Finite-Lived Intangible Assets [Line Items]",
        "terseLabel": "Finite-Lived Intangible Assets [Line Items]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain": {
     "auth_ref": [
      "r291",
      "r293"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The major class of finite-lived intangible asset (for example, patents, trademarks, copyrights, etc.) A major class is composed of intangible assets that can be grouped together because they are similar, either by their nature or by their use in the operations of a company.",
        "label": "Finite-Lived Intangible Assets, Major Class Name [Domain]",
        "terseLabel": "Finite-Lived Intangible Assets, Major Class Name [Domain]"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsMajorClassNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1": {
     "auth_ref": [
      "r673"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Remaining amortization period of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Finite-Lived Intangible Assets, Remaining Amortization Period",
        "verboseLabel": "Business combination finite lived tangible assets remaining useful life on premium paid"
       }
      }
     },
     "localname": "FiniteLivedIntangibleAssetsRemainingAmortizationPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_Goodwill": {
     "auth_ref": [
      "r286",
      "r287",
      "r694"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 34.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "disclosureGuidance": "Preliminary resulting goodwill",
        "documentation": "Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized.",
        "label": "Goodwill",
        "periodEndLabel": "Goodwill at june 30, 2020",
        "periodStartLabel": "Goodwill at December 31, 2019",
        "terseLabel": "Goodwill",
        "verboseLabel": "Goodwill not subject to amortization"
       }
      }
     },
     "localname": "Goodwill",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAcquiredDuringPeriod": {
     "auth_ref": [
      "r288"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Business combination intangible assets acquired goodwill",
        "documentation": "Amount of increase in asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized resulting from a business combination.",
        "label": "Goodwill, Acquired During Period",
        "terseLabel": "Preliminary addition to goodwill from Carolina Financial acquisition"
       }
      }
     },
     "localname": "GoodwillAcquiredDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Goodwill and Intangible Assets Disclosure [Abstract]"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_GoodwillAndIntangibleAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for goodwill and intangible assets.",
        "label": "Goodwill and Intangible Assets Disclosure [Text Block]",
        "terseLabel": "Goodwill and Other Intangibles"
       }
      }
     },
     "localname": "GoodwillAndIntangibleAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssets"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_GoodwillLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Goodwill [Line Items]",
        "terseLabel": "Goodwill [Line Items]"
       }
      }
     },
     "localname": "GoodwillLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgedAssetDiscontinuedFairValueHedgeCumulativeIncreaseDecrease": {
     "auth_ref": [
      "r557"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk, remaining after discontinued hedge.",
        "label": "Hedged Asset, Discontinued Fair Value Hedge, Cumulative Increase (Decrease)",
        "terseLabel": "Cumulative Amount of Fair Value Hedging Adjustment Remaining for any Hedged Assets/(Liabilities) for which Hedge Accounting has been Discontinued"
       }
      }
     },
     "localname": "HedgedAssetDiscontinuedFairValueHedgeCumulativeIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgedAssetFairValueHedge": {
     "auth_ref": [
      "r555"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of asset hedged in fair value hedging relationship.",
        "label": "Hedged Asset, Fair Value Hedge",
        "terseLabel": "Carrying Amount of the Hedged Assets/(Liabilities)"
       }
      }
     },
     "localname": "HedgedAssetFairValueHedge",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease": {
     "auth_ref": [
      "r556"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk.",
        "label": "Hedged Asset, Fair Value Hedge, Cumulative Increase (Decrease)",
        "terseLabel": "Cumulative Amount of Fair Value Hedging Adjustment Included in the Carrying Amount of the Hedged Assets/(Liabilities)"
       }
      }
     },
     "localname": "HedgedAssetFairValueHedgeCumulativeIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingDesignationAxis": {
     "auth_ref": [
      "r538",
      "r554"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Axis]",
        "terseLabel": "Hedging Designation [Axis]"
       }
      }
     },
     "localname": "HedgingDesignationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_HedgingDesignationDomain": {
     "auth_ref": [
      "r538"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Designation of purpose of derivative instrument.",
        "label": "Hedging Designation [Domain]",
        "terseLabel": "Hedging Designation [Domain]"
       }
      }
     },
     "localname": "HedgingDesignationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r538"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]",
        "terseLabel": "Hedging Relationship [Domain]"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_HeldToMaturitySecurities": {
     "auth_ref": [
      "r211",
      "r228",
      "r701"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 28.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity",
        "positiveTerseLabel": "Securities held to maturity, net of allowance for credit losses of $14 at June 30, 2020 (estimated fair value-$1,220 at June 30, 2020 and $1,447 at December 31, 2019)",
        "verboseLabel": "Securities held to maturity"
       }
      }
     },
     "localname": "HeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HeldToMaturitySecuritiesFairValue": {
     "auth_ref": [
      "r229",
      "r232",
      "r701"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of investment in debt security measured at amortized cost (held-to-maturity).",
        "label": "Debt Securities, Held-to-maturity, Fair Value",
        "positiveLabel": "Securities held to maturity"
       }
      }
     },
     "localname": "HeldToMaturitySecuritiesFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest": {
     "auth_ref": [
      "r64",
      "r159",
      "r165",
      "r169",
      "r172",
      "r175",
      "r690",
      "r713",
      "r734",
      "r763"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest.",
        "label": "Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest",
        "totalLabel": "Income before income taxes",
        "verboseLabel": "(gains) included in net income"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r300"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]",
        "terseLabel": "Income Statement Location [Axis]"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]",
        "terseLabel": "Income Statement Location [Domain]"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxAuthorityAxis": {
     "auth_ref": [
      "r484"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by tax jurisdiction.",
        "label": "Income Tax Authority [Axis]",
        "terseLabel": "Income Tax Authority [Axis]"
       }
      }
     },
     "localname": "IncomeTaxAuthorityAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxAuthorityDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Agency, division or body classification that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes.",
        "label": "Income Tax Authority [Domain]",
        "terseLabel": "Income Tax Authority [Domain]"
       }
      }
     },
     "localname": "IncomeTaxAuthorityDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r482",
      "r485",
      "r486",
      "r491",
      "r493",
      "r495",
      "r496",
      "r497"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Tax Disclosure [Text Block]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r99",
      "r123",
      "r124",
      "r157",
      "r480",
      "r492",
      "r494",
      "r764"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 32.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income Tax Expense (Benefit)",
        "negatedLabel": "Related income tax effect",
        "terseLabel": "Related income tax effect",
        "verboseLabel": "Income taxes"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccruedInterestReceivableNet": {
     "auth_ref": [
      "r90"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount due from borrowers for interest payments.",
        "label": "Increase (Decrease) in Accrued Interest Receivable, Net",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedInterestReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInDeposits": {
     "auth_ref": [
      "r93",
      "r732"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash inflow or outflow for the increase (decrease) in the beginning and end of period deposits balances.",
        "label": "Increase (Decrease) in Deposits",
        "terseLabel": "Deposits"
       }
      }
     },
     "localname": "IncreaseDecreaseInDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase (decrease) in fair value adjustment on other assets (liabilities) carried at fair value under the fair value option on the statement of cash flows of Federal Home Loan Banks (FHLBanks).",
        "label": "Increase (Decrease) in Fair Value Adjustments on Other Assets (Liabilities) Carried at Fair Value under Fair Value Option",
        "verboseLabel": "Business combination fair value adjustment to purchase consideration"
       }
      }
     },
     "localname": "IncreaseDecreaseInFairValueAdjustmentsOnAssetsAndLiabilitiesCarriedAtFairValueUnderFairValueOption",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InformationByCategoryOfDebtSecurityAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by category of debt security, either available-for-sale or held-to-maturity.",
        "label": "Debt Security Category [Axis]",
        "terseLabel": "Debt Security Category [Axis]"
       }
      }
     },
     "localname": "InformationByCategoryOfDebtSecurityAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InformationTechnologyAndDataProcessing": {
     "auth_ref": [
      "r71"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 26.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of expenses incurred in the period for information technology and data processing products and services.",
        "label": "Information Technology and Data Processing",
        "terseLabel": "Data processing expense"
       }
      }
     },
     "localname": "InformationTechnologyAndDataProcessing",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperating": {
     "auth_ref": [
      "r719"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 4.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the total of interest and dividend income, including any amortization and accretion (as applicable) of discounts and premiums, earned from (1) loans and leases whether held-for-sale or held-in-portfolio; (2) investment securities; (3) federal funds sold; (4) securities purchased under agreements to resell; (5) investments in banker's acceptances, commercial paper, or certificates of deposit; (6) dividend income; or (7) other investments not otherwise specified herein.",
        "label": "Interest and Dividend Income, Operating",
        "totalLabel": "Total interest income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperating",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestAndDividendIncomeOperatingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest and Dividend Income, Operating [Abstract]",
        "terseLabel": "Interest income"
       }
      }
     },
     "localname": "InterestAndDividendIncomeOperatingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndDividendIncomeSecuritiesByTaxableStatusAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest and Dividend Income, Securities, by Taxable Status [Abstract]",
        "terseLabel": "Interest and dividends on securities:"
       }
      }
     },
     "localname": "InterestAndDividendIncomeSecuritiesByTaxableStatusAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestAndFeeIncomeLoansAndLeases": {
     "auth_ref": [
      "r718"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 5.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate interest and fee income generated by: (1) loans the Entity has positive intent and ability to hold for the foreseeable future, or until maturity or payoff, including commercial and consumer loans, whether domestic or foreign, which may consist of: (a) industrial and agricultural; (b) real estate; and (c) real estate construction loans; (d) trade financing; (e) lease financing; (f) home equity lines-of-credit; (g) automobile and other vehicle loans; and (h) credit card and other revolving-type loans and (2) loans and leases held-for-sale which may include mortgage loans, direct financing, and sales-type leases.",
        "label": "Interest and Fee Income, Loans and Leases",
        "terseLabel": "Interest and fees on loans"
       }
      }
     },
     "localname": "InterestAndFeeIncomeLoansAndLeases",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositLiabilities": {
     "auth_ref": [
      "r704"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate of all domestic and foreign interest-bearing deposit liabilities.",
        "label": "Interest-bearing Deposit Liabilities",
        "terseLabel": "Interest-bearing"
       }
      }
     },
     "localname": "InterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositsInBanks": {
     "auth_ref": [
      "r692",
      "r708"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 20.0,
       "parentTag": "us-gaap_CashCashEquivalentsAndFederalFundsSold",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For banks and other depository institutions (including Federal Reserve Banks, if applicable): Interest-bearing deposits in other financial institutions for relatively short periods of time including, for example, certificates of deposits, which are presented separately from cash on the balance sheet.",
        "label": "Interest-bearing Deposits in Banks and Other Financial Institutions",
        "terseLabel": "Interest-bearing deposits with other banks"
       }
      }
     },
     "localname": "InterestBearingDepositsInBanks",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestBearingDepositsMember": {
     "auth_ref": [
      "r692",
      "r699"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash on deposit with financial institutions that earns interest, either at a fixed or market rate.",
        "label": "Interest-bearing Deposits [Member]"
       }
      }
     },
     "localname": "InterestBearingDepositsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestBearingForeignDepositTimeDeposits": {
     "auth_ref": [
      "r704",
      "r733"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest-bearing time deposits in foreign banking offices. Time deposits bear interest for a fixed, stated period of time and include certificate of deposits and individual retirement accounts.",
        "label": "Interest-bearing Foreign Deposit, Time Deposits",
        "terseLabel": "Deposits at consummation"
       }
      }
     },
     "localname": "InterestBearingForeignDepositTimeDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpense": {
     "auth_ref": [
      "r63",
      "r153",
      "r606",
      "r609",
      "r731"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 9.0,
       "parentTag": "us-gaap_InterestIncomeExpenseNet",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of the cost of borrowed funds accounted for as interest expense.",
        "label": "Interest Expense",
        "totalLabel": "Total interest expense"
       }
      }
     },
     "localname": "InterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Interest Expense [Abstract]",
        "terseLabel": "Interest expense"
       }
      }
     },
     "localname": "InterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InterestExpenseDeposits": {
     "auth_ref": [
      "r728"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 10.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate amount of interest expense on all deposits.",
        "label": "Interest Expense, Deposits",
        "terseLabel": "Interest on deposits"
       }
      }
     },
     "localname": "InterestExpenseDeposits",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseLongTermDebt": {
     "auth_ref": [
      "r730"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 12.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate amount of interest paid or due on all long-term debt.",
        "label": "Interest Expense, Long-term Debt",
        "terseLabel": "Interest on long-term borrowings"
       }
      }
     },
     "localname": "InterestExpenseLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestExpenseShortTermBorrowings": {
     "auth_ref": [
      "r729"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 11.0,
       "parentTag": "us-gaap_InterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate interest expense incurred on short-term borrowings including commercial paper and Federal funds purchased and securities sold under agreements to repurchase.",
        "label": "Interest Expense, Short-term Borrowings",
        "terseLabel": "Interest on short-term borrowings"
       }
      }
     },
     "localname": "InterestExpenseShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss": {
     "auth_ref": [
      "r722"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest income or expense, including any amortization and accretion (as applicable) of discounts and premiums, including consideration of the provisions for loan, lease, credit, and other related losses.",
        "label": "Interest Income (Expense), after Provision for Loan Loss",
        "totalLabel": "Net interest income after provision for credit losses"
       }
      }
     },
     "localname": "InterestIncomeExpenseAfterProvisionForLoanLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r720"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest Income (Expense), Net",
        "terseLabel": "Net interest income",
        "totalLabel": "Net interest income"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell": {
     "auth_ref": [
      "r727"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 6.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate interest income earned from (1) the lending of excess federal funds to another commercial bank requiring such for its legal reserve requirements and (2) securities purchased under agreements to resell.",
        "label": "Interest Income, Federal Funds Sold and Securities Purchased under Agreements to Resell",
        "terseLabel": "Interest on federal funds sold and other short-term investments"
       }
      }
     },
     "localname": "InterestIncomeFederalFundsSoldAndSecuritiesPurchasedUnderAgreementsToResell",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxExempt": {
     "auth_ref": [
      "r726"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 8.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities exempt from state, federal and other income tax.",
        "label": "Interest Income, Securities, Operating, Tax Exempt",
        "terseLabel": "Tax-exempt"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxExempt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeSecuritiesTaxable": {
     "auth_ref": [
      "r726"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 7.0,
       "parentTag": "us-gaap_InterestAndDividendIncomeOperating",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of operating interest income, including amortization and accretion of premiums and discounts, on securities subject to state, federal and other income tax.",
        "label": "Interest Income, Securities, Operating, Taxable",
        "terseLabel": "Taxable"
       }
      }
     },
     "localname": "InterestIncomeSecuritiesTaxable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet": {
     "auth_ref": [
      "r567"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The estimated net amount of unrealized gains or losses on interest rate cash flow hedges as of the balance sheet date expected to be reclassified to earnings within the next twelve months.",
        "label": "Interest Rate Cash Flow Hedge Gain (Loss) to be Reclassified During Next 12 Months, Net",
        "terseLabel": "Cash flow hedge reclassification amount to be reclassified from aoci to income in the next twelve months"
       }
      }
     },
     "localname": "InterestRateCashFlowHedgeGainLossToBeReclassifiedDuringNext12MonthsNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestRateLockCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commitments to extend credit where the interest rate is locked in advance of funds being disbursed for a specified period of time.",
        "label": "Interest Rate Lock Commitments [Member]",
        "terseLabel": "Interest Rate Lock Commitments [Member]"
       }
      }
     },
     "localname": "InterestRateLockCommitmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestRateSwapMember": {
     "auth_ref": [
      "r552"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Forward based contracts in which two parties agree to swap periodic payments that are fixed at the outset of the swap contract with variable payments based on a market interest rate (index rate) over a specified period.",
        "label": "Interest Rate Swap [Member]",
        "terseLabel": "Interest Rate Contracts [Member]"
       }
      }
     },
     "localname": "InterestRateSwapMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InterestReceivable": {
     "auth_ref": [
      "r34"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 35.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of interest earned but not received. Also called accrued interest or accrued interest receivable.",
        "label": "Interest Receivable",
        "terseLabel": "Accrued interest receivable"
       }
      }
     },
     "localname": "InterestReceivable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalCreditAssessmentAxis": {
     "auth_ref": [
      "r194",
      "r267",
      "r274",
      "r275",
      "r318",
      "r560"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by entity-defined rating.",
        "label": "Internal Credit Assessment [Axis]",
        "terseLabel": "Internal Credit Assessment [Axis]"
       }
      }
     },
     "localname": "InternalCreditAssessmentAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InternalCreditAssessmentDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Entity defined credit risk rating.",
        "label": "Internal Credit Assessment [Domain]",
        "terseLabel": "Internal Credit Assessment [Domain]"
       }
      }
     },
     "localname": "InternalCreditAssessmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InternalInvestmentGradeMember": {
     "auth_ref": [
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit rating classification developed by the entity in which the probability of default is low and full and timely repayments are expected.",
        "label": "Internal Investment Grade [Member]",
        "terseLabel": "Investment Grade [Member]"
       }
      }
     },
     "localname": "InternalInvestmentGradeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InternalNoninvestmentGradeMember": {
     "auth_ref": [
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Credit rating classification developed by the entity in which the probability of default is high and full and timely repayments are not expected.",
        "label": "Internal Noninvestment Grade [Member]",
        "terseLabel": "Below Investment Grade [Member]"
       }
      }
     },
     "localname": "InternalNoninvestmentGradeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IntersegmentEliminationMember": {
     "auth_ref": [
      "r151",
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r171",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Eliminating entries used in operating segment consolidation.",
        "label": "Intersegment Eliminations [Member]",
        "terseLabel": "Intersegment Eliminations [Member]"
       }
      }
     },
     "localname": "IntersegmentEliminationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]",
        "terseLabel": "Investment Type [Axis]"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r799",
      "r800",
      "r801",
      "r802",
      "r803"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investments [Domain]",
        "terseLabel": "Investments [Domain]"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentsByConsolidatedAndNonconsolidatedEntitiesAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by investments by consolidated and nonconsolidated entities. Includes, but is not limited to, variable interest entity (VIE) for which reporting entity is or is not primary beneficiary.",
        "label": "Investments by Consolidated and Nonconsolidated Entities [Axis]"
       }
      }
     },
     "localname": "InvestmentsByConsolidatedAndNonconsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsByConsolidatedAndNonconsolidatedEntitiesDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Investments by consolidated and nonconsolidated entities. Includes, but is not limited to, variable interest entity (VIE) for which reporting entity is or is not primary beneficiary.",
        "label": "Investments by Consolidated and Nonconsolidated Entities [Domain]"
       }
      }
     },
     "localname": "InvestmentsByConsolidatedAndNonconsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments.",
        "label": "Investments Classified by Contractual Maturity Date [Table Text Block]",
        "terseLabel": "Summary of Maturities of Debt Securities Held to Maturity by Amortized Cost and Estimated Fair Value"
       }
      }
     },
     "localname": "InvestmentsClassifiedByContractualMaturityDateTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Investments, Debt and Equity Securities [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDebtAndEquitySecuritiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock": {
     "auth_ref": [
      "r242",
      "r691",
      "r742",
      "r804"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for  investments in certain debt and equity securities.",
        "label": "Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block]",
        "terseLabel": "Investment Securities"
       }
      }
     },
     "localname": "InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecurities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust": {
     "auth_ref": [
      "r707",
      "r757"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Including the current and noncurrent portions, the carrying value of junior subordinated long-term debt owed to unconsolidated subsidiary trusts as of the balance sheet date. Such debt places a lender in a lien position behind debt having a higher priority of repayment in liquidation of the entity's assets and was initially scheduled to be repaid after one year or beyond the normal operating cycle if longer.",
        "label": "Junior Subordinated Debenture Owed to Unconsolidated Subsidiary Trust",
        "terseLabel": "Amount of Capital Securities Issued"
       }
      }
     },
     "localname": "JuniorSubordinatedDebentureOwedToUnconsolidatedSubsidiaryTrust",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JuniorSubordinatedLongTermNotes": {
     "auth_ref": [
      "r30"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of long-term debt (with maturities initially due after one year or beyond the operating cycle if longer) identified as Junior Subordinated Notes, which have a lower priority than senior instruments, excluding current portion.",
        "label": "Junior Subordinated Notes, Noncurrent",
        "terseLabel": "Outstanding balances of debentures"
       }
      }
     },
     "localname": "JuniorSubordinatedLongTermNotes",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LandMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Part of earth's surface not covered by water.",
        "label": "Land [Member]",
        "terseLabel": "Land [Member]"
       }
      }
     },
     "localname": "LandMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r626",
      "r628"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease, Cost",
        "totalLabel": "Net lease cost"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "auth_ref": [
      "r626"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income.",
        "label": "Lease, Cost [Table Text Block]",
        "terseLabel": "Components of Lease Expense"
       }
      }
     },
     "localname": "LeaseCostTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r627"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "Lessee, Operating Lease, Liability, Maturity [Table Text Block]",
        "terseLabel": "Maturities of Lease Liabilities by Year"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseRemainingLeaseTerm": {
     "auth_ref": [
      "r618"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Remaining lease term of operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Remaining Lease Term",
        "terseLabel": "Operating lease remaining lease term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRemainingLeaseTerm",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeaseRenewalTerm": {
     "auth_ref": [
      "r619"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term of lessee's operating lease renewal, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessee, Operating Lease, Renewal Term",
        "terseLabel": "Operating leases, option to extend term"
       }
      }
     },
     "localname": "LesseeOperatingLeaseRenewalTerm",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LesseeOperatingLeasesTextBlock": {
     "auth_ref": [
      "r629"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for operating leases of lessee. Includes, but is not limited to, description of operating lease and maturity analysis of operating lease liability.",
        "label": "Lessee, Operating Leases [Text Block]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeOperatingLeasesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/Leases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LessorDirectFinancingLeaseTermOfContract1": {
     "auth_ref": [
      "r630"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Term of lessor's direct financing lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Lessor, Direct Financing Lease, Term of Contract",
        "terseLabel": "Business combination lease receivable acquired lease term"
       }
      }
     },
     "localname": "LessorDirectFinancingLeaseTermOfContract1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date.",
        "label": "Letters of Credit Outstanding, Amount",
        "terseLabel": "Letters of credit issued"
       }
      }
     },
     "localname": "LettersOfCreditOutstandingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_Liabilities": {
     "auth_ref": [
      "r26",
      "r98",
      "r167",
      "r243",
      "r519",
      "r522",
      "r523",
      "r591"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all liabilities that are recognized. Liabilities are probable future sacrifices of economic benefits arising from present obligations of an entity to transfer assets or provide services to other entities in the future.",
        "label": "Liabilities",
        "totalLabel": "TOTAL LIABILITIES",
        "verboseLabel": "Aggregate Liabilities"
       }
      }
     },
     "localname": "Liabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Liabilities [Abstract]",
        "terseLabel": "Liabilities"
       }
      }
     },
     "localname": "LiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r21",
      "r98",
      "r243",
      "r591",
      "r700",
      "r753"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Liabilities and Equity",
        "totalLabel": "TOTAL LIABILITIES AND SHAREHOLDERS' EQUITY"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCredit": {
     "auth_ref": [
      "r11",
      "r698",
      "r746"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement.",
        "label": "Long-term Line of Credit",
        "verboseLabel": "Amount of outstanding balance under line of credit"
       }
      }
     },
     "localname": "LineOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityExpirationPeriod": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period remaining on line of credit facility before it terminates, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Line of Credit Facility, Expiration Period",
        "terseLabel": "Loan commitments expiry period"
       }
      }
     },
     "localname": "LineOfCreditFacilityExpirationPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_LineOfCreditFacilityInterestRateDescription": {
     "auth_ref": [
      "r24"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Description of the interest rate for the amounts borrowed under the credit facility, including the terms and the method for determining the interest rate (for example, fixed or variable, LIBOR plus a percentage, increasing rate, timing of interest rate resets, remarketing provisions).",
        "label": "Line of Credit Facility, Interest Rate Description",
        "verboseLabel": "Stated Interest Rate"
       }
      }
     },
     "localname": "LineOfCreditFacilityInterestRateDescription",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r24"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility.",
        "label": "Line of Credit Facility, Maximum Borrowing Capacity",
        "terseLabel": "Unused lines of credit"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoanOriginationCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Commitments to borrowers or third party investors for the origination of a loan.",
        "label": "Loan Origination Commitments [Member]"
       }
      }
     },
     "localname": "LoanOriginationCommitmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoanRestructuringModificationAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by concessions made to the terms of loan contracts.",
        "label": "Loan Restructuring Modification [Axis]"
       }
      }
     },
     "localname": "LoanRestructuringModificationAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LoanRestructuringModificationDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Concessions made to the terms of loan contracts, including but not limited to, interest rate reductions, maturity extensions, principal forgiveness, and payment deferral.",
        "label": "Loan Restructuring Modification [Domain]"
       }
      }
     },
     "localname": "LoanRestructuringModificationDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LoansAndLeasesReceivableAllowance": {
     "auth_ref": [
      "r186",
      "r190",
      "r204",
      "r207"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 26.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of allowance to cover probable credit losses on loans and leases. Includes carryover of or adjustments to the allowance for loan losses in connection with business combinations. Excludes allowance for loans and leases covered under loss sharing agreements.",
        "label": "Loans and Leases Receivable, Allowance",
        "negatedLabel": "Less: Allowance for loan and lease losses",
        "periodEndLabel": "Allowance for Loan Losses Ending balance",
        "periodStartLabel": "Allowance for Loan Losses Beginning balance"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableAllowance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableDeferredIncome": {
     "auth_ref": [
      "r198",
      "r206",
      "r614",
      "r711"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 25.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of deferred interest and fee income, unamortized costs incurred to originate loans and leases, unamortized loan commitments and loan syndication fees, and premiums over or discounts from face amounts of acquired loans. Excludes amounts for loans and leases covered under loss sharing agreements.",
        "label": "Loans and Leases Receivable, Deferred Income",
        "negatedLabel": "Less: Unearned income"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableGrossCarryingAmount": {
     "auth_ref": [
      "r182"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 24.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before allowance of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Includes deferred interest and fees, undisbursed portion of loan balance, unamortized costs and premiums and discounts from face amounts. Excludes loans and leases covered under loss sharing agreements.",
        "label": "Loans and Leases Receivable, Gross",
        "terseLabel": "Loans and leases",
        "totalLabel": "Total Financing Receivables",
        "verboseLabel": "Loans at consummation"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableGrossCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetOfDeferredIncome": {
     "auth_ref": [
      "r182",
      "r198"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 23.0,
       "parentTag": "us-gaap_LoansAndLeasesReceivableNetReportedAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before allowance and after deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements.",
        "label": "Loans and Leases Receivable, Net of Deferred Income",
        "totalLabel": "Loans and leases, net of unearned income",
        "verboseLabel": "Net loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetOfDeferredIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableNetReportedAmount": {
     "auth_ref": [
      "r182",
      "r711"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 22.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after allowance and deduction of deferred interest and fees, unamortized costs and premiums and discounts from face amounts, of loans and leases held in portfolio, including but not limited to, commercial and consumer loans. Excludes loans and leases covered under loss sharing agreements and loans held for sale.",
        "label": "Loans and Leases Receivable, Net Amount",
        "totalLabel": "Net loans and leases"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableNetReportedAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansAndLeasesReceivableRelatedParties": {
     "auth_ref": [
      "r632",
      "r710"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "For an unclassified balance sheet, reflects the carrying amount of unpaid loan amounts due from related parties at the balance sheet date.",
        "label": "Loans and Leases Receivable, Related Parties",
        "terseLabel": "Related party loans"
       }
      }
     },
     "localname": "LoansAndLeasesReceivableRelatedParties",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansHeldForSaleFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of loans held-for-sale including, but not limited to, mortgage loans and finance receivables.",
        "label": "Loans Held-for-sale, Fair Value Disclosure",
        "positiveLabel": "Loans held for sale, fair value",
        "terseLabel": "Loans held for sale",
        "verboseLabel": "Loans held for sale at fair value"
       }
      }
     },
     "localname": "LoansHeldForSaleFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfDifferenceBetweenAggregateFairValueAndRemainingContractualPrincipalOutstandingForFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansNotesTradeAndOtherReceivablesDisclosureTextBlock": {
     "auth_ref": [
      "r205"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for claims held for amounts due a entity, excluding financing receivables. Examples include, but are not limited to, trade accounts receivables, notes receivables, loans receivables. Includes disclosure for allowance for credit losses.",
        "label": "Loans, Notes, Trade and Other Receivables Disclosure [Text Block]",
        "terseLabel": "Loans"
       }
      }
     },
     "localname": "LoansNotesTradeAndOtherReceivablesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/Loans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LoansReceivableFairValueDisclosure": {
     "auth_ref": [
      "r205"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value portion of loan receivable, including, but not limited to, mortgage loans held for investment, finance receivables held for investment, policy loans on insurance contracts.",
        "label": "Loans Receivable, Fair Value Disclosure",
        "terseLabel": "Impaired Loans"
       }
      }
     },
     "localname": "LoansReceivableFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LoansReceivableHeldForSaleNetNotPartOfDisposalGroup": {
     "auth_ref": [
      "r182",
      "r805"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 31.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after valuation allowance, of financing receivable held for sale and not part of disposal group. Excludes loan covered under loss sharing agreement and loan classified as investment in debt security.",
        "label": "Loans Receivable Held-for-sale, Net, Not Part of Disposal Group",
        "positiveTerseLabel": "Loans held for sale (at fair value-$611,277 at June 30, 2020 and $384,375 at December 31, 2019)",
        "terseLabel": "Loans held for sale"
       }
      }
     },
     "localname": "LoansReceivableHeldForSaleNetNotPartOfDisposalGroup",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r11",
      "r322",
      "r698",
      "r750"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long-term Debt, Fair Value",
        "terseLabel": "Long-term borrowings"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "auth_ref": [
      "r104",
      "r320"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-term Debt, Maturities, Repayments of Principal in Next Twelve Months",
        "verboseLabel": "2020"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "auth_ref": [
      "r104",
      "r320"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-term Debt, Maturities, Repayments of Principal in Year Four",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "auth_ref": [
      "r104",
      "r320"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-term Debt, Maturities, Repayments of Principal in Year Three",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "auth_ref": [
      "r104",
      "r320"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LongTermDebt",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long-term Debt, Maturities, Repayments of Principal in Year Two",
        "terseLabel": "2021"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsScheduleOfMaturitiesOfLongTermBorrowingsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtTextBlock": {
     "auth_ref": [
      "r324"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for long-term debt.",
        "label": "Long-term Debt [Text Block]",
        "terseLabel": "Long-Term Borrowings"
       }
      }
     },
     "localname": "LongTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowings"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r30"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-term Debt, Type [Axis]",
        "terseLabel": "Long-term Debt, Type [Axis]"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r30",
      "r321"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Long-term Debt, Type [Domain]",
        "terseLabel": "Long-term Debt, Type [Domain]"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LossContingenciesByNatureOfContingencyAxis": {
     "auth_ref": [
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r316",
      "r317"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur.",
        "label": "Loss Contingency Nature [Axis]",
        "terseLabel": "Loss Contingency Nature [Axis]"
       }
      }
     },
     "localname": "LossContingenciesByNatureOfContingencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LossContingenciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Loss Contingencies [Line Items]",
        "terseLabel": "Loss Contingencies [Line Items]"
       }
      }
     },
     "localname": "LossContingenciesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LossContingenciesTable": {
     "auth_ref": [
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r316",
      "r317"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discloses the specific components (such as the nature, name, and date) of the loss contingency and gives an estimate of the possible loss or range of loss, or states that a reasonable estimate cannot be made. Excludes environmental contingencies, warranties and unconditional purchase obligations.",
        "label": "Loss Contingencies [Table]",
        "terseLabel": "Loss Contingencies [Table]"
       }
      }
     },
     "localname": "LossContingenciesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LossContingencyNatureDomain": {
     "auth_ref": [
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r312",
      "r313",
      "r316",
      "r317"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "An existing condition, situation, or set of circumstances involving uncertainty as to possible loss to an enterprise that will ultimately be resolved when one or more future events occur or fail to occur. Resolution of the uncertainty may confirm the incurrence of a loss or impairment of an asset or the incurrence of a liability.",
        "label": "Loss Contingency, Nature [Domain]",
        "terseLabel": "Loss Contingency, Nature [Domain]"
       }
      }
     },
     "localname": "LossContingencyNatureDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MarketableSecuritiesGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 16.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized and realized gain (loss) on investment in marketable security, including other-than-temporary impairment (OTTI).",
        "label": "Marketable Securities, Gain (Loss)",
        "negativeLabel": "Net investment securities gains (losses)"
       }
      }
     },
     "localname": "MarketableSecuritiesGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MortgageBankingMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Origination or servicing of loan secured by real property.",
        "label": "Mortgage Banking [Member]",
        "terseLabel": "Mortgage Banking [Member]"
       }
      }
     },
     "localname": "MortgageBankingMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MortgageLoansOnRealEstateCommercialAndConsumerNet": {
     "auth_ref": [
      "r755"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The balance represents the amount of loans that are secured by real estate mortgages, offset by the reserve to cover probable credit losses on the loan portfolio.",
        "label": "Mortgage Loans on Real Estate, Commercial and Consumer, Net",
        "terseLabel": "Recorded investment of consumer mortgage loans"
       }
      }
     },
     "localname": "MortgageLoansOnRealEstateCommercialAndConsumerNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r88"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Net Cash Provided by (Used in) Financing Activities",
        "totalLabel": "NET CASH PROVIDED BY FINANCING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Financing Activities [Abstract]",
        "terseLabel": "FINANCING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r88"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Net Cash Provided by (Used in) Investing Activities",
        "totalLabel": "NET CASH USED IN INVESTING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Investing Activities [Abstract]",
        "terseLabel": "INVESTING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r88",
      "r89",
      "r92"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Net Cash Provided by (Used in) Operating Activities",
        "terseLabel": "NET CASH PROVIDED BY OPERATING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Net Cash Provided by (Used in) Operating Activities [Abstract]",
        "terseLabel": "OPERATING ACTIVITIES"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r2",
      "r55",
      "r58",
      "r65",
      "r92",
      "r98",
      "r111",
      "r116",
      "r117",
      "r118",
      "r119",
      "r123",
      "r124",
      "r131",
      "r159",
      "r165",
      "r169",
      "r172",
      "r175",
      "r243",
      "r591",
      "r714",
      "r758"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income (Loss) Attributable to Parent",
        "terseLabel": "Net income",
        "totalLabel": "Net income",
        "verboseLabel": "Net Income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAvailableToCommonStockholdersBasic": {
     "auth_ref": [
      "r116",
      "r117",
      "r118",
      "r119",
      "r125",
      "r126",
      "r132",
      "r135",
      "r159",
      "r165",
      "r169",
      "r172",
      "r175"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after deduction of tax, noncontrolling interests, dividends on preferred stock and participating securities; of income (loss) available to common shareholders.",
        "label": "Net Income (Loss) Available to Common Stockholders, Basic",
        "totalLabel": "Net earnings allocated to common shareholders"
       }
      }
     },
     "localname": "NetIncomeLossAvailableToCommonStockholdersBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "New Accounting Pronouncements or Change in Accounting Principle [Line Items]",
        "terseLabel": "New Accounting Pronouncements or Change in Accounting Principle [Line Items]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable": {
     "auth_ref": [
      "r110",
      "r111",
      "r112",
      "r113",
      "r114",
      "r115",
      "r118",
      "r139",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r487",
      "r488",
      "r489",
      "r490",
      "r674",
      "r675",
      "r676",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Summarization of the changes in an accounting principle or a new accounting pronouncement, including the line items affected by the change and the financial effects of the change on those particular line items.",
        "label": "New Accounting Pronouncements or Change in Accounting Principle [Table]",
        "terseLabel": "New Accounting Pronouncements or Change in Accounting Principle [Table]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements, Policy [Policy Text Block]",
        "terseLabel": "Recent Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NondesignatedMember": {
     "auth_ref": [
      "r538"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Derivative instrument not designated as hedging instrument under Generally Accepted Accounting Principles (GAAP).",
        "label": "Not Designated as Hedging Instrument [Member]",
        "terseLabel": "Not Designated as Hedging Instrument [Member]"
       }
      }
     },
     "localname": "NondesignatedMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NoninterestBearingDepositLiabilities": {
     "auth_ref": [
      "r704"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Deposits",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The aggregate amount of all domestic and foreign noninterest-bearing deposits liabilities held by the entity.",
        "label": "Noninterest-bearing Deposit Liabilities",
        "terseLabel": "Noninterest-bearing"
       }
      }
     },
     "localname": "NoninterestBearingDepositLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpense": {
     "auth_ref": [
      "r725"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 20.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total aggregate amount of all noninterest expense.",
        "label": "Noninterest Expense",
        "totalLabel": "Total other expense",
        "verboseLabel": "Other expense"
       }
      }
     },
     "localname": "NoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Noninterest Expense [Abstract]",
        "terseLabel": "Other expense"
       }
      }
     },
     "localname": "NoninterestExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncome": {
     "auth_ref": [
      "r723"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 14.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The total amount of noninterest income which may be derived from: (1) fees and commissions; (2) premiums earned; (3) insurance policy charges; (4) the sale or disposal of assets; and (5) other sources not otherwise specified.",
        "label": "Noninterest Income",
        "terseLabel": "Other income",
        "totalLabel": "Total other income"
       }
      }
     },
     "localname": "NoninterestIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoninterestIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Noninterest Income [Abstract]",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "NoninterestIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoninterestIncomeOtherOperatingIncome": {
     "auth_ref": [
      "r62",
      "r712",
      "r762"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 17.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of revenue earned, classified as other, excluding interest income.",
        "label": "Noninterest Income, Other Operating Income",
        "terseLabel": "Other income"
       }
      }
     },
     "localname": "NoninterestIncomeOtherOperatingIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotesReceivableNet": {
     "auth_ref": [
      "r15",
      "r182",
      "r266"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of financing receivable. Excludes financing receivable covered under loss sharing agreement.",
        "label": "Financing Receivable, Net",
        "positiveLabel": "Financing receivables",
        "terseLabel": "Acquired impaired loans from merger",
        "verboseLabel": "Financing receivable, credit quality indicators information"
       }
      }
     },
     "localname": "NotesReceivableNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NumberOfOperatingSegments": {
     "auth_ref": [
      "r147"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of operating segments. An operating segment is a component of an enterprise: (a) that engages in business activities from which it may earn revenues and incur expenses (including revenues and expenses relating to transactions with other components of the same enterprise), (b) whose operating results are regularly reviewed by the enterprise's chief operating decision maker to make decisions about resources to be allocated to the segment and assess its performance, and (c) for which discrete financial information is available. An operating segment may engage in business activities for which it has yet to earn revenues, for example, start-up operations may be operating segments before earning revenues.",
        "label": "Number of Operating Segments",
        "terseLabel": "Number of business segment"
       }
      }
     },
     "localname": "NumberOfOperatingSegments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationAdditionalInformationDetail"
     ],
     "xbrltype": "integerItemType"
    },
    "us-gaap_OccupancyNet": {
     "auth_ref": [
      "r71",
      "r613",
      "r724"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 23.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of net occupancy expense that may include items, such as depreciation of facilities and equipment, lease expenses, property taxes and property and casualty insurance expense.",
        "label": "Occupancy, Net",
        "terseLabel": "Net occupancy expense"
       }
      }
     },
     "localname": "OccupancyNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent": {
     "auth_ref": [
      "r51",
      "r61"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax, before reclassification adjustments, of other comprehensive income (loss), attributable to parent.",
        "label": "OCI, before Reclassifications, Net of Tax, Attributable to Parent",
        "terseLabel": "Other comprehensive income before reclassification"
       }
      }
     },
     "localname": "OciBeforeReclassificationsNetOfTaxAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r620",
      "r628"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability.",
        "label": "Operating Lease, Cost",
        "verboseLabel": "Operating lease cost"
       }
      }
     },
     "localname": "OperatingLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiability": {
     "auth_ref": [
      "r616"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 9.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease.",
        "label": "Operating Lease, Liability",
        "verboseLabel": "Operating lease liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r617",
      "r622"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease, Payments",
        "verboseLabel": "Operating cash flows from operating leases"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r615"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 33.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease, Right-of-Use Asset",
        "terseLabel": "Operating lease right-of-use assets",
        "verboseLabel": "Operating lease\u00a0right-of-use\u00a0assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r625",
      "r628"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating Lease, Weighted Average Discount Rate, Percent",
        "verboseLabel": "Operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r624",
      "r628"
     ],
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Operating leases",
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease, Weighted Average Remaining Lease Term"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDue": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 1.0,
       "parentTag": "ubsi_OperatingLeasesFutureMinimumPaymentsDueNetOfImputedInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for leases having an initial or remaining non-cancelable letter-terms in excess of one year.",
        "label": "Operating Leases, Future Minimum Payments Due",
        "totalLabel": "Total lease payments"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the next fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments Due, Next Twelve Months",
        "verboseLabel": "2020"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueCurrent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 6.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the fifth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due in Five Years",
        "verboseLabel": "2024"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueInFiveYears",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 5.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the fourth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due in Four Years",
        "verboseLabel": "2023"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueInFourYears",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the third fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due in Three Years",
        "verboseLabel": "2022"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueInThreeYears",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due in the second fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due in Two Years",
        "verboseLabel": "2021"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueInTwoYears",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter": {
     "auth_ref": [
      "r611",
      "r612"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail": {
       "order": 7.0,
       "parentTag": "us-gaap_OperatingLeasesFutureMinimumPaymentsDue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of required minimum rental payments for operating leases having an initial or remaining non-cancelable lease term in excess of one year due after the fifth fiscal year following the latest fiscal year. Excludes interim and annual periods when interim periods are reported on a rolling approach, from latest balance sheet date.",
        "label": "Operating Leases, Future Minimum Payments, Due Thereafter",
        "verboseLabel": "Thereafter"
       }
      }
     },
     "localname": "OperatingLeasesFutureMinimumPaymentsDueThereafter",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingSegmentsMember": {
     "auth_ref": [
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r175"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifies components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Operating Segments [Member]",
        "terseLabel": "Operating Segments [Member]"
       }
      }
     },
     "localname": "OperatingSegmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssets": {
     "auth_ref": [
      "r7",
      "r695",
      "r748"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 36.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of assets classified as other.",
        "label": "Other Assets",
        "terseLabel": "Other assets"
       }
      }
     },
     "localname": "OtherAssets",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsMember": {
     "auth_ref": [
      "r540",
      "r564"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other assets.",
        "label": "Other Assets [Member]",
        "terseLabel": "Other Assets [Member]"
       }
      }
     },
     "localname": "OtherAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r516",
      "r517",
      "r520"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      },
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments, of appreciation (loss) in value of unsold available-for-sale securities, attributable to parent entity. Excludes amounts related to other than temporary impairment (OTTI) loss.",
        "label": "Other Comprehensive Income (Loss), Available-for-sale Securities Adjustment, Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Change in net unrealized gain on available-for-sale (\"AFS\") securities, net of tax",
        "totalLabel": "Net effect of AFS securities on other comprehensive income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r46",
      "r48",
      "r516",
      "r520"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 1.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      },
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after tax and reclassification adjustment, of (increase) decrease in accumulated other comprehensive income for defined benefit plan, attributable to parent.",
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Tax and Reclassification Adjustment, Attributable to Parent",
        "negatedLabel": "Change in pension plan assets, net of tax",
        "negatedTotalLabel": "Net effect of change in pension plan asset on other comprehensive income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Comprehensive (Income) Loss, Defined Benefit Plan, after Tax and Reclassification Adjustment, Attributable to Parent [Abstract]",
        "terseLabel": "Pension plan:",
        "verboseLabel": "Pension plan:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxPortionAttributableToParentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax, Parent [Abstract]",
        "terseLabel": "Cash flow hedge derivatives:",
        "verboseLabel": "Cash flow hedge:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeDerivativesQualifyingAsHedgesTaxPortionAttributableToParentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, before Reclassification Adjustments, after Tax [Abstract]",
        "terseLabel": "Available for sale (\"AFS\") securities:"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeReclassificationAdjustmentsNetOfTaxAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax": {
     "auth_ref": [
      "r40",
      "r41",
      "r48"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax and after adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, before Tax",
        "terseLabel": "Net gains recognized during the period on equity securities sold"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax": {
     "auth_ref": [
      "r40",
      "r41",
      "r48"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 12.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after tax and adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-sale, Adjustment, after Tax",
        "totalLabel": "Total AFS securities - all other"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax": {
     "auth_ref": [
      "r39",
      "r48"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "order": 4.0,
       "parentTag": "us-gaap_ComprehensiveIncomeNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after tax and reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification and Tax",
        "terseLabel": "Change in net unrealized loss on cash flow hedge, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationAndTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTax": {
     "auth_ref": [
      "r39",
      "r48"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 18.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax and after reclassification, of gain (loss) from derivative instrument designated and qualifying cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, before Tax",
        "terseLabel": "Unrealized loss on cash flow hedge"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 19.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness.",
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax",
        "negatedLabel": "Related income tax effect"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 17.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after reclassification, of tax expense (benefit) for gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, attributable to parent.",
        "label": "Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), after Reclassification, Tax, Parent",
        "negatedTotalLabel": "Net effect of cash flow hedge derivatives on other comprehensive income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossCashFlowHedgeGainLossAfterReclassificationTaxParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent": {
     "auth_ref": [
      "r56",
      "r59",
      "r516",
      "r517",
      "r520"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of other comprehensive income (loss) attributable to parent entity.",
        "label": "Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent",
        "terseLabel": "Other comprehensive income, net of tax",
        "totalLabel": "Net current-period other comprehensive income, net of tax"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r44",
      "r48",
      "r385"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax, of gain (loss) for (increase) decrease in value of benefit obligation for change in actuarial assumptions and increase (decrease) in value of plan assets from experience different from that assumed of defined benefit plan, that has not been recognized in net periodic benefit (cost) credit.",
        "label": "Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss) Arising During Period, before Tax",
        "terseLabel": "Recognized net actuarial loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansNetUnamortizedGainLossArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax": {
     "auth_ref": [
      "r48",
      "r52",
      "r53",
      "r241"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 14.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, before Tax",
        "negatedLabel": "Net reclassification adjustment for (gains) losses included in net income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r49",
      "r241"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 15.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "terseLabel": "Related income tax expense (benefit)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax": {
     "auth_ref": [
      "r48",
      "r52",
      "r53",
      "r385"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax, of reclassification adjustment from accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan.",
        "label": "Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss), Reclassification Adjustment from AOCI, before Tax",
        "negatedTerseLabel": "Recognized net actuarial loss"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax": {
     "auth_ref": [
      "r49"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income (loss) for gain (loss) of defined benefit plan.",
        "label": "Other Comprehensive Income (Loss), Defined Benefit Plan, Gain (Loss), Reclassification Adjustment from AOCI, Tax",
        "verboseLabel": "Related income tax benefit"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIPensionAndOtherPostretirementBenefitPlansForNetGainLossTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax": {
     "auth_ref": [
      "r40",
      "r48",
      "r241"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 16.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before tax and adjustment, of unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, before Tax",
        "terseLabel": "Change in net unrealized gain on AFS securities arising during the period"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r41",
      "r49"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 13.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentNetOfTax",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, before adjustment, of tax expense (benefit) for unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Other Comprehensive Income (Loss), Securities, Available-for-Sale, Unrealized Holding Gain (Loss) Arising During Period, Tax",
        "negatedLabel": "Related income tax effect"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherInvestments": {
     "auth_ref": [
      "r22",
      "r756"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 30.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of investments classified as other.",
        "label": "Other Investments",
        "terseLabel": "Other investment securities",
        "verboseLabel": "Other securities"
       }
      }
     },
     "localname": "OtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r540",
      "r564"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other liabilities.",
        "label": "Other Liabilities [Member]",
        "terseLabel": "Other Liabilities [Member]"
       }
      }
     },
     "localname": "OtherLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLongTermDebt": {
     "auth_ref": [
      "r11",
      "r698",
      "r750"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of long-term debt classified as other.",
        "label": "Other Long-term Debt",
        "terseLabel": "Other long-term borrowings"
       }
      }
     },
     "localname": "OtherLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoninterestExpense": {
     "auth_ref": [
      "r725"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 29.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of noninterest expense classified as other.",
        "label": "Other Noninterest Expense",
        "terseLabel": "Other expense"
       }
      }
     },
     "localname": "OtherNoninterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain": {
     "auth_ref": [
      "r237"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Provides the categories of debt securities, available-for-sale or held-to-maturity, on which an entity may recognize other than temporary impairments (OTTI) for which a portion related to credit losses has been recognized in earnings and a portion related to all other factors has been recognized in other comprehensive income.",
        "label": "Other than Temporary Impairment, Credit Losses Recognized in Earnings, Categories of Investments [Domain]",
        "terseLabel": "Other than Temporary Impairment, Credit Losses Recognized in Earnings, Categories of Investments [Domain]"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentCreditLossesRecognizedInEarningsCategoriesOfInvestmentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSaleRecognizedInEarnings": {
     "auth_ref": [
      "r213"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of other-than-temporary impairment (OTTI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), recognized in earnings.",
        "label": "Other-than-temporary Impairment Loss, Debt Securities, Available-for-sale, Recognized in Earnings",
        "terseLabel": "Other-than-temporary Impairment Loss, Debt Securities, Available-for-sale, Recognized in Earnings"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossDebtSecuritiesAvailableForSaleRecognizedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentAvailableforsaleSecurities": {
     "auth_ref": [
      "r42",
      "r48",
      "r51",
      "r517",
      "r520"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 6.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of other than temporary impairment (OTTI) on investment in available-for-sale debt security, recognized in other comprehensive loss, attributable to parent entity.",
        "label": "Other than Temporary Impairment Loss, Investments, Portion in Other Comprehensive Loss, before Tax, Portion Attributable to Parent, Available-for-sale Securities",
        "negatedLabel": "AFS securities with OTTI charges during the period"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParentAvailableforsaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossTaxPortionAttributableToParentAvailableforsaleSecurities": {
     "auth_ref": [
      "r42",
      "r49",
      "r517",
      "r520"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 7.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of tax (expense) benefit of other than temporary impairment (OTTI) on investment in available-for-sale debt security, recognized in other comprehensive loss, attributable to the parent entity.",
        "label": "Other than Temporary Impairment Losses, Investments, Portion in Other Comprehensive Loss, Tax, Portion Attributable to Parent, Available-for-sale Securities",
        "terseLabel": "Related income tax effect"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentsPortionInOtherComprehensiveIncomeLossTaxPortionAttributableToParentAvailableforsaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetAvailableforsaleSecurities": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 8.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount of other than temporary impairment losses on investments in debt and equity securities categorized as Available-for-sale which have been recognized in earnings during the period. Such impairment losses consist of other than temporary impairments (OTTI) on equity securities, credit losses on investments in debt securities, and when the entity intends to sell an impaired debt security or it is more likely than not that the entity will be required to sell the impaired debt security before recovery of its amortized cost basis.",
        "label": "Other than Temporary Impairment Losses, Investments, Portion Recognized in Earnings, Net, Available-for-sale Securities",
        "negatedLabel": "Less: OTTI charges recognized in net income"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetAvailableforsaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsReclassificationAdjustmentOfNoncreditPortionIncludedInNetIncomeAvailabeforsaleSecuritiesBeforeTax": {
     "auth_ref": [
      "r214"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail": {
       "order": 10.0,
       "parentTag": "ubsi_OtherThanTemporaryImpairmentLossesGainsInvestmentsPortionInOtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParentAvailableForSaleSecurities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount before tax of reclassification adjustment for other than temporary impairment (OTTI) related to factors other than credit loss on a previously impaired investment in available-for-sale debt security.",
        "label": "Other than Temporary Impairment Losses, Investments, Reclassification Adjustment of Noncredit Portion Included in Net Income, Availabe-for-sale Securities, before Tax",
        "terseLabel": "Reclassification of previous noncredit OTTI to credit OTTI"
       }
      }
     },
     "localname": "OtherThanTemporaryImpairmentLossesInvestmentsReclassificationAdjustmentOfNoncreditPortionIncludedInNetIncomeAvailabeforsaleSecuritiesBeforeTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfTotalComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PassMember": {
     "auth_ref": [
      "r194",
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A category of financing receivables not considered to be special mention, substandard, doubtful, and loss receivables.",
        "label": "Pass [Member]",
        "terseLabel": "Pass [Member]"
       }
      }
     },
     "localname": "PassMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PastDueFinancialInstrumentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Past Due, Financial Instrument [Abstract]"
       }
      }
     },
     "localname": "PastDueFinancialInstrumentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_PastDueFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r201",
      "r202",
      "r256",
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of aging analysis for financing receivable.",
        "label": "Past Due Financing Receivables [Table Text Block]",
        "terseLabel": "Schedule of Age Analysis of Past Due Loans, Segregated by Class of Loans"
       }
      }
     },
     "localname": "PastDueFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PaymentDeferralMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan modification for a temporary postponement of loan payments.",
        "label": "Payment Deferral [Member]",
        "terseLabel": "Payment Deferral [Member]"
       }
      }
     },
     "localname": "PaymentDeferralMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PaymentsForProceedsFromLoansAndLeases": {
     "auth_ref": [
      "r103"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net cash outflow or inflow for the increase (decrease) in the beginning and end of period of loan and lease balances which are not originated or purchased specifically for resale. Includes cash payments and proceeds associated with (a) loans held-for-investment, (b) leases held-for-investment, and (c) both.",
        "label": "Payments for (Proceeds from) Loans and Leases",
        "negatedLabel": "Net change in loans"
       }
      }
     },
     "localname": "PaymentsForProceedsFromLoansAndLeases",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromOtherInvestingActivities": {
     "auth_ref": [
      "r78",
      "r82",
      "r103"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash (inflow) outflow from investing activities classified as other.",
        "label": "Payments for (Proceeds from) Other Investing Activities",
        "negatedLabel": "Purchases of other investment securities"
       }
      }
     },
     "localname": "PaymentsForProceedsFromOtherInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForRepurchaseOfCommonStock": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to reacquire common stock during the period.",
        "label": "Payments for Repurchase of Common Stock",
        "negatedLabel": "Acquisition of treasury stock"
       }
      }
     },
     "localname": "PaymentsForRepurchaseOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividends": {
     "auth_ref": [
      "r85"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Cash outflow in the form of capital distributions and dividends to common shareholders, preferred shareholders and noncontrolling interests.",
        "label": "Payments of Dividends",
        "negatedLabel": "Cash dividends paid"
       }
      }
     },
     "localname": "PaymentsOfDividends",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecurities": {
     "auth_ref": [
      "r79",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to acquire debt and equity securities not classified as either held-to-maturity securities or trading securities which would be classified as available-for-sale securities and reported at fair value, with unrealized gains and losses excluded from earnings and reported in a separate component of shareholders' equity.",
        "label": "Payments to Acquire Available-for-sale Securities",
        "negatedLabel": "Purchases of securities available for sale"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesEquity": {
     "auth_ref": [
      "r80",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow to acquire equity securities classified as available-for-sale securities, because they are not classified as trading securities.",
        "label": "Payments to Acquire Available-for-sale Securities, Equity",
        "negatedLabel": "Purchases of equity securities"
       }
      }
     },
     "localname": "PaymentsToAcquireAvailableForSaleSecuritiesEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireBusinessesGross": {
     "auth_ref": [
      "r80",
      "r511"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_BusinessCombinationConsiderationTransferred1",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price.",
        "label": "Payments to Acquire Businesses, Gross",
        "terseLabel": "Cash for fractional shares",
        "verboseLabel": "Business combination cash consideration"
       }
      }
     },
     "localname": "PaymentsToAcquireBusinessesGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired": {
     "auth_ref": [
      "r80"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 24.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of a business, net of the cash acquired from the purchase.",
        "label": "Payments to Acquire Businesses, Net of Cash Acquired",
        "negatedLabel": "Acquisition of Carolina Financial Corporation, net of cash paid"
       }
      }
     },
     "localname": "PaymentsToAcquireBusinessesNetOfCashAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r81"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 21.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Payments to Acquire Property, Plant, and Equipment",
        "negatedLabel": "Purchases of bank premises and equipment"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 22.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cost (reversal of cost) for pension and other postretirement benefits.",
        "label": "Pension and Other Postretirement Benefits Cost (Reversal of Cost)",
        "terseLabel": "Employee benefits"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitExpense",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r365",
      "r367",
      "r373",
      "r391",
      "r393",
      "r394",
      "r395",
      "r396",
      "r397",
      "r415",
      "r417",
      "r418",
      "r419",
      "r439"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for retirement benefits.",
        "label": "Pension and Other Postretirement Benefits Disclosure [Text Block]",
        "terseLabel": "Employee Benefit Plans"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlans"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "auth_ref": [
      "r340",
      "r342",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r390",
      "r392",
      "r395",
      "r400",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r419",
      "r420",
      "r434",
      "r435",
      "r436",
      "r437"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits.",
        "label": "Pension Plan [Member]",
        "terseLabel": "Pension Plan [Member]"
       }
      }
     },
     "localname": "PensionPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanAssetCategoriesDomain": {
     "auth_ref": [
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r392",
      "r415"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Defined benefit plan asset investment.",
        "label": "Defined Benefit Plan, Plan Assets, Category [Domain]",
        "terseLabel": "Defined Benefit Plan, Plan Assets, Category [Domain]"
       }
      }
     },
     "localname": "PlanAssetCategoriesDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r444",
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]",
        "terseLabel": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]",
        "terseLabel": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r586"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PreferredStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer.",
        "label": "Preferred Stock, Par or Stated Value Per Share",
        "terseLabel": "Preferred stock, par value"
       }
      }
     },
     "localname": "PreferredStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_PreferredStockSharesAuthorized": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws.",
        "label": "Preferred Stock, Shares Authorized",
        "terseLabel": "Preferred stock, shares authorized"
       }
      }
     },
     "localname": "PreferredStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockSharesIssued": {
     "auth_ref": [
      "r13"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) issued to shareholders (includes related preferred shares that were issued, repurchased, and remain in the treasury). May be all or portion of the number of preferred shares authorized. Excludes preferred shares that are classified as debt.",
        "label": "Preferred Stock, Shares Issued",
        "terseLabel": "Preferred stock, shares issued"
       }
      }
     },
     "localname": "PreferredStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_PreferredStockValue": {
     "auth_ref": [
      "r13"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 12.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable preferred stock (or preferred stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable preferred shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Preferred Stock, Value, Issued",
        "verboseLabel": "Preferred stock, $1.00 par value; Authorized-50,000,000 shares, none issued"
       }
      }
     },
     "localname": "PreferredStockValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrincipalAmountOutstandingOnLoansHeldForSaleOrSecuritization": {
     "auth_ref": [
      "r643"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This is the principal amount outstanding for loans which are in the process of being securitized as of the date of the statement of financial position (across all types of loans).",
        "label": "Principal Amount Outstanding on Loans Held-for-sale or Securitization or Asset-backed Financing Arrangement",
        "terseLabel": "Loans held for sale, unpaid principal balance"
       }
      }
     },
     "localname": "PrincipalAmountOutstandingOnLoansHeldForSaleOrSecuritization",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfDifferenceBetweenAggregateFairValueAndRemainingContractualPrincipalOutstandingForFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrincipalForgivenessMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Loan modification for a reduction in the amount of unpaid principal on a loan.",
        "label": "Principal Forgiveness [Member]",
        "terseLabel": "Forgiveness of principal [Member]"
       }
      }
     },
     "localname": "PrincipalForgivenessMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfReasonsForModificationTroubledDebtRestructuringLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringLoanModificationBasedOnPostModificationOutstandingBalanceDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProceedsFromFederalHomeLoanBankBorrowings": {
     "auth_ref": [
      "r84"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow from Federal Home Loan Bank (FHLBank) borrowing, classified as financing activity.",
        "label": "Proceeds from FHLBank Borrowings, Financing Activities",
        "terseLabel": "Proceeds from issuance of long-term Federal Home Loan Bank borrowings"
       }
      }
     },
     "localname": "ProceedsFromFederalHomeLoanBankBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromLifeInsurancePolicies": {
     "auth_ref": [
      "r78",
      "r87"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 20.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow for proceeds from settlement of corporate-owned life insurance policy, classified as investing activities. Includes, but is not limited to, bank-owned life insurance policy.",
        "label": "Proceeds from Life Insurance Policy",
        "terseLabel": "Redemption of bank-owned life insurance policies"
       }
      }
     },
     "localname": "ProceedsFromLifeInsurancePolicies",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r73",
      "r74",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow from maturity, prepayment and call of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale).",
        "label": "Proceeds from Maturities, Prepayments and Calls of Debt Securities, Available-for-sale",
        "terseLabel": "Proceeds from maturities and calls of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities": {
     "auth_ref": [
      "r74",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 19.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the maturity, prepayments and calls (requests for early payments) of debt securities designated as held-to-maturity.",
        "label": "Proceeds from Maturities, Prepayments and Calls of Held-to-maturity Securities",
        "terseLabel": "Proceeds from maturities and calls of securities held to maturity"
       }
      }
     },
     "localname": "ProceedsFromMaturitiesPrepaymentsAndCallsOfHeldToMaturitySecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale and maturity (principal being due) of other investments, prepayment and call (request of early payment) of other investments not otherwise defined in the taxonomy.",
        "label": "Proceeds from Sale and Maturity of Other Investments",
        "terseLabel": "Proceeds from sales and redemptions of other investment securities"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfOtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecurities": {
     "auth_ref": [
      "r75",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 18.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale of debt and equity securities classified as available-for-sale securities.",
        "label": "Proceeds from Sale of Available-for-sale Securities",
        "terseLabel": "Proceeds from sales of securities available for sale"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecurities",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesEquity": {
     "auth_ref": [
      "r76",
      "r212"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale of equity securities classified as available-for-sale securities.",
        "label": "Proceeds from Sale of Available-for-sale Securities, Equity",
        "verboseLabel": "Proceeds from sales of equity securities"
       }
      }
     },
     "localname": "ProceedsFromSaleOfAvailableForSaleSecuritiesEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfOtherRealEstate": {
     "auth_ref": [
      "r78"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 23.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow associated with the sale of other real estate not otherwise defined in the taxonomy.",
        "label": "Proceeds from Sale of Other Real Estate",
        "terseLabel": "Proceeds from the sales of OREO properties"
       }
      }
     },
     "localname": "ProceedsFromSaleOfOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment": {
     "auth_ref": [
      "r77"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 22.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cash inflow from the sale of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale.",
        "label": "Proceeds from Sale of Property, Plant, and Equipment",
        "terseLabel": "Proceeds from sales of bank premises and equipment"
       }
      }
     },
     "localname": "ProceedsFromSaleOfPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromStockOptionsExercised": {
     "auth_ref": [
      "r83",
      "r467"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash inflow from exercise of option under share-based payment arrangement.",
        "label": "Proceeds from Stock Options Exercised",
        "verboseLabel": "Proceeds from exercise of stock options"
       }
      }
     },
     "localname": "ProceedsFromStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r23",
      "r299"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Property, Plant and Equipment, Type [Axis]",
        "terseLabel": "Property, Plant and Equipment, Type [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r5",
      "r6",
      "r299",
      "r754"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 32.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, Plant and Equipment, Net",
        "terseLabel": "Bank premises and equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r5",
      "r298"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Property, Plant and Equipment, Type [Domain]",
        "terseLabel": "Property, Plant and Equipment, Type [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProvisionForLoanAndLeaseLosses": {
     "auth_ref": [
      "r90",
      "r187",
      "r721"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 13.0,
       "parentTag": "us-gaap_InterestIncomeExpenseAfterProvisionForLoanLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense related to estimated loss from loan and lease transactions.",
        "label": "Provision for Loan and Lease Losses",
        "positiveLabel": "Provision for loans losses",
        "verboseLabel": "Provision for credit losses"
       }
      }
     },
     "localname": "ProvisionForLoanAndLeaseLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProvisionForLoanLeaseAndOtherLosses": {
     "auth_ref": [
      "r90",
      "r187",
      "r721"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense related loan transactions, lease transactions, credit loss from transactions other than loan and lease transactions, and other loss based on assessment of uncollectability from the counterparty to reduce the account to their net realizable value.",
        "label": "Provision for Loan, Lease, and Other Losses",
        "terseLabel": "Business acquisition allowances for loans and lease losses including reserve for unfunded commitments"
       }
      }
     },
     "localname": "ProvisionForLoanLeaseAndOtherLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RealEstateAcquiredThroughForeclosure": {
     "auth_ref": [
      "r183",
      "r184"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of land and buildings obtained through foreclosure proceedings or defeasance in full or partial satisfaction of a debt arrangement.",
        "label": "Real Estate Acquired Through Foreclosure",
        "terseLabel": "OREO"
       }
      }
     },
     "localname": "RealEstateAcquiredThroughForeclosure",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Receivables [Abstract]"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent": {
     "auth_ref": [
      "r51",
      "r61"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount after tax of reclassification adjustments of other comprehensive income (loss) attributable to parent.",
        "label": "Reclassification from AOCI, Current Period, Net of Tax, Attributable to Parent",
        "negatedLabel": "Amounts reclassified from accumulated other comprehensive income"
       }
      }
     },
     "localname": "ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Axis]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income [Axis]"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Domain]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income [Domain]"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifies item reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Member]",
        "terseLabel": "Reclassification out of Accumulated Other Comprehensive Income [Member]"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of information about items reclassified out of accumulated other comprehensive income (loss).",
        "label": "Reclassification out of Accumulated Other Comprehensive Income [Table Text Block]",
        "terseLabel": "Reclassifications Out of Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ReclassificationOutOfAccumulatedOtherComprehensiveIncomeTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r392",
      "r631",
      "r632"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Domain]",
        "terseLabel": "Related Party [Domain]"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r392",
      "r631",
      "r633",
      "r678",
      "r679",
      "r680",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r688",
      "r689"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Axis]",
        "terseLabel": "Related Party [Axis]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RepaymentsOfFederalHomeLoanBankBorrowings": {
     "auth_ref": [
      "r86"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of cash outflow for repayment of Federal Home Loan Bank (FHLBank) borrowing, classified as financing activity.",
        "label": "Payments of FHLBank Borrowings, Financing Activities",
        "negatedLabel": "Repayment of long-term Federal Home Loan Bank borrowings"
       }
      }
     },
     "localname": "RepaymentsOfFederalHomeLoanBankBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ResidentialMortgageBackedSecuritiesMember": {
     "auth_ref": [
      "r216",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Securities collateralized by residential real estate mortgage loans.",
        "label": "Residential Mortgage Backed Securities [Member]",
        "terseLabel": "Residential Mortgage-Backed Securities [Member]"
       }
      }
     },
     "localname": "ResidentialMortgageBackedSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ResidentialPortfolioSegmentMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Portfolio segment of the company's total financing receivables related to residential financing receivables.",
        "label": "Residential Portfolio Segment [Member]",
        "terseLabel": "Residential Real Estate [Member]",
        "verboseLabel": "Residential Portfolio Segment [Member]"
       }
      }
     },
     "localname": "ResidentialPortfolioSegmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfCreditLossesRelatedToAccruedInterestReceivablesAndWrittenOffDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ResidentialRealEstateMember": {
     "auth_ref": [
      "r272",
      "r366"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Property that is used as a home.",
        "label": "Residential Real Estate [Member]",
        "terseLabel": "Residential Real Estate [Member]"
       }
      }
     },
     "localname": "ResidentialRealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of cash and cash equivalent. Cash is currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents [Domain]"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedStockMember": {
     "auth_ref": [
      "r136"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Stock including a provision that prohibits sale or substantive sale of an equity instrument for a specified period of time or until specified performance conditions are met.",
        "label": "Restricted Stock [Member]",
        "terseLabel": "Restricted Stock [Member]"
       }
      }
     },
     "localname": "RestrictedStockMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r17",
      "r333",
      "r475",
      "r752",
      "r775",
      "r780"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 15.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings (Accumulated Deficit)",
        "terseLabel": "Retained earnings"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r106",
      "r107",
      "r109",
      "r112",
      "r121",
      "r124",
      "r248",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490",
      "r771",
      "r773"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]",
        "terseLabel": "Retained Earnings [Member]"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanNameAxis": {
     "auth_ref": [
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r392",
      "r395",
      "r400",
      "r401",
      "r402",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r438"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by name of plan designed to provide retirement benefits. Includes, but is not limited to, legal name of defined benefit and defined contribution plans.",
        "label": "Retirement Plan Name [Axis]",
        "terseLabel": "Retirement Plan Name [Axis]"
       }
      }
     },
     "localname": "RetirementPlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanNameDomain": {
     "auth_ref": [
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r392",
      "r395",
      "r400",
      "r401",
      "r402",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429",
      "r430",
      "r431",
      "r432",
      "r433",
      "r438"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Name of plan designed to provide retirement benefits. Includes, but is not limited to, legal name of defined benefit and defined contribution plans.",
        "label": "Retirement Plan Name [Domain]",
        "terseLabel": "Retirement Plan Name [Domain]"
       }
      }
     },
     "localname": "RetirementPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanNameOtherMember": {
     "auth_ref": [
      "r400"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Retirement plan not separately disclosed by name classified as other.",
        "label": "Retirement Plan Name, Other [Member]",
        "terseLabel": "Otherwise [Member]"
       }
      }
     },
     "localname": "RetirementPlanNameOtherMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "auth_ref": [
      "r340",
      "r341",
      "r342",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r390",
      "r392",
      "r395",
      "r400",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r434",
      "r435",
      "r436",
      "r437"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Axis]",
        "terseLabel": "Retirement Plan Type [Axis]"
       }
      }
     },
     "localname": "RetirementPlanTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "auth_ref": [
      "r340",
      "r341",
      "r342",
      "r344",
      "r345",
      "r346",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r352",
      "r353",
      "r354",
      "r355",
      "r356",
      "r357",
      "r358",
      "r359",
      "r360",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r370",
      "r371",
      "r372",
      "r373",
      "r374",
      "r375",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r389",
      "r390",
      "r392",
      "r395",
      "r400",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r419",
      "r420",
      "r421",
      "r422",
      "r423",
      "r424",
      "r434",
      "r435",
      "r436",
      "r437"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Retirement Plan Type [Domain]",
        "terseLabel": "Retirement Plan Type [Domain]"
       }
      }
     },
     "localname": "RetirementPlanTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax": {
     "auth_ref": [
      "r150",
      "r151",
      "r164",
      "r170",
      "r171",
      "r177",
      "r178",
      "r180",
      "r336",
      "r337",
      "r672"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 18.0,
       "parentTag": "us-gaap_NoninterestIncome",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise.",
        "label": "Revenue from Contract with Customer, Including Assessed Tax",
        "terseLabel": "Revenue from contract"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerIncludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "auth_ref": [
      "r623",
      "r628"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability.",
        "label": "Right-of-Use Asset Obtained in Exchange for Operating Lease Liability",
        "verboseLabel": "ROU assets obtained in the exchange for lease liabilities"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SalariesWagesAndOfficersCompensation": {
     "auth_ref": [],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome": {
       "order": 21.0,
       "parentTag": "us-gaap_NoninterestExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of expense for salary and wage arising from service rendered by nonofficer and officer employees. Excludes allocated cost, labor-related nonsalary expense, and direct and overhead labor cost included in cost of good and service sold.",
        "label": "Salary and Wage, Excluding Cost of Good and Service Sold",
        "terseLabel": "Employee compensation"
       }
      }
     },
     "localname": "SalariesWagesAndOfficersCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTable": {
     "auth_ref": [
      "r33"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule itemizing specific types of trade accounts and notes receivable, and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables.",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]",
        "terseLabel": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table]"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansMajorClassesOfLoansAndLeasesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock": {
     "auth_ref": [
      "r33"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the various types of trade accounts and notes receivable and for each the gross carrying value, allowance, and net carrying value as of the balance sheet date. Presentation is categorized by current, noncurrent and unclassified receivables.",
        "label": "Schedule of Accounts, Notes, Loans and Financing Receivable [Table Text Block]",
        "terseLabel": "Major Classes of Loans And Leases"
       }
      }
     },
     "localname": "ScheduleOfAccountsNotesLoansAndFinancingReceivableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LoansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r51",
      "r604",
      "r605"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of accumulated other comprehensive income (loss).",
        "label": "Schedule of Accumulated Other Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Components of Accumulated Other Comprehensive Income"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedOtherComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Securities, Available-for-sale [Line Items]",
        "terseLabel": "Debt Securities, Available-for-sale [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation of available-for-sale securities from cost basis to fair value.",
        "label": "Schedule of Available-for-sale Securities Reconciliation [Table Text Block]",
        "terseLabel": "Summary of Equity Securities"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAvailableForSaleSecuritiesTable": {
     "auth_ref": [
      "r222",
      "r227",
      "r235",
      "r236",
      "r237",
      "r240",
      "r736",
      "r737"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of available-for-sale securities which includes, but is not limited to, changes in the cost basis and fair value, fair value and gross unrealized gain (loss), fair values by type of security, contractual maturity and classification, amortized cost basis, contracts to acquire securities to be accounted for as available-for-sale, debt maturities, transfers to trading, change in net unrealized holding gain (loss) net of tax, continuous unrealized loss position fair value, aggregate losses qualitative disclosures, other than temporary impairment (OTTI) losses or other disclosures related to available for sale securities.",
        "label": "Schedule of Available-for-sale Securities [Table]",
        "terseLabel": "Schedule of Available-for-sale Securities [Table]"
       }
      }
     },
     "localname": "ScheduleOfAvailableForSaleSecuritiesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable": {
     "auth_ref": [
      "r502",
      "r503"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule reflecting each material business combination (or series of individually immaterial business combinations) completed during the period, including background, timing, and recognized assets and liabilities.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table]"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionDetail",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsSummaryOfBusinessAcquisitionsByAcquisitionParentheticalDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock": {
     "auth_ref": [
      "r502",
      "r503"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of a material business combination completed during the period, including background, timing, and recognized assets and liabilities. This table  does not include leveraged buyouts.",
        "label": "Schedule of Business Acquisitions, by Acquisition [Table Text Block]",
        "terseLabel": "Summary of Business Acquisitions, by Acquisition"
       }
      }
     },
     "localname": "ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComprehensiveIncomeLossTableTextBlock": {
     "auth_ref": [
      "r38"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of components of comprehensive income (loss). Includes, but is not limited to, foreign currency translation adjustments, foreign currency transactions  designated as economic hedges of a net investment in foreign entity, gain (loss) and prior service cost (credit) for pension plans and other postretirement benefit plans.",
        "label": "Comprehensive Income (Loss) [Table Text Block]",
        "terseLabel": "Components of Total Comprehensive Income"
       }
      }
     },
     "localname": "ScheduleOfComprehensiveIncomeLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "auth_ref": [
      "r399",
      "r400",
      "r403",
      "r404",
      "r415"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans.  Also includes schedule for fair value of plan assets by major categories of plan assets by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Defined Benefit Plans Disclosures [Table]",
        "terseLabel": "Schedule of Defined Benefit Plans Disclosures [Table]"
       }
      }
     },
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansNetPeriodicPensionCostDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r541",
      "r550",
      "r554"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Derivative Instruments, Gain (Loss) [Table Text Block]",
        "terseLabel": "Schedule of Derivative Financial Instruments on Statement of Income"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r546"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule of Derivative Instruments in Statement of Financial Position, Fair Value [Table Text Block]",
        "terseLabel": "Schedule of Notional Amount and Fair Value of Derivative Financial Instruments"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock": {
     "auth_ref": [
      "r135"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations.",
        "label": "Schedule of Earnings Per Share, Basic and Diluted [Table Text Block]",
        "verboseLabel": "Reconciliation of Numerator and Denominator of Basic Earnings Per Share with that of Diluted Earnings Per Share"
       }
      }
     },
     "localname": "ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShareTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r569",
      "r570"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block]",
        "terseLabel": "Schedule of Financial Assets and Liabilities Measured at Fair Value"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock": {
     "auth_ref": [
      "r547"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure for fair value hedging instruments of (a) the location and amount of gains and losses reported in the statement of financial performance and (b) the location and fair value amounts of the instruments reported in the statement of financial position.",
        "label": "Schedule of Fair Value Hedging Instruments, Statements of Financial Performance and Financial Position, Location [Table Text Block]",
        "terseLabel": "Summary of Carrying Amount Hedged Assets/(Liabilities)"
       }
      }
     },
     "localname": "ScheduleOfFairValueHedgingInstrumentsStatementsOfFinancialPerformanceAndFinancialPositionLocationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueOffBalanceSheetRisksTable": {
     "auth_ref": [
      "r587",
      "r588"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule detailing the information required and determined to be disclosed regarding the fair value of financial assets and financial liabilities, which are not recognized in the financial statements (off-balance sheet) because they fail to meet some other criterion for recognition.",
        "label": "Schedule of Fair Value, Off-balance Sheet Risks [Table]",
        "terseLabel": "Schedule of Fair Value, Off-balance Sheet Risks [Table]"
       }
      }
     },
     "localname": "ScheduleOfFairValueOffBalanceSheetRisksTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableAllowanceForCreditLossesTable": {
     "auth_ref": [
      "r255"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about allowance for credit loss on financing receivable.",
        "label": "Schedule of Financing Receivable, Allowance for Credit Losses [Table]",
        "terseLabel": "Schedule of Financing Receivable, Allowance for Credit Losses [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableAllowanceForCreditLossesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable": {
     "auth_ref": [
      "r267",
      "r275"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about credit quality indicator for financing receivable.",
        "label": "Schedule of Financing Receivable, Recorded Investment, Credit Quality Indicator [Table]",
        "terseLabel": "Schedule of Financing Receivable, Recorded Investment, Credit Quality Indicator [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableRecordedInvestmentCreditQualityIndicatorTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable": {
     "auth_ref": [
      "r196",
      "r197"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about financing receivable modified as troubled debt restructuring.",
        "label": "Schedule of Financing Receivable, Troubled Debt Restructurings [Table]",
        "terseLabel": "Schedule of Financing Receivable, Troubled Debt Restructurings [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivableTroubledDebtRestructuringsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfChargedOffTroubledDebtRestructuringsOnFinancingReceivablesDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfTroubledDebtRestructuringsSegregatedByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock": {
     "auth_ref": [
      "r201",
      "r261"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable on nonaccrual status.",
        "label": "Schedule of Financing Receivables, Non Accrual Status [Table Text Block]",
        "terseLabel": "Schedule of Nonaccrual Loans, Segregated by Class of Loans"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesNonAccrualStatusTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFinancingReceivablesPastDueTable": {
     "auth_ref": [
      "r256",
      "r276"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about aging analysis for financing receivable.",
        "label": "Schedule of Financing Receivables Past Due [Table]",
        "terseLabel": "Schedule of Financing Receivables Past Due [Table]"
       }
      }
     },
     "localname": "ScheduleOfFinancingReceivablesPastDueTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAgeAnalysisOfItsPastDueLoansSegregatedByClassOfLoansParentheticalDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfNonaccrualLoansSegregatedByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable": {
     "auth_ref": [
      "r291",
      "r293",
      "r673"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of assets, excluding financial assets and goodwill, lacking physical substance with a finite life.",
        "label": "Schedule of Finite-Lived Intangible Assets [Table]",
        "terseLabel": "Schedule of Finite-Lived Intangible Assets [Table]"
       }
      }
     },
     "localname": "ScheduleOfFiniteLivedIntangibleAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGoodwillTable": {
     "auth_ref": [
      "r289",
      "r290"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of goodwill and the changes during the year due to acquisition, sale, impairment or for other reasons.",
        "label": "Schedule of Goodwill [Table]",
        "terseLabel": "Schedule of Goodwill [Table]"
       }
      }
     },
     "localname": "ScheduleOfGoodwillTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfGoodwillTextBlock": {
     "auth_ref": [
      "r289",
      "r290"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of goodwill by reportable segment and in total which includes a rollforward schedule.",
        "label": "Schedule of Goodwill [Table Text Block]",
        "terseLabel": "Reconciliation of Goodwill"
       }
      }
     },
     "localname": "ScheduleOfGoodwillTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfImpairedFinancingReceivableTable": {
     "auth_ref": [
      "r193"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule of the recorded investment, unpaid principal balance, associated allowance, average recorded investment, accounting policies, and interest income recognized on the accrual and cash basis for impaired financing receivables by class of financing receivable.",
        "label": "Schedule of Impaired Financing Receivable [Table]"
       }
      }
     },
     "localname": "ScheduleOfImpairedFinancingReceivableTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfAmortizedCostLoansPledgedAsCollateralDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock": {
     "auth_ref": [
      "r289"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of goodwill and intangible assets, which may be broken down by segment or major class.",
        "label": "Schedule of Intangible Assets and Goodwill [Table Text Block]",
        "terseLabel": "Summary of Intangible Assets"
       }
      }
     },
     "localname": "ScheduleOfIntangibleAssetsAndGoodwillTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfInvestmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule of Investments [Line Items]",
        "terseLabel": "Schedule of Investments [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfInvestmentsTable": {
     "auth_ref": [
      "r788"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A container table for all schedule of investment items. It ties in the \"Legal Entity [Axis]\" to all of its contained line items.",
        "label": "Schedule of Investments [Table]",
        "terseLabel": "Schedule of Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "auth_ref": [
      "r320"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt.",
        "label": "Schedule of Maturities of Long-term Debt [Table Text Block]",
        "terseLabel": "Schedule of Maturities of Long-term Borrowings"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LongTermBorrowingsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r377"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments.",
        "label": "Schedule of Net Benefit Costs [Table Text Block]",
        "terseLabel": "Net Periodic Pension Cost"
       }
      }
     },
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EmployeeBenefitPlansTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNonvestedShareActivityTableTextBlock": {
     "auth_ref": [
      "r455"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the changes in outstanding nonvested shares.",
        "label": "Schedule of Nonvested Share Activity [Table Text Block]",
        "terseLabel": "Status of United's Nonvested Stock Option Awards"
       }
      }
     },
     "localname": "ScheduleOfNonvestedShareActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRealizedGainLossTableTextBlock": {
     "auth_ref": [
      "r239"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the proceeds from sales of available-for-sale securities and the gross realized gains and gross realized losses that have been included in earnings as a result of those sales.",
        "label": "Schedule of Realized Gain (Loss) [Table Text Block]",
        "terseLabel": "Summary of Gains or Losses on Proceeds from Maturities, Sales and Calls of Available for Sale Securities by Specific Identification Method"
       }
      }
     },
     "localname": "ScheduleOfRealizedGainLossTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r159",
      "r162",
      "r168",
      "r289"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table]",
        "terseLabel": "Schedule of Segment Reporting Information, by Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "auth_ref": [
      "r159",
      "r162",
      "r168",
      "r289"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule of Segment Reporting Information, by Segment [Table Text Block]",
        "terseLabel": "Summary of Segment Reporting Information"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfServicingAssetsAtAmortizedValueTextBlock": {
     "auth_ref": [
      "r658"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of activity in the balance of servicing assets subsequently measured at amortized cost. Includes, but is not limited to, beginning and ending balances, additions, disposals, and amortization.",
        "label": "Servicing Asset at Amortized Cost [Table Text Block]",
        "verboseLabel": "Summary of Activity in Mortgage Servicing Rights"
       }
      }
     },
     "localname": "ScheduleOfServicingAssetsAtAmortizedValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r444",
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]",
        "terseLabel": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock": {
     "auth_ref": [
      "r449",
      "r460",
      "r463"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value.",
        "label": "Share-based Compensation, Stock Options, Activity [Table Text Block]",
        "terseLabel": "Summary of Stock Option Plans"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of the number and weighted-average grant date fair value for restricted stock and restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock and restricted stock units that were granted, vested, or forfeited during the year.",
        "label": "Schedule of Share-based Compensation, Restricted Stock and Restricted Stock Units Activity [Table Text Block]",
        "terseLabel": "Changes to United's Restricted Common Shares"
       }
      }
     },
     "localname": "ScheduleOfSharebasedCompensationRestrictedStockAndRestrictedStockUnitsActivityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfSharesSubjectToMandatoryRedemptionBySettlementTermsAxis": {
     "auth_ref": [
      "r325",
      "r326",
      "r327"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents settlement terms for the group of mandatorily redeemable securities, including the description and the details of all terms for each outstanding financial instrument and each settlement option.",
        "label": "Schedule of Financial Instruments Subject to Mandatory Redemption by Settlement Terms [Axis]",
        "terseLabel": "Schedule of Financial Instruments Subject to Mandatory Redemption by Settlement Terms [Axis]"
       }
      }
     },
     "localname": "ScheduleOfSharesSubjectToMandatoryRedemptionBySettlementTermsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShortTermDebtTable": {
     "auth_ref": [
      "r25"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to borrowings under which repayment was required in less than twelve months (or normal operating cycle, if longer) after its issuance. It may include: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date and measures of the maximum and average amount outstanding during the period; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation.",
        "label": "Schedule of Short-term Debt [Table]",
        "terseLabel": "Schedule of Short-term Debt [Table]"
       }
      }
     },
     "localname": "ScheduleOfShortTermDebtTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "auth_ref": [
      "r518",
      "r519",
      "r522",
      "r523",
      "r524",
      "r525",
      "r527",
      "r528",
      "r529"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table]",
        "terseLabel": "Schedule of Variable Interest Entities [Table]"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "auth_ref": [
      "r524",
      "r525",
      "r527",
      "r528",
      "r529"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table Text Block]",
        "terseLabel": "Summary of Quantitative Information Related to Significant Involvement in Unconsolidated Variable Interest Entities"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock": {
     "auth_ref": [
      "r293"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of the amount of amortization expense expected to be recorded in succeeding fiscal years for finite-lived intangible assets.",
        "label": "Schedule of Finite-Lived Intangible Assets, Future Amortization Expense [Table Text Block]",
        "terseLabel": "Schedule of Anticipated Amortization Expense"
       }
      }
     },
     "localname": "ScheduleofFiniteLivedIntangibleAssetsFutureAmortizationExpenseTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IntangibleAssetsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuritiesInvestmentMember": {
     "auth_ref": [
      "r787"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This member categorizes all investments in securities to segregate them from other than security investments.",
        "label": "Securities Investment [Member]"
       }
      }
     },
     "localname": "SecuritiesInvestmentMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchase": {
     "auth_ref": [
      "r35",
      "r36",
      "r37",
      "r101",
      "r705"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Liabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount, after the effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Securities Sold under Agreements to Repurchase",
        "terseLabel": "Securities sold under agreements to repurchase"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchase",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [
      "r146",
      "r150",
      "r151",
      "r152",
      "r153",
      "r154",
      "r155",
      "r156",
      "r157",
      "r158",
      "r159",
      "r160",
      "r161",
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r170",
      "r171",
      "r172",
      "r173",
      "r175",
      "r180",
      "r765"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Segments [Domain]",
        "terseLabel": "Segments [Domain]"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Segment Reporting [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r146",
      "r148",
      "r149",
      "r159",
      "r163",
      "r169",
      "r173",
      "r174",
      "r175",
      "r176",
      "r177",
      "r179",
      "r180",
      "r181"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Reporting Disclosure [Text Block]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Segment Reporting Information [Line Items]",
        "terseLabel": "Segment Reporting Information [Line Items]"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SeriesOfIndividuallyImmaterialBusinessAcquisitionsMember": {
     "auth_ref": [
      "r503"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Represents the aggregation and reporting of combined amounts of individually immaterial business combinations that were completed during the period.",
        "label": "Series of Individually Immaterial Business Acquisitions [Member]",
        "terseLabel": "Series of Individually Immaterial Business Acquisitions [Member]"
       }
      }
     },
     "localname": "SeriesOfIndividuallyImmaterialBusinessAcquisitionsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ServiceOtherMember": {
     "auth_ref": [
      "r338"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Assistance, including, but not limited to, technology, license and maintenance, license and service, maintenance, oil and gas, financial service, and other financial service, classified as other.",
        "label": "Service, Other [Member]",
        "terseLabel": "Fees From Trust Services [Member]"
       }
      }
     },
     "localname": "ServiceOtherMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ServicingAsset": {
     "auth_ref": [
      "r652"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate amount of servicing assets that are subsequently measured at fair value and servicing assets that are subsequently measured using the amortization method.",
        "label": "Servicing Asset",
        "terseLabel": "Mortgage servicing rights",
        "verboseLabel": "MSRs, net of valuation allowance"
       }
      }
     },
     "localname": "ServicingAsset",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Servicing Asset [Abstract]"
       }
      }
     },
     "localname": "ServicingAssetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetAtAmortizedValue": {
     "auth_ref": [
      "r650",
      "r651",
      "r659"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amortized amount of contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset at Amortized Cost",
        "periodEndLabel": "MSRs ending balance",
        "periodStartLabel": "MSRs beginning balance"
       }
      }
     },
     "localname": "ServicingAssetAtAmortizedValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtAmortizedValueAdditions": {
     "auth_ref": [
      "r660"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of additions from purchases, assumption or transfer to contract to service financial assets under which the benefits of servicing are expected to more than adequately compensate the servicer.",
        "label": "Servicing Asset at Amortized Cost, Additions",
        "verboseLabel": "Purchased servicing"
       }
      }
     },
     "localname": "ServicingAssetAtAmortizedValueAdditions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetAtFairValueAmount": {
     "auth_ref": [
      "r650",
      "r651",
      "r652",
      "r654"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Fair value of an asset representing net future revenue from contractually specified servicing fees, late charges, and other ancillary revenues, in excess of future costs related to servicing arrangements.",
        "label": "Servicing Asset at Fair Value, Amount",
        "verboseLabel": "Estimated fair value of mortgage servicing rights"
       }
      }
     },
     "localname": "ServicingAssetAtFairValueAmount",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate": {
     "auth_ref": [
      "r653"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Discount rate used to estimate the fair value of servicing assets and servicing liabilities.",
        "label": "Servicing Assets and Servicing Liabilities at Fair Value, Assumptions Used to Estimate Fair Value, Discount Rate",
        "terseLabel": "Discount rate used in estimating the fair value of servicing rights",
        "verboseLabel": "Discount rate used in estimating the fair value of servicing rights"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueDiscountRate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueExpectedCreditLosses": {
     "auth_ref": [
      "r653"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of contractually collectible principal associated with a financial asset expected not to be collected due to default by the borrower.",
        "label": "Servicing Assets and Servicing Liabilities at Fair Value, Assumptions Used to Estimate Fair Value, Expected Credit Losses",
        "verboseLabel": "Deliquency rate used in determning fair value of servicing rights"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValueExpectedCreditLosses",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed": {
     "auth_ref": [
      "r653"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Estimated rate of prepayments of principal on servicing assets and servicing liabilities.",
        "label": "Servicing Assets and Servicing Liabilities at Fair Value, Assumptions Used to Estimate Fair Value, Prepayment Speed",
        "terseLabel": "Average range of constant prepayment rates",
        "verboseLabel": "Weighted average prepayment rates used in estimating the fair value of servicing rights"
       }
      }
     },
     "localname": "ServicingAssetsAndServicingLiabilitiesAtFairValueAssumptionsUsedToEstimateFairValuePrepaymentSpeed",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ServicingAssetsAtAmortizedValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Servicing Asset at Amortized Cost [Line Items]"
       }
      }
     },
     "localname": "ServicingAssetsAtAmortizedValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetsAtAmortizedValueTable": {
     "auth_ref": [
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Disclosure of information about activity in the balance of servicing assets subsequently measured at amortized cost. Includes, but is not limited to, beginning and ending balances, additions, disposals, and amortization.",
        "label": "Servicing Asset at Amortized Cost [Table]"
       }
      }
     },
     "localname": "ServicingAssetsAtAmortizedValueTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetsAtFairValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Servicing Assets at Fair Value [Line Items]"
       }
      }
     },
     "localname": "ServicingAssetsAtFairValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ServicingAssetsAtFairValueTable": {
     "auth_ref": [
      "r654",
      "r655",
      "r656",
      "r657",
      "r666"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Activity in the balance of servicing assets subsequently measured at fair value (including a description of where changes in fair value are reported in the statement of income for each period for which results of operations are presented), including but not limited to, the following: beginning and ending balances, additions (through purchases of servicing assets and servicing assets that result from transfers of financial assets), disposals, changes in fair value during the period resulting from changes in valuations inputs or assumptions used in the valuation model, other changes in fair value along with a description of those changes, and other changes that affect the balance along with a description of those changes.",
        "label": "Schedule of Servicing Assets at Fair Value [Table]"
       }
      }
     },
     "localname": "ServicingAssetsAtFairValueTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r445"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period",
        "terseLabel": "Vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r454"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeited in Period",
        "negatedLabel": "Shares, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r459"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average fair value as of the grant date of equity-based award plans other than stock (unit) option plans that were not exercised or put into effect as a result of the occurrence of a terminating event.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r457"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period",
        "terseLabel": "Shares, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r457"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r456"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Number",
        "periodEndLabel": "Number of Shares, Outstanding, Ending balance",
        "periodStartLabel": "Number of Shares, Outstanding, Beginning balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r456"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Weighted-Average Grant Date Fair Value Per Share, Outstanding, Ending balance",
        "periodStartLabel": "Weighted-Average Grant Date Fair Value Per Share, Outstanding, Beginning balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r458"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period",
        "negatedLabel": "Shares, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r458"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The weighted average fair value as of grant date pertaining to an equity-based award plan other than a stock (or unit) option plan for which the grantee gained the right during the reporting period, by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash in accordance with the terms of the arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]",
        "terseLabel": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized": {
     "auth_ref": [
      "r447"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares authorized for issuance under share-based payment arrangement.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Authorized",
        "terseLabel": "Authorized shares of stock, option plan, maximum"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber": {
     "auth_ref": [
      "r452"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of shares into which fully or partially vested stock options outstanding as of the balance sheet date can be currently converted under the option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Number",
        "terseLabel": "Shares, Exercisable at June 30, 2020"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice": {
     "auth_ref": [
      "r452"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The weighted-average price as of the balance sheet date at which grantees can acquire the shares reserved for issuance on vested portions of options outstanding and currently exercisable under the stock option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Exercisable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue": {
     "auth_ref": [
      "r462"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of accumulated difference between fair value of underlying shares on dates of exercise and exercise price on options exercised (or share units converted) into shares.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period, Intrinsic Value",
        "terseLabel": "Total intrinsic value of options exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod": {
     "auth_ref": [
      "r454"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The number of shares under options that were cancelled during the reporting period as a result of occurrence of a terminating event specified in contractual agreements pertaining to the stock option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures in Period",
        "negatedLabel": "Shares, Forfeited or expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Gross number of share options (or share units) granted during the period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross",
        "verboseLabel": "Shares, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r461"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue": {
     "auth_ref": [
      "r466"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount by which the current fair value of the underlying stock exceeds the exercise price of options outstanding.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Outstanding at June 30, 2020"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingIntrinsicValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber": {
     "auth_ref": [
      "r451",
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of options outstanding, including both vested and non-vested options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number",
        "periodEndLabel": "Shares, Outstanding, Ending balance",
        "periodStartLabel": "Shares, Outstanding, Beginning balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice": {
     "auth_ref": [
      "r450"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price",
        "periodEndLabel": "Weighted Average Exercise Price, Outstanding, Ending balance",
        "periodStartLabel": "Weighted Average Exercise Price, Outstanding, Beginning balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r441",
      "r448"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Equity Award [Domain]",
        "terseLabel": "Equity Award [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationChangesToUnitedsRestrictedCommonSharesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average price at which option holders acquired shares when converting their stock options into shares.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Exercised"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average price at which grantees could have acquired the underlying shares with respect to stock options that were terminated.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Forfeitures in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Forfeited or expired"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsForfeituresInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average per share amount at which grantees can acquire shares of common stock by exercise of options.",
        "label": "Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price",
        "terseLabel": "Weighted Average Exercise Price, Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod": {
     "auth_ref": [
      "r446"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period",
        "terseLabel": "Maximum term for awards granted (years)"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1": {
     "auth_ref": [
      "r466"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of difference between fair value of the underlying shares reserved for issuance and exercise price of vested portions of options outstanding and currently exercisable.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Intrinsic Value",
        "terseLabel": "Aggregate Intrinsic Value, Exercisable at June 30, 2020"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1": {
     "auth_ref": [
      "r466"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average remaining contractual term for vested portions of options outstanding and currently exercisable or convertible, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted Average Remaining Contractual Term, Exercisable at June 30, 2020"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of non-vested options outstanding.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested, Number of Shares",
        "periodEndLabel": "Shares, Nonvested, Ending balance",
        "periodStartLabel": "Shares, Nonvested, Beginning balance"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedNumberOfShares",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of non-vested options forfeited.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested Options Forfeited, Number of Shares",
        "negatedLabel": "Shares, Forfeited or expired"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average grant-date fair value of non-vested options forfeited.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested Options Forfeited, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Forfeited or expired"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average grant-date fair value of non-vested options outstanding.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price",
        "periodEndLabel": "Weighted-Average Grant Date Fair Value Per Share, Nonvested Ending balance",
        "periodStartLabel": "Weighted-Average Grant Date Fair Value Per Share, Nonvested Beginning balance"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2": {
     "auth_ref": [
      "r464"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average remaining contractual term for option awards outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term",
        "terseLabel": "Weighted Average Remaining Contractual Term, Outstanding at June 30, 2020"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of options vested.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Number of Shares",
        "negatedLabel": "Shares, Vested"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedNumberOfShares",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Weighted average grant-date fair value of options vested.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Weighted Average Grant Date Fair Value",
        "terseLabel": "Weighted-Average Grant Date Fair Value Per Share, Vested"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/StockBasedCompensationStatusOfUnitedsNonvestedStockOptionAwardsDetail"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharesIssued": {
     "auth_ref": [
      "r328"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares of stock issued as of the balance sheet date, including shares that had been issued and were previously outstanding but which are now held in the treasury.",
        "label": "Shares, Issued",
        "periodEndLabel": "Ending Balance, shares",
        "periodStartLabel": "Beginning Balance, shares"
       }
      }
     },
     "localname": "SharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_SharesSubjectToMandatoryRedemptionFinancialInstrumentDomain": {
     "auth_ref": [
      "r326",
      "r327"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Identifying description of each financial instrument that embodies an unconditional obligation requiring the issuer to redeem the securities by transferring the assets at a specified or determinable date (or dates) or upon an event that is certain to occur. Examples are preferred stock or trust preferred securities, each of which has redemption rights beyond the control of the issuer on a specified date or upon an event that is certain to occur.",
        "label": "Financial Instruments Subject to Mandatory Redemption, Financial Instrument [Domain]",
        "terseLabel": "Financial Instruments Subject to Mandatory Redemption, Financial Instrument [Domain]"
       }
      }
     },
     "localname": "SharesSubjectToMandatoryRedemptionFinancialInstrumentDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermContractWithCustomerMember": {
     "auth_ref": [
      "r339"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Contract with customer in which duration is classified as short-term.",
        "label": "Short-term Contract with Customer [Member]",
        "terseLabel": "Short-term Contract with Customer [Member]"
       }
      }
     },
     "localname": "ShortTermContractWithCustomerMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermDebtLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Short-term Debt [Line Items]",
        "terseLabel": "Short-term Debt [Line Items]"
       }
      }
     },
     "localname": "ShortTermDebtLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowingsAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTextBlock": {
     "auth_ref": [
      "r324"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for short-term debt.",
        "label": "Short-term Debt [Text Block]",
        "terseLabel": "Short-Term Borrowings"
       }
      }
     },
     "localname": "ShortTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ShortTermBorrowings"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShorttermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents the amount of short-term debt existing as of the balance sheet date.",
        "label": "Short-term Debt, Fair Value",
        "terseLabel": "Short-term borrowings"
       }
      }
     },
     "localname": "ShorttermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r105"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Significant Accounting Policies [Text Block]",
        "terseLabel": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SpecialMentionMember": {
     "auth_ref": [
      "r194",
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A category of financing receivables considered to have potential weaknesses that deserve management's close attention. If left uncorrected, those potential weaknesses may result in a deterioration of the repayment prospects for the asset or of the creditor's position at some future date.",
        "label": "Special Mention [Member]",
        "terseLabel": "Special Mention [Member]"
       }
      }
     },
     "localname": "SpecialMentionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StandbyLettersOfCreditMember": {
     "auth_ref": [
      "r315",
      "r319",
      "r515",
      "r782"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "An irrevocable undertaking (typically by a financial institution) to guarantee payment of a specified financial obligation.",
        "label": "Standby Letters of Credit [Member]",
        "terseLabel": "Standby Letters of Credit [Member]"
       }
      }
     },
     "localname": "StandbyLettersOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r1",
      "r146",
      "r150",
      "r151",
      "r152",
      "r153",
      "r154",
      "r155",
      "r156",
      "r157",
      "r158",
      "r159",
      "r160",
      "r161",
      "r164",
      "r165",
      "r166",
      "r167",
      "r169",
      "r170",
      "r171",
      "r172",
      "r173",
      "r175",
      "r180",
      "r289",
      "r301",
      "r302",
      "r303",
      "r765"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Segments [Axis]",
        "terseLabel": "Segments [Axis]"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfChangesInFairValueIncludedInEarningsOfFinancialInstrumentsForWhichFairValueOptionHasBeenElectedDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsReconciliationOfGoodwillDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsSummaryOfIntangibleAssetsDetail",
      "http://www.ubsi-inc.com/role/SegmentInformationSummaryOfSegmentReportingInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementClassOfStockAxis": {
     "auth_ref": [
      "r12",
      "r13",
      "r14",
      "r97",
      "r98",
      "r128",
      "r129",
      "r130",
      "r133",
      "r135",
      "r143",
      "r144",
      "r145",
      "r243",
      "r328",
      "r591"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by the different classes of stock of the entity.",
        "label": "Class of Stock [Axis]"
       }
      }
     },
     "localname": "StatementClassOfStockAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail",
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail",
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r32",
      "r106",
      "r107",
      "r109",
      "r112",
      "r121",
      "r124",
      "r142",
      "r248",
      "r328",
      "r333",
      "r472",
      "r473",
      "r474",
      "r489",
      "r490",
      "r599",
      "r600",
      "r601",
      "r602",
      "r603",
      "r605",
      "r771",
      "r772",
      "r773"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Equity Components [Axis]",
        "terseLabel": "Equity Components [Axis]",
        "verboseLabel": "Statement Equity Components[Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]",
        "terseLabel": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail",
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail",
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfIncomeAndComprehensiveIncomeAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Comprehensive Income [Abstract]"
       }
      }
     },
     "localname": "StatementOfIncomeAndComprehensiveIncomeAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Statement of Stockholders' Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r106",
      "r107",
      "r109",
      "r142",
      "r672"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]",
        "terseLabel": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/CreditQualityAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsSummaryOfCarryingAmountHedgedAssetsLiabilitiesDetail",
      "http://www.ubsi-inc.com/role/IntangibleAssetsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables",
      "http://www.ubsi-inc.com/role/LeasesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail",
      "http://www.ubsi-inc.com/role/LeasesMaturitiesOfLeaseLiabilitiesByYearDetail",
      "http://www.ubsi-inc.com/role/LeasesOtherInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalBalanceSheetInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LeasesSupplementalCashFlowInformationRelatedToLeasesDetail",
      "http://www.ubsi-inc.com/role/LoansAdditionalInformationDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesAcquisitions": {
     "auth_ref": [
      "r13",
      "r14",
      "r333"
     ],
     "lang": {
      "en-US": {
       "role": {
        "definitionGuidance": "Acquisition, Shares",
        "documentation": "Number of shares of stock issued during the period pursuant to acquisitions.",
        "label": "Stock Issued During Period, Shares, Acquisitions",
        "terseLabel": "Acquisition, Shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross": {
     "auth_ref": [
      "r328",
      "r333"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total number of shares issued during the period, including shares forfeited, as a result of Restricted Stock Awards.",
        "label": "Stock Issued During Period, Shares, Restricted Stock Award, Gross",
        "verboseLabel": "Grant of restricted stock, shares"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised": {
     "auth_ref": [
      "r13",
      "r14",
      "r328",
      "r333",
      "r453"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of share options (or share units) exercised during the current period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Options, Exercises in Period",
        "negatedLabel": "Shares, Exercised",
        "terseLabel": "Common stock options exercised, shares",
        "verboseLabel": "Shares issued related stock option exercises"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical",
      "http://www.ubsi-inc.com/role/StockBasedCompensationAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/StockBasedCompensationSummaryOfStockOptionPlansDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueAcquisitions": {
     "auth_ref": [
      "r32",
      "r328",
      "r333"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of stock issued pursuant to acquisitions during the period.",
        "label": "Stock Issued During Period, Value, Acquisitions",
        "terseLabel": "Acquisition, Values"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueAcquisitions",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures": {
     "auth_ref": [
      "r13",
      "r14",
      "r328",
      "r333"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of stock related to Restricted Stock Awards forfeited during the period.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Forfeitures",
        "negatedLabel": "Forfeiture of restricted stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardGross": {
     "auth_ref": [
      "r13",
      "r14",
      "r328",
      "r333"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Aggregate value of stock related to Restricted Stock Awards issued during the period.",
        "label": "Stock Issued During Period, Value, Restricted Stock Award, Gross",
        "terseLabel": "Grant of restricted stock"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueRestrictedStockAwardGross",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueShareBasedCompensation": {
     "auth_ref": [
      "r13",
      "r14",
      "r333",
      "r443",
      "r461"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value, after forfeiture, of shares issued under share-based payment arrangement. Excludes employee stock ownership plan (ESOP).",
        "label": "Shares Issued, Value, Share-based Payment Arrangement, after Forfeiture, Total",
        "verboseLabel": "Business combination stock options issued"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueShareBasedCompensation",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised": {
     "auth_ref": [
      "r32",
      "r328",
      "r333"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value of stock issued as a result of the exercise of stock options.",
        "label": "Stock Issued During Period, Value, Stock Options Exercised",
        "terseLabel": "Common stock options exercised"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueStockOptionsExercised",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r14",
      "r19",
      "r20",
      "r98",
      "r203",
      "r243",
      "r591"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 11.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Stockholders' Equity Attributable to Parent",
        "periodEndLabel": "Ending Balance",
        "periodStartLabel": "Beginning Balance",
        "totalLabel": "TOTAL SHAREHOLDERS' EQUITY"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeComponentsOfAccumulatedOtherComprehensiveIncomeDetail",
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Stockholders' Equity Attributable to Parent [Abstract]",
        "terseLabel": "Shareholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubleaseIncome": {
     "auth_ref": [
      "r621",
      "r628"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail": {
       "order": 2.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of sublease income excluding finance and operating lease expense.",
        "label": "Sublease Income",
        "negatedLabel": "Sublease income"
       }
      }
     },
     "localname": "SubleaseIncome",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/LeasesComponentsOfLeaseExpenseDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SubordinatedDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This element represents domestic or foreign subordinated debt. Subordinated debt has a lower priority of repayment in liquidation of the entity's assets.",
        "label": "Subordinated Debt [Member]"
       }
      }
     },
     "localname": "SubordinatedDebtMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubstandardMember": {
     "auth_ref": [
      "r194",
      "r267"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "A category of financing receivables that are inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the creditor will sustain some loss if the deficiencies are not corrected.",
        "label": "Substandard [Member]",
        "terseLabel": "Substandard [Member]"
       }
      }
     },
     "localname": "SubstandardMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfCreditQualityIndicatorsInformationByClassOfLoansDetail",
      "http://www.ubsi-inc.com/role/CreditQualityScheduleOfRiskCategoryOfLoansByClassOfLoansDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Supplemental Cash Flow Information [Abstract]",
        "terseLabel": "Supplemental information"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TextBlockAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Text Block [Abstract]"
       }
      }
     },
     "localname": "TextBlockAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransferToOtherRealEstate": {
     "auth_ref": [
      "r94",
      "r95",
      "r96"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Value transferred from mortgage loans to real estate owned (REO) in noncash transactions.",
        "label": "Real Estate Owned, Transfer to Real Estate Owned",
        "terseLabel": "Transfers of loans to OREO"
       }
      }
     },
     "localname": "TransferToOtherRealEstate",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CondensedConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r231",
      "r233",
      "r634",
      "r635",
      "r636",
      "r637",
      "r638",
      "r639",
      "r640",
      "r641",
      "r642",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r654",
      "r655",
      "r656",
      "r657",
      "r659",
      "r660",
      "r661",
      "r662",
      "r663",
      "r664",
      "r665",
      "r666",
      "r668",
      "r669",
      "r670"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]",
        "terseLabel": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CommitmentsAndContingentLiabilitiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfDerivativeFinancialInstrumentsOnStatementsOfIncomeDetail",
      "http://www.ubsi-inc.com/role/DerivativeFinancialInstrumentsScheduleOfNotionalAmountAndFairValueDerivativeFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfAdditionalInformationAboutFinancialAssetsAndLiabilitiesMeasuredAtFairValueUtilizedLevel3Detail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfEstimatedFairValuesOfFinancialInstrumentsDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfEquitySecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockMember": {
     "auth_ref": [
      "r31",
      "r334"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Shares of an entity that have been repurchased by the entity. This stock has no voting rights and receives no dividends. Note that treasury stock may be recorded at its total cost or separately as par (or stated) value and additional paid in capital. Classified within stockholders' equity if nonredeemable or redeemable solely at the option of the issuer. Classified within temporary equity if redemption is outside the control of the issuer.",
        "label": "Treasury Stock [Member]",
        "terseLabel": "Treasury Stock [Member]"
       }
      }
     },
     "localname": "TreasuryStockMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity",
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TreasuryStockShares": {
     "auth_ref": [
      "r31",
      "r334"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of common and preferred shares that were previously issued and that were repurchased by the issuing entity and held in treasury on the financial statement date. This stock has no voting rights and receives no dividends.",
        "label": "Treasury Stock, Shares",
        "terseLabel": "Common stock, shares in treasury"
       }
      }
     },
     "localname": "TreasuryStockShares",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheetsParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockSharesAcquired": {
     "auth_ref": [
      "r14",
      "r328",
      "r333"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of shares that have been repurchased during the period and are being held in treasury.",
        "label": "Treasury Stock, Shares, Acquired",
        "terseLabel": "Purchase of treasury stock, shares"
       }
      }
     },
     "localname": "TreasuryStockSharesAcquired",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquityParenthetical"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_TreasuryStockValue": {
     "auth_ref": [
      "r31",
      "r334",
      "r335"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets": {
       "order": 17.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The amount allocated to treasury stock. Treasury stock is common and preferred shares of an entity that were issued, repurchased by the entity, and are held in its treasury.",
        "label": "Treasury Stock, Value",
        "negatedLabel": "Treasury stock, at cost"
       }
      }
     },
     "localname": "TreasuryStockValue",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TreasuryStockValueAcquiredCostMethod": {
     "auth_ref": [
      "r328",
      "r333",
      "r334"
     ],
     "crdr": "debit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Equity impact of the cost of common and preferred stock that were repurchased during the period. Recorded using the cost method.",
        "label": "Treasury Stock, Value, Acquired, Cost Method",
        "negatedLabel": "Purchase of treasury stock"
       }
      }
     },
     "localname": "TreasuryStockValueAcquiredCostMethod",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementOfChangesInShareholdersEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock": {
     "auth_ref": [
      "r196",
      "r197"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of financing receivable modified as troubled debt restructuring.",
        "label": "Troubled Debt Restructurings on Financing Receivables [Table Text Block]",
        "terseLabel": "Schedule of Troubled Debt Restructurings, Segregated by Class of Loans"
       }
      }
     },
     "localname": "TroubledDebtRestructuringsOnFinancingReceivablesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/CreditQualityTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TrustPreferredSecuritiesSubjectToMandatoryRedemptionMember": {
     "auth_ref": [
      "r326",
      "r327"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Preferred securities that embody an unconditional obligation requiring the issuer to redeem the securities by transferring the assets at a specified or determinable date (or dates) or upon an event that is certain to occur, that are issued by a consolidated trust to outside investors where the trust uses the proceeds of the issuance of those securities to purchase, from the financial institution that established the trust, an equivalent amount of junior subordinated debentures or other loans having stated maturities.",
        "label": "Trust Preferred Securities Subject to Mandatory Redemption [Member]",
        "terseLabel": "Trust Preferred Securities [Member]"
       }
      }
     },
     "localname": "TrustPreferredSecuritiesSubjectToMandatoryRedemptionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MergersAndAcquisitionsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r111",
      "r112",
      "r113",
      "r114",
      "r245",
      "r246",
      "r247",
      "r248",
      "r249",
      "r250",
      "r468",
      "r469",
      "r470",
      "r471",
      "r472",
      "r473",
      "r474",
      "r475",
      "r487",
      "r488",
      "r489",
      "r490",
      "r674",
      "r675",
      "r676",
      "r769",
      "r770",
      "r771",
      "r772",
      "r773",
      "r774",
      "r775",
      "r776",
      "r777",
      "r778",
      "r779",
      "r780"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Type of Adoption [Domain]",
        "terseLabel": "Type of Adoption [Domain]"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/AllowanceForCreditLossesScheduleOfAllowanceForLoanLossesAndCarryingAmountOfLoansDetail",
      "http://www.ubsi-inc.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USGovernmentCorporationsAndAgenciesSecuritiesMember": {
     "auth_ref": [
      "r735"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "This category includes information about debt issued by US Government Corporations and Agencies. Investments in such US Government Corporations may include debt securities issued by the Government National Mortgage Association (Ginnie Mae) and by the Federal National Mortgage Association (Fannie Mae) and the Federal Home Loan Mortgage Corporation (Freddie Mac).",
        "label": "US Government Corporations and Agencies Securities [Member]",
        "terseLabel": "U.S. Treasury Securities and Obligations of U.S. Government Corporations and Agencies [Member]"
       }
      }
     },
     "localname": "USGovernmentCorporationsAndAgenciesSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USStatesAndPoliticalSubdivisionsMember": {
     "auth_ref": [
      "r366",
      "r781"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Bonds or similar securities issued by state, city, or local US governments or the agencies operated by state, city, or local governments. Debt securities issued by state governments may include bond issuances of US state authorities including, for example, but not limited to, housing authorities, dormitory authorities, and general obligations while debt securities issued by political subdivisions of US states would include, for example, debt issuances by county, borough, city, or municipal governments.",
        "label": "US States and Political Subdivisions Debt Securities [Member]",
        "terseLabel": "State and Political Subdivisions [Member]"
       }
      }
     },
     "localname": "USStatesAndPoliticalSubdivisionsMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfAmortizedCostAndEstimatedFairValuesOfAvailableForSaleSecuritiesDetail",
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesSummaryOfSecuritiesAvailableForSaleInAnUnrealizedLossPositionDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnderlyingAssetClassAxis": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Information by underlying asset class.",
        "label": "Underlying Asset Class [Axis]",
        "terseLabel": "Underlying Asset Class [Axis]"
       }
      }
     },
     "localname": "UnderlyingAssetClassAxis",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UnderlyingAssetClassDomain": {
     "auth_ref": [
      "r559"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Major types of referenced/underlying asset classes (for example, corporate debt, sovereign debt, and structured finance).",
        "label": "Underlying Asset Class [Domain]",
        "terseLabel": "Underlying Asset Class [Domain]"
       }
      }
     },
     "localname": "UnderlyingAssetClassDomain",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsScheduleOfFinancialAssetsAndLiabilitiesMeasuredAtFairValueDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnrealizedGainLossOnCashFlowHedgingInstruments": {
     "auth_ref": [
      "r548"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) related to derivatives designated as cash flow hedging instruments, recorded in results of operations to the extent that the cash flow hedge is determined to be ineffective.",
        "label": "Unrealized Gain (Loss) on Cash Flow Hedging Instruments",
        "verboseLabel": "Net reclassification adjustment for losses"
       }
      }
     },
     "localname": "UnrealizedGainLossOnCashFlowHedgingInstruments",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ComprehensiveIncomeReclassificationsOutOfAccumulatedOtherComprehensiveIncomeDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Tabular disclosure of unrealized gains and losses on investments.",
        "label": "Unrealized Gain (Loss) on Investments [Table Text Block]",
        "terseLabel": "Summary of Securities Available for Sale in an Unrealized Loss Position"
       }
      }
     },
     "localname": "UnrealizedGainLossOnInvestmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/InvestmentSecuritiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued": {
     "auth_ref": [
      "r483"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Amount of interest expense accrued for an underpayment of income taxes.",
        "label": "Unrecognized Tax Benefits, Interest on Income Taxes Accrued",
        "terseLabel": "Accrued interest related to uncertain tax positions"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/IncomeTaxesAdditionalInformationDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance": {
     "auth_ref": [
      "r668"
     ],
     "crdr": "credit",
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Reflects the estimated amount of impairment as of the balance sheet date of recognized servicing assets that are being amortized in proportion to and over the period of estimated net servicing income or loss.",
        "label": "Valuation Allowance for Impairment of Recognized Servicing Assets, Balance",
        "negatedPeriodEndLabel": "MSRs valuation allowance ending balance",
        "periodStartLabel": "MSRs valuation allowance beginning balance"
       }
      }
     },
     "localname": "ValuationAllowanceForImpairmentOfRecognizedServicingAssetsBalance",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowanceForImpairmentOfRecognizedServicingAssetsPeriodIncreaseDecrease": {
     "auth_ref": [
      "r667"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The net increase (decrease) in the valuation allowance for servicing assets subsequently measured using the amortization method.",
        "label": "Valuation Allowance for Impairment of Recognized Servicing Assets, Period Increase (Decrease)",
        "presentationGuidance": "YTD Losses, Mortgage servicing rights",
        "terseLabel": "MSRs impairment",
        "verboseLabel": "Temporary impairment charge of mortgage servicing rights"
       }
      }
     },
     "localname": "ValuationAllowanceForImpairmentOfRecognizedServicingAssetsPeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/FairValueMeasurementsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/FairValueMeasurementsSummaryOfFinancialAssetsMeasuredAtFairValueOnNonrecurringBasisDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsAdditionalInformationDetail",
      "http://www.ubsi-inc.com/role/MortageServicingRightsSummaryOfActivityInMortgageServicingRightsDetail"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityDisclosureTextBlock": {
     "auth_ref": [
      "r530"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The entire disclosure for a variable interest entity (VIE), including but not limited to, judgments and assumptions in determining whether to consolidate and in identifying the primary beneficiary, gain (loss) recognized on the initial consolidation of the VIE, terms of arrangements, amounts and classification of the VIE's assets and liabilities, and the entity's maximum exposure to loss.",
        "label": "Variable Interest Entity Disclosure [Text Block]",
        "terseLabel": "Variable Interest Entities"
       }
      }
     },
     "localname": "VariableInterestEntityDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Variable Interest Entity [Line Items]",
        "terseLabel": "Variable Interest Entity [Line Items]"
       }
      }
     },
     "localname": "VariableInterestEntityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesInformationRelatedToStatutoryTrustsDetail",
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityNotPrimaryBeneficiaryDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Variable Interest Entity, Not Primary Beneficiary, Disclosures [Abstract]"
       }
      }
     },
     "localname": "VariableInterestEntityNotPrimaryBeneficiaryDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_VariableInterestEntityNotPrimaryBeneficiaryMember": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Variable Interest Entities (VIE) in which the entity does not have a controlling financial interest (as defined) and of which it is therefore not the primary beneficiary. VIEs of which the entity is not the primary beneficiary because it does not have the power to direct the activities of the VIE that most significantly impact the VIE's economic performance and for which it does not have the obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE are not included in the consolidated financial statements of the entity.",
        "label": "Variable Interest Entity, Not Primary Beneficiary [Member]"
       }
      }
     },
     "localname": "VariableInterestEntityNotPrimaryBeneficiaryMember",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesSummaryOfQuantitativeInformationRelatedToSignificantInvolvementInUnconsolidatedVariableInterestEntitiesDetail"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_VariableInterestEntityOwnershipPercentage": {
     "auth_ref": [
      "r526"
     ],
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Percentage of the Variable Interest Entity's (VIE) voting interest owned by (or beneficial interest in) the reporting entity (directly or indirectly).",
        "label": "Variable Interest Entity, Qualitative or Quantitative Information, Ownership Percentage",
        "terseLabel": "Percentage of equity shares of each trust owned by the company"
       }
      }
     },
     "localname": "VariableInterestEntityOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/VariableInterestEntitiesAdditionalInformationDetail"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment": {
     "auth_ref": [
      "r135"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": 4.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The sum of dilutive potential common shares or units used in the calculation of the diluted per-share or per-unit computation.",
        "label": "Weighted Average Number Diluted Shares Outstanding Adjustment",
        "verboseLabel": "Equivalents from\u00a0stock options"
       }
      }
     },
     "localname": "WeightedAverageNumberDilutedSharesOutstandingAdjustment",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r127",
      "r135"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Diluted",
        "totalLabel": "Average diluted shares outstanding"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-US": {
       "role": {
        "label": "Weighted Average Number of Shares Outstanding, Diluted [Abstract]",
        "terseLabel": "Average outstanding shares:"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r125",
      "r135"
     ],
     "calculation": {
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail": {
       "order": 3.0,
       "parentTag": "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding",
       "weight": 1.0
      }
     },
     "lang": {
      "en-US": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Average common shares outstanding",
        "verboseLabel": "Basic"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2020-01-31",
     "presentation": [
      "http://www.ubsi-inc.com/role/ConsolidatedStatementsOfIncome",
      "http://www.ubsi-inc.com/role/EarningsPerShareReconciliationOfNumeratorAndDenominatorOfBasicEarningsPerShareWithThatOfDilutedEarningsPerShareDetail"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 8
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=6359566&loc=d3e326-107755"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(e),(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(a)(i))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08.(m)(1)(i)(A)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04.(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21914-107793"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21930-107793"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "27",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e22044-107793"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21711-107793"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=115929471&loc=d3e21728-107793"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22694-107794"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22595-107794"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(27))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22644-107794"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22658-107794"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=109234566&loc=d3e22663-107794"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1448-109256"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1377-109256"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1505-109256"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1252-109256"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1278-109256"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "55",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e2626-109256"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=SL5780133-109256"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=121326447&loc=d3e1337-109256"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=120380238&loc=d3e3842-109258"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=120380238&loc=d3e4984-109258"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "260",
   "URI": "http://asc.fasb.org/topic&trid=2144383"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70191-108054"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6828210&loc=d3e70229-108054"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70478-108055"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8657-108599"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8672-108599"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8721-108599"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8721-108599"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8736-108599"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8813-108599"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "26",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8844-108599"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8924-108599"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e8981-108599"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(4))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "http://asc.fasb.org/topic&trid=2134510"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4428-111522"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121593590&loc=d3e4437-111522"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5162-111524"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(4)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953423-111524"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5212-111524"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953659-111524"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5066-111524"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953676-111524"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953682-111524"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5074-111524"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=d3e5111-111524"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121611835&loc=SL6953401-111524"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74512-122707"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.L.1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=27010918&loc=d3e74567-122707"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196772"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10152-111534"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)(ii)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121614798&loc=d3e15032-111544"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "30",
   "Topic": "310",
   "URI": "http://asc.fasb.org/subtopic&trid=2196854"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=121585226&loc=d3e18845-111554"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "310",
   "URI": "http://asc.fasb.org/topic&trid=2196771"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26610-111562"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=d3e26853-111562"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=SL6284422-111562"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121553693&loc=SL6284427-111562"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27405-111563"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL6283291-111563"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aaa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27161-111563"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27198-111563"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(aa)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.14)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(dd)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27232-111563"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL120269820-111563"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27290-111563"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27337-111563"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27340-111563"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=SL6284393-111563"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)-(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=121645371&loc=d3e27357-111563"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL82887624-210437"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599878&loc=SL82895884-210446"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919244-210447"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919249-210447"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919253-210447"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19-26)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919258-210447"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919265-210447"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919265-210447"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919265-210447"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919265-210447"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919230-210447"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121599337&loc=SL82919230-210447"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921830-210448"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921833-210448"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22 (b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921835-210448"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82921842-210448"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "79",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922352-210448"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "80",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121647567&loc=SL82922355-210448"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/subtopic&trid=82887181"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121558606&loc=SL82898722-210454"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922888-210455"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922895-210455"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(i)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121582814&loc=SL82922900-210455"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/subtopic&trid=82887182"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=120320667&loc=SL49117168-202975"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13854-109267"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(1)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(3)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=66006027&loc=d3e16323-109275"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "350",
   "URI": "http://asc.fasb.org/topic&trid=2144416"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=77885760&loc=SL35686385-199418"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "440",
   "URI": "http://asc.fasb.org/extlink&oid=121559207&loc=d3e25336-109308"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14394-108349"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29,30)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14435-108349"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14453-108349"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14472-108349"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14557-108349"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12021-110248"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12021-110248"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12053-110248"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121555522&loc=d3e12069-110248"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "460",
   "URI": "http://asc.fasb.org/extlink&oid=121596127&loc=d3e12803-110250"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=6802200&loc=d3e1835-112601"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=6802200&loc=SL6230698-112601"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=120520924&loc=SL6031897-161870"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=7516071&loc=d3e13374-112631"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=118255708&loc=SL5909891-110878"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=109262807&loc=d3e22026-110879"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=109262807&loc=d3e22047-110879"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3,4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21506-112644"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21521-112644"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=109259400&loc=d3e21538-112644"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=6405813&loc=d3e23239-112655"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=6405834&loc=d3e23315-112656"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=121551570&loc=SL49130690-203046-203046"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=d3e1703-114919"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=109237824&loc=SL108413299-114919"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(10)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=49176635&loc=d3e9760-107771"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(9)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e526-108580"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(l)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(o)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(p)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(q)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(s)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e1928-114920"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(12))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2410-114920"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2417-114920"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2439-114920"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2709-114920"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118255775&loc=d3e2919-114920"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4179-114921"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=118257860&loc=d3e4587-114921"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=21916913&loc=d3e273930-122802"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39689-114964"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "70",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=29639808&loc=d3e29008-114946"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450691-114947"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121326096&loc=d3e4534-113899"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i),(j),(k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(i-k)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=SL79508275-113901"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669646-108580"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11149-113907"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120383193&loc=d3e11178-113907"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e637-108580"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32672-109319"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32687-109319"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32705-109319"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32718-109319"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32809-109319"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=84230637&loc=d3e32857-109319"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e640-108580"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330036-122817"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=116825942&loc=d3e330215-122817"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=120385591&loc=d3e38679-109324"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e681-108580"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(2)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(3)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=79982066&loc=d3e1486-128463"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "37",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121600890&loc=d3e2207-128464"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=121647850&loc=d3e4845-128472"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "30",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669686-108580"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(1)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)(4)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "805",
   "URI": "http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "805",
   "URI": "http://asc.fasb.org/topic&trid=2303972"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116873149&loc=d3e923-111674"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569616-111683"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=108774443&loc=SL4569643-111683"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e689-108580"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5710-111685"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5728-111685"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=SL6759159-111685"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=SL6759159-111685"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=d3e5747-111685"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=121559654&loc=SL6228884-111685"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724391-108580"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579240-113959"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5579245-113959"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5580258-113959"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(i)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(ii)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41620-113959"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41638-113959"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL34724394-108580"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5618551-113959"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624163-113959"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624171-113959"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4CC",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109998890-113959"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624177-113959"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624181-113959"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109999712-113959"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109999712-113959"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL109999712-113959"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5624258-113959"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5708775-113959"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=SL5708775-113959"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41641-113959"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41641-113959"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121590274&loc=d3e41678-113959"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121582272&loc=SL5629052-113961"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121483254&loc=SL109983883-199619"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121549185&loc=d3e80748-113994"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669619-108580"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)(i)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=d3e19279-110258"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=117815213&loc=SL6742756-110258"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=99377092&loc=SL75136599-209740"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=116690757&loc=d3e13220-108610"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13433-108611"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13467-108611"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=121572278&loc=d3e13476-108611"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=SL7669625-108580"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14172-108612"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14172-108612"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14210-108612"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=75031198&loc=d3e14217-108612"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "825",
   "URI": "http://asc.fasb.org/topic&trid=2134543"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=98513438&loc=d3e33268-110906"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121641772&loc=d3e557-108580"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28541-108399"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28551-108399"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=119993939&loc=d3e28555-108399"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=121640130&loc=d3e1436-108581"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(Note 3)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121580752&loc=d3e38371-112697"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121573735&loc=d3e41502-112717"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121616839&loc=d3e45280-112737"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(4)",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=121568338&loc=d3e45377-112738"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918627-209977"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121603541&loc=SL77918643-209977"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918673-209980"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918673-209980"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1)(e))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868656-224227"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(2)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918686-209980"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121609121&loc=SL77918701-209980"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121568110&loc=SL77918982-209971"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/subtopic&trid=77888251"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(210.5-03(11))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=121576215&loc=SL77919359-209981"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(10))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122492-111745"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=6469459&loc=d3e122501-111745"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(d)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122596-111746"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122625-111746"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(24))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=116651436&loc=d3e122739-111746"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=119991564&loc=SL119991595-234733"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154696&loc=d3e54445-107959"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "928",
   "URI": "http://asc.fasb.org/extlink&oid=6473545&loc=d3e61844-108004"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61929-109447"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61929-109447"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62059-109447"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62059-109447"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62395-109447"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62395-109447"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62479-109447"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e62479-109447"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=SL6807758-109447"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=SL6807758-109447"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61872-109447"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=68064819&loc=d3e61872-109447"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(7)(c))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "20",
   "Topic": "940",
   "URI": "http://asc.fasb.org/extlink&oid=68072869&loc=d3e41242-110953"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "940",
   "URI": "http://asc.fasb.org/subtopic&trid=2176304"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "210",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=117340910&loc=d3e59706-112781"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(9)(a))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(6))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(7)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.1,2,3)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.13(3)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.16)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.3)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.6)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7(e))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.7)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(15))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(26))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.1-5)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "220",
   "URI": "http://asc.fasb.org/topic&trid=2134417"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.11)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.12)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.13)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14(b))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.14)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.2)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.4)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.6)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.7)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3151-108585"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.8)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.9)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=121551529&loc=d3e60009-112784"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62557-112803"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62557-112803"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=d3e62586-112803"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(a)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r739": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(c)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(d)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120252992&loc=SL120269850-112803"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "942",
   "URI": "http://asc.fasb.org/subtopic&trid=2209399"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6479118&loc=d3e64650-112822"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64684-112823"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a),(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(3))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(c))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(f,g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.16)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(22))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121643868&loc=SL117782755-158439"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117783719-158441"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121639165&loc=SL117819544-158441"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3179-108585"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=121641442&loc=d3e19393-158473"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=66023616&loc=SL35737432-115832"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "205",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=118262037&loc=d3e9915-115836"
  },
  "r784": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-05(4))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e604008-122996"
  },
  "r785": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874367-224272"
  },
  "r786": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.6-09(7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401555&loc=SL114874367-224272"
  },
  "r787": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12(2)(i))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611133-123010"
  },
  "r788": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12)",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611133-123010"
  },
  "r789": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a),(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r790": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r791": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611197-123010"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=SL120429264-123010"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=SL120429264-123010"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401592&loc=d3e611379-123010"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "320",
   "Topic": "946",
   "URI": "http://asc.fasb.org/subtopic&trid=2324412"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "310",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120238483&loc=d3e48678-111004"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "310",
   "Subparagraph": "(SX 210.12-29(Footnote 4))",
   "Topic": "948",
   "URI": "http://asc.fasb.org/extlink&oid=120402547&loc=d3e617274-123014"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r808": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r809": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r810": {
   "Name": "Form 10-Q",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-13"
  },
  "r811": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1-"
  },
  "r812": {
   "Name": "Regulation 12B",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r813": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3291-108585"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21C",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=SL94080552-108585"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3521-108585"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3536-108585"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121586364&loc=d3e3095-108585"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4304-108586"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4313-108586"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=121583591&loc=d3e4332-108586"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  }
 },
 "version": "2.1"
}
