XML 109 R81.htm IDEA: XBRL DOCUMENT
v3.24.2.u1

Western Digital Corporation 401(k) Plan - Additional Information (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Jun. 28, 2024 | Jun. 30, 2023 | Jul. 01, 2022
Defined Benefit Plan Disclosure [Line Items] |  |  |
Defined contribution plan, employer matching contribution, percent of match | 50.00% |  |
Defined contribution plan, employer matching contribution, percent of employees' gross pay | 6.00% |  |
Defined contribution plan, employer discretionary contribution amount | $ 13 | $ 22 | $ 36
Pre-Tax |  |  |
Defined Benefit Plan Disclosure [Line Items] |  |  |
Defined contribution plan, maximum annual contributions per employee, percent | 85.00% |  |
Pre Tax and Post Tax |  |  |
Defined Benefit Plan Disclosure [Line Items] |  |  |
Defined contribution plan, maximum annual contributions per employee, percent | 10.00% |  |

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DefinedBenefitPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of discretionary contributions made by an employer to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage employer matches of the employee's percentage contribution matched. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercentOfMatch
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum percentage of employee gross pay the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeePercent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | wdc_TaxScenarioAxis=wdc_PreTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | wdc_TaxScenarioAxis=wdc_PreTaxCatchUpMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |