Net Income per Common and Common Equivalent Share - Schedule of Earnings per Share Effect on Net Income and Weighted Average Number of Dilutive Potential Common Stock (Details) - USD ($) shares in Thousands, $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Feb. 17, 2019 |
Feb. 18, 2018 |
Feb. 17, 2019 |
Feb. 18, 2018 |
|
| Earnings Per Share [Abstract] | ||||
| Net income available to common stockholders used in basic and diluted net income per common share | $ 889 | $ 701 | $ 1,656 | $ 1,341 |
| Weighted average number of common shares used in basic net income per common share | 440,284 | 439,022 | 439,721 | 438,494 |
| RSUs | 2,053 | 2,546 | 2,814 | 2,707 |
| Weighted average number of common shares and dilutive potential of common stock used in diluted net income per share | 442,337 | 441,568 | 442,535 | 441,201 |
| Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount | 1,667 | |||