Derivatives and hedging activities - Movements (Details 2) - CHF (SFr)
SFr in Millions
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Fair value hedges | Interest rate derivatives | Interest and dividend income [Member]      
Derivative Instruments, Gain (Loss)      
Hedged items SFr 1,673 SFr (1,679) SFr (1,721)
Derivatives designated as hedging instruments (1,597) 1,564 1,550
Cash flow hedges      
Derivative Instruments, Gain (Loss)      
Expected reclassification of net gains/(losses) from AOCI into earnings during the next 12 months (17)    
Cash flow hedges | Trading Revenue [Member]      
Derivative Instruments, Gain (Loss)      
Gain (Loss) from Components Excluded from Assessment of Cash Flow Hedge Effectiveness, Net 0 1 (20)
Cash flow hedges | Interest rate derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax (314) 134 85
Cash flow hedges | Interest rate derivatives | Interest and dividend income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 7 (70) 3
Cash flow hedges | Foreign exchange derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax (9) (33) 4
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 34 (32) (27)
Cash flow hedges | Foreign exchange derivatives | Trading Revenue [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 0 (30) (7)
Cash flow hedges | Foreign exchange derivatives | Other Expense [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 34 (2) (16)
Cash flow hedges | Foreign exchange derivatives | Other Income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 0 0 (4)
Net investment hedges | Foreign exchange derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax 47 458 (138)
Net investment hedges | Foreign exchange derivatives | Other Income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 0 10 0
Bank | Fair value hedges | Interest rate derivatives | Interest and dividend income [Member]      
Derivative Instruments, Gain (Loss)      
Hedged items 1,523 (1,679) (1,721)
Derivatives designated as hedging instruments (1,448) 1,564 1,550
Bank | Cash flow hedges      
Derivative Instruments, Gain (Loss)      
Expected reclassification of net gains/(losses) from AOCI into earnings during the next 12 months (17)    
Bank | Cash flow hedges | Trading Revenue [Member]      
Derivative Instruments, Gain (Loss)      
Gain (Loss) from Components Excluded from Assessment of Cash Flow Hedge Effectiveness, Net 0 1 (20)
Bank | Cash flow hedges | Interest rate derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax (314) 134 85
Bank | Cash flow hedges | Interest rate derivatives | Interest and dividend income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 7 (70) 3
Bank | Cash flow hedges | Foreign exchange derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax (9) (33) (5)
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 34 (32) (23)
Bank | Cash flow hedges | Foreign exchange derivatives | Trading Revenue [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 0 (30) (7)
Bank | Cash flow hedges | Foreign exchange derivatives | Other Expense [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 34 (2) (16)
Bank | Cash flow hedges | Foreign exchange derivatives | Other Income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax 0 0 0
Bank | Net investment hedges | Foreign exchange derivatives      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), before Reclassification and Tax 51 451 (133)
Bank | Net investment hedges | Foreign exchange derivatives | Other Income [Member]      
Derivative Instruments, Gain (Loss)      
Other Comprehensive Income (Loss), Cash Flow Hedge, Gain (Loss), Reclassification, before Tax SFr 0 SFr 10 SFr 0