XML 142 R131.htm IDEA: XBRL DOCUMENT
v3.25.4

Derivative Financial Instruments - Summary of Carrying Amount Hedged Assets/(Liabilities) (Detail) - Designated as Hedging Instrument [Member] - Interest rate swaps [Member] - Loans And Leases Net Of Unearned Income [Member] - USD ($) $ in Thousands | Dec. 31, 2025 | Dec. 31, 2024
--- | --- | ---
Carrying Amount Hedged Assets Liabilities [Line Items] |  |
Carrying Amount of the Hedged Assets/(Liabilities) | $ 9,466 | $ 10,770
Cumulative Amount of Fair Value Hedging Adjustment Included in the Carrying Amount of the Hedged Assets/(Liabilities) | (331) | (657)
Cumulative Amount of Fair Value Hedging Adjustment Remaining for any Hedged Assets/(Liabilities) for which Hedge Accounting has been Discontinued | $ 0 | $ 0

X
- References No definition available. + Details
Name: | ubsi_CarryingAmountHedgedAssetsLiabilitiesLineItems
Namespace Prefix: | ubsi_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk, remaining after discontinued hedge. Excludes cumulative basis adjustment related to foreign exchange risk. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4EE -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4EE Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 181 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-181 + Details
Name: | us-gaap_HedgedAssetDiscontinuedFairValueHedgeCumulativeIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of asset hedged in fair value hedging relationship. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 181 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-181 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4EE -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4EE + Details
Name: | us-gaap_HedgedAssetFairValueHedge
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of cumulative increase (decrease) in fair value of hedged asset in fair value hedge, attributable to hedged risk. Excludes cumulative basis adjustment related to foreign exchange risk. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 4EE -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147480434/815-10-50-4EE Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 815 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 181 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480401/815-10-55-181 + Details
Name: | us-gaap_HedgedAssetFairValueHedgeCumulativeIncreaseDecrease
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_HedgingDesignationAxis=us-gaap_DesignatedAsHedgingInstrumentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=us-gaap_InterestRateSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ubsi_BalanceSheetsLocationAxis=ubsi_LoansAndLeasesNetOfUnearnedIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |