BASIS OF PRESENTATION, RECENT ACCOUNTING PRONOUNCEMENTS AND OTHER Narrative (Details) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | |||
|---|---|---|---|---|---|
Feb. 28, 2022 |
Feb. 28, 2021 |
Feb. 28, 2022 |
Feb. 28, 2021 |
May 31, 2021 |
|
| Organization Consolidation And Presentation Of Financial Statements [Abstract] | |||||
| Litigation related charges | $ 4,700 | ||||
| Total net tax benefit | $ 2,300 | $ 2,300 | |||
| Contract with Customer, Asset and Liability [Abstract] | |||||
| Revenues recognized included in opening deferred revenues balances | 8,100 | 7,400 | |||
| Revenue, Performance Obligation [Abstract] | |||||
| Remaining performance obligation, amount | $ 38,500 | 38,500 | |||
| Sales of Financing Receivables [Abstract] | |||||
| Sales of financing receivables | 352 | $ 338 | 1,400 | $ 1,300 | |
| Equity Securities, FV-NI and without Readily Determinable Fair Value [Abstract] | |||||
| Non-marketable debt investments and equity securities and related instruments | $ 1,300 | $ 1,300 | $ 971 | ||