XML 55 R43.htm IDEA: XBRL DOCUMENT
v3.25.2

Accounting Policies - Retirement Plans (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Aug. 31, 2025 | Sep. 01, 2024 | Sep. 03, 2023
Accounting Policies [Abstract] |  |  |
Minimum number of days of employment to qualify for retirement plan | 90 days |  |
Defined contribution plan, cost recognized | $ 1,061 | $ 963 | $ 914

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 -Topic 715 -SubTopic 70 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480794/715-70-50-1 + Details
Name: | us-gaap_DefinedContributionPlanCostRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration