XML 54 R41.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Accounting Policies - Retirement Plans (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Aug. 28, 2022 | Aug. 29, 2021 | Aug. 30, 2020
Accounting Policies [Abstract] |  |  |
Minimum number of days of employment to qualify for retirement plan | 90 days |  |
Defined contribution plan, cost recognized | $ 824 | $ 748 | $ 676

X
- Definition Minimum number of days of employment to qualify for 401(k) Retirement Plan + References No definition available. + Details
Name: | cost_MinimumNumberOfDaysOfEmploymentToQualifyForRetirementPlan
Namespace Prefix: | cost_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Amount of cost for defined contribution plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 715 -SubTopic 70 -Section 50 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration