CASH, CASH EQUIVALENTS AND MARKETABLE SECURITIES (Details) - USD ($) $ in Millions |
12 Months Ended | |
|---|---|---|
May 31, 2019 |
May 31, 2018 |
|
| Cash Cash Equivalents And Short Term Investments [Abstract] | ||
| Corporate debt securities and other | $ 22,242 | $ 44,302 |
| Commercial paper debt securities | 1,647 | |
| Money market funds | 5,700 | 6,500 |
| Total investments | 27,942 | 52,449 |
| Investments classified as cash equivalents | 10,629 | 6,808 |
| Investments classified as marketable securities | $ 17,313 | $ 45,641 |
| Percentage of marketable securities investments mature within one year | 33.00% | 26.00% |
| Percentage of marketable securities investments mature within one to five years | 67.00% | 74.00% |
| Maturity of marketable security investments | As of May 31, 2019 and 2018, approximately 33% and 26%, respectively, of our marketable securities investments mature within one year and 67% and 74%, respectively, mature within one to four years. | |
| Restricted cash and cash equivalent item, description | Restricted cash that was included within cash and cash equivalents as presented within our consolidated balance sheets as of May 31, 2019 and 2018 and our consolidated statements of cash flows for the years ended May 31, 2019, 2018 and 2017 was nominal. |