| Audit Information | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Audit Information [Abstract] | |
| Auditor Firm ID | 42 | 
| Auditor Name | Ernst & Young LLP | 
| Auditor Location | Chicago, Illinois | 
| Consolidated Balance Sheets (Parenthetical) - USD ($) shares in Millions, $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Statement of Financial Position [Abstract] | ||
| Allowance for credit loss, current | $ 43.3 | $ 28.8 | 
| Preferred shares, par value (in dollars per share) | $ 0.01 | $ 0.01 | 
| Preferred shares, authorized (in shares) | 100.0 | 100.0 | 
| Preferred shares, issued (in shares) | 0.0 | 0.0 | 
| Preferred shares, outstanding (in shares) | 0.0 | 0.0 | 
| Common stock, par value (in dollars per share) | $ 0.01 | $ 0.01 | 
| Common shares, authorized (in shares) | 1,000.0 | 1,000.0 | 
| Common shares, outstanding (in shares) | 132.6 | 134.1 | 
| Consolidated Statements Of Operations - USD ($) shares in Millions, $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Income Statement [Abstract] | |||
| Net sales | $ 20,998.7 | $ 21,376.0 | $ 23,748.7 | 
| Cost of sales | 16,396.3 | 16,723.6 | 19,062.1 | 
| Gross profit | 4,602.4 | 4,652.4 | 4,686.6 | 
| Selling and administrative expenses | 2,951.1 | 2,971.5 | 2,951.4 | 
| Operating income | 1,651.3 | 1,680.9 | 1,735.2 | 
| Interest expense, net | (214.5) | (226.6) | (235.7) | 
| Other expense, net | (1.4) | (4.1) | (11.7) | 
| Income before income taxes | 1,435.4 | 1,450.2 | 1,487.8 | 
| Income tax expense | (357.6) | (345.9) | (373.3) | 
| Net income | $ 1,077.8 | $ 1,104.3 | $ 1,114.5 | 
| Net income per common share: | |||
| Basic (in dollars per share) | $ 8.06 | $ 8.20 | $ 8.24 | 
| Diluted (in dollars per share) | $ 7.97 | $ 8.10 | $ 8.13 | 
| Weighted-average common shares outstanding: | |||
| Basic (in shares) | 133.8 | 134.6 | 135.2 | 
| Diluted (in shares) | 135.2 | 136.3 | 137.0 | 
| Consolidated Statements of Comprehensive Income - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Statement of Comprehensive Income [Abstract] | |||
| Net income | $ 1,077.8 | $ 1,104.3 | $ 1,114.5 | 
| Other comprehensive income (loss), net of tax: | |||
| Unrealized loss from cash flow hedge | (2.8) | (1.9) | (0.1) | 
| Reclassification of cash flow hedge to net income | 0.3 | 0.0 | 3.6 | 
| Foreign currency translation adjustments | (33.0) | 29.7 | (61.5) | 
| Other comprehensive (loss) income | (35.5) | 27.8 | (58.0) | 
| Comprehensive income | $ 1,042.3 | $ 1,132.1 | $ 1,056.5 | 
| Consolidated Statement Of Stockholders' Equity - USD ($) $ in Millions | Total | Common Stock | Paid-in Capital | Accumulated Deficit | Accumulated Other Comprehensive Loss | 
|---|---|---|---|---|---|
| Beginning balance (in shares) at Dec. 31, 2021 | 134,800,000 | ||||
| Beginning balance at Dec. 31, 2021 | $ 705.7 | $ 1.3 | $ 3,369.5 | $ (2,570.7) | $ (94.4) | 
| Increase (Decrease) in Stockholders' Equity [Roll Forward] | |||||
| Net income | 1,114.5 | 1,114.5 | |||
| Equity-based compensation expense | 91.1 | 91.1 | |||
| Stock option exercises (in shares) | 500,000 | ||||
| Stock option exercises | 30.2 | $ 0.1 | 30.1 | ||
| Coworker Stock Purchase Plan (in shares) | 200,000 | ||||
| Coworker Stock Purchase Plan | 25.5 | 25.5 | |||
| Dividend payments | (282.6) | 1.9 | (284.5) | ||
| Incentive compensation plan stock withheld for taxes | (23.1) | (23.1) | |||
| Unrealized loss from hedge accounting | (0.1) | (0.1) | |||
| Reclassification of cash flow hedge to net income | 3.6 | 3.6 | |||
| Foreign currency translation | (61.5) | (61.5) | |||
| Ending balance (in shares) at Dec. 31, 2022 | 135,500,000 | ||||
| Ending balance at Dec. 31, 2022 | 1,603.3 | $ 1.4 | 3,518.1 | (1,763.8) | (152.4) | 
| Increase (Decrease) in Stockholders' Equity [Roll Forward] | |||||
| Net income | 1,104.3 | 1,104.3 | |||
| Equity-based compensation expense | 93.7 | 93.7 | |||
| Stock option exercises (in shares) | 1,000,000.0 | ||||
| Stock option exercises | 49.3 | $ 0.0 | 49.3 | ||
| Coworker Stock Purchase Plan (in shares) | 200,000 | ||||
| Coworker Stock Purchase Plan | 28.2 | 28.2 | |||
| Repurchases of common stock (in shares) | (2,600,000) | ||||
| Repurchases of common stock | (500.0) | $ (0.1) | (499.9) | ||
| Dividend payments | (321.5) | 2.0 | (323.5) | ||
| Incentive compensation plan stock withheld for taxes | (40.0) | (40.0) | |||
| Unrealized loss from hedge accounting | (1.9) | (1.9) | |||
| Reclassification of cash flow hedge to net income | 0.0 | ||||
| Foreign currency translation | 29.7 | ||||
| Foreign currency translation and other | 27.1 | (2.6) | 29.7 | ||
| Ending balance (in shares) at Dec. 31, 2023 | 134,100,000 | ||||
| Ending balance at Dec. 31, 2023 | 2,042.5 | $ 1.3 | 3,691.3 | (1,525.5) | (124.6) | 
| Increase (Decrease) in Stockholders' Equity [Roll Forward] | |||||
| Net income | 1,077.8 | 1,077.8 | |||
| Equity-based compensation expense | $ 64.7 | 64.7 | |||
| Stock option exercises (in shares) | 478,686 | 800,000 | |||
| Stock option exercises | $ 47.0 | 47.0 | |||
| Coworker Stock Purchase Plan (in shares) | 100,000 | ||||
| Coworker Stock Purchase Plan | 28.8 | 28.8 | |||
| Repurchases of common stock (in shares) | (2,400,000) | ||||
| Repurchases of common stock | (500.0) | (500.0) | |||
| Dividend payments | (332.1) | 2.1 | (334.2) | ||
| Incentive compensation plan stock withheld for taxes | (38.2) | (38.2) | |||
| Unrealized loss from hedge accounting | (2.8) | (2.8) | |||
| Reclassification of cash flow hedge to net income | 0.3 | 0.3 | |||
| Foreign currency translation | (33.0) | ||||
| Foreign currency translation and other | (35.3) | 0.5 | (2.8) | (33.0) | |
| Ending balance (in shares) at Dec. 31, 2024 | 132,600,000 | ||||
| Ending balance at Dec. 31, 2024 | $ 2,352.7 | $ 1.3 | $ 3,834.4 | $ (1,322.9) | $ (160.1) | 
| Consolidated Statements of Stockholders' Equity (Parenthetical) - $ / shares | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Statement of Stockholders' Equity [Abstract] | |||
| Dividends (in dollars per share) | $ 2.485 | $ 2.390 | $ 2.090 | 
| Description of Business and Summary of Significant Accounting Policies | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Accounting Policies [Abstract] | |
| Description of Business and Summary of Significant Accounting Policies | Description of Business and Summary of Significant Accounting Policies Description of Business CDW Corporation (“Parent”), a Fortune 500 company and member of the S&P 500 Index, is a leading multi-brand provider of information technology (“IT”) solutions to business, government, education and healthcare customers in the United States (“US”), the United Kingdom (“UK”) and Canada. The Company’s broad array of offerings ranges from discrete hardware and software products to integrated IT solutions and services that include on-premise and cloud capabilities across hybrid infrastructure, digital experience and security. Throughout this report, the terms “the Company” and “CDW” refer to Parent and its subsidiaries. Parent has two 100% owned subsidiaries, CDW LLC and CDW Finance Corporation. CDW LLC is an Illinois limited liability company that, together with its 100% owned subsidiaries, holds all material assets and conducts all business activities and operations of the Company. CDW Finance Corporation is a Delaware corporation formed for the sole purpose of acting as co-issuer of certain debt obligations and does not hold any material assets or engage in any business activities or operations. Basis of Presentation The Consolidated Financial Statements have been prepared in conformity with accounting principles generally accepted in the United States of America (“US GAAP”) and the rules and regulations of the US Securities and Exchange Commission (“SEC”). The Company’s Consolidated Financial Statements are based on a fiscal year ended December 31. Principles of Consolidation The Consolidated Financial Statements include the accounts of Parent and its 100% owned subsidiaries. All intercompany transactions and accounts are eliminated in consolidation. Use of Estimates The preparation of the Consolidated Financial Statements in accordance with US GAAP requires management to make certain estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities as of the date of the Consolidated Financial Statements and the reported amounts of revenue and expenses during the reported periods. The Company bases its estimates on historical experience and on various other assumptions that management believes are reasonable under the circumstances, the results of which form the basis for making judgments about carrying values of assets and liabilities that are not readily apparent from other sources. Actual results and outcomes could differ from those estimates. Business Combinations The Company accounts for business combinations using the acquisition method of accounting, which allocates the fair value of the purchase consideration to the tangible and intangible assets acquired and liabilities assumed based on their estimated fair values. The excess of the purchase consideration over the fair values of these identifiable assets and liabilities is recorded as goodwill. When determining the fair values of assets acquired and liabilities assumed, management makes significant estimates and assumptions. The Company may utilize third-party valuation specialists to assist the Company in the allocation. Initial purchase price allocations are subject to revision within the measurement period, not to exceed one year from the date of acquisition. Acquisition-related expenses and transaction costs associated with business combinations are expensed as incurred. Cash and Cash Equivalents Cash and cash equivalents include deposits in banks and short-term (original maturities of three months or less at the time of purchase), highly liquid investments that are readily convertible to known amounts of cash and are so near maturity that there is insignificant risk of changes in value due to interest rate changes. Restricted cash represents funds that are restricted to satisfy deposit requirements with creditors. Restricted cash is presented within Prepaid expenses and other on the Consolidated Balance Sheets and totaled $4 million as of December 31, 2024. Accounts Receivable The timing of revenue recognition may differ from the time of billing to customers. Accounts receivable presented on the Consolidated Balance Sheets represent an unconditional right to consideration, which includes unbilled receivables. Unbilled receivables represent revenues that are not currently billable where payment is unconditional and solely subject to the passage of time. These items are expected to be billed and collected in the normal course of business. Unbilled receivables primarily arise from non-cancellable, multi-year arrangements for software sales whereby the Company has completed its performance obligation under the contracts but will invoice its customers ratably over a period of time. For additional information regarding multi-year arrangements, see “Revenue Recognition for Software” below. Accounts receivable that are billed are recorded at the invoiced amount and include the taxes to be collected from the customer as part of the sale. Such billed amounts typically do not bear interest. The balance of the Company’s accounts receivable is classified as current for amounts expected to be collected within 12 months and noncurrent for amounts to be collected beyond 12 months. The Company occasionally may transfer certain accounts receivable, without recourse, to third-party financial companies as a method to accelerate cash collections and reduce the Company’s credit exposure. Under these agreements, the Company may transfer certain accounts receivable in exchange for cash less a discount, as defined by the agreements. The Company’s ability to sell receivables is dependent on the financial institutions’ willingness to purchase such receivables. In addition, certain of these agreements may also require that the Company continue to service, administer and collect the sold accounts receivable. Such transfers are recognized as a sale and the related accounts receivable is derecognized from the Consolidated Balance Sheet upon receipt of the third-party financing company’s payment.  For additional information on the Company’s accounts receivables, see Note 4 (Accounts Receivable and Contract Balances). Allowance for Credit Losses The Company estimates an allowance for credit losses related to accounts receivable, inclusive of billed and unbilled amounts, for future expected credit losses by using relevant information such as historical information, current conditions, and reasonable and supportable forecasts. For billed accounts receivable, the allowance is measured on a pool basis when similar risk characteristics exist, and a loss-rate for each pool is determined using historical credit loss experience as the basis for the estimation of expected credit losses. Adjustments to historical loss information are made for differences in current conditions as well as changes in forecasted macroeconomic conditions, such as changes in the unemployment rate or gross domestic product growth rate. If there are additional changes in circumstances related to a specific customer, the Company further adjusts its estimate based on the expected loss. The Company has typically observed a higher loss-rate experience with customers in pools associated with the Company’s Corporate and Small Business segments, as compared to the pools associated with the Public segment. For unbilled accounts receivable, the allowance is measured based on internal risk rating, which considers the customer’s credit rating, the duration of the multi-year arrangement, probability of default rates published by third-parties and other variables that mitigate the inherent credit risk on a particular transaction, such a legal right of set-off to the Company’s exposure. The internal risk rating is periodically reviewed for updates related to a customer’s credit rating and probability of default rates. Upon determining the internal risk rating, the allowance for credit loss is measured using the third-party default rates, adjusted for forecasted macroeconomic conditions. Given the nature of these unbilled receivables tied to multi-year arrangements and the robust credit approval process on long-term payment terms, the internal risk rating of these receivables is primarily low. For additional information on the Company’s allowance for credit loss, see Note 4 (Accounts Receivable and Contract Balances). Merchandise Inventory Inventory is valued at the lower of cost and net realizable value. Cost is determined using actual cost on a first-in, first-out method. Price protection is recorded when earned as a reduction to the cost of inventory. The Company decreases  the value of inventory for estimated obsolescence equal to the difference between the cost of inventory and the net realizable value, based upon an aging analysis of the inventory on hand, specifically known inventory-related risks and assumptions about future demand and market conditions. Miscellaneous Receivables Miscellaneous receivables primarily consist of amounts due from vendors. The Company receives incentives from vendors related to cooperative advertising, volume rebates, bid programs, price protection and other programs. These incentives generally relate to written vendor agreements with specified performance requirements and are generally recorded as adjustments to Cost of sales or Merchandise inventory, depending on the nature of the incentive. Funds received from vendors related to the reimbursement of specific, incremental and identifiable costs incurred by the Company are recorded as reduction of such costs, which may be within Selling and administrative expenses. Property and Equipment Property and equipment are stated at cost, less accumulated depreciation. The Company calculates depreciation expense using the straight-line method over the estimated useful lives of the assets. For revenue generating assets, the Company calculates depreciation expense using the straight-line method to the estimated residual value over the estimated useful life of the assets. Property and equipment are reviewed for impairment when events or changes in circumstances indicate that the carrying amount may not be recoverable. Determination of recoverability is based on an estimate of undiscounted future cash flows resulting from the use of the asset and its eventual disposition. If the carrying amount of an asset exceeds its estimated future undiscounted cash flows, an impairment loss is recorded for the excess of the asset’s carrying amount over its fair value. Leasehold improvements are amortized over the shorter of their estimated useful lives or the remaining lease term. Expenditures for major renewals and improvements that extend the useful life of property and equipment are capitalized. Expenditures for maintenance and repairs are charged to expense as incurred. Leases The Company enters into operating lease contracts, as assessed at contract inception, primarily for real estate, data centers and equipment. On the lease commencement date, the Company records operating lease liabilities based on the present value of the future lease payments. In determining the present value of future lease payments, the Company uses its incremental borrowing rate based on the information available at the commencement date. For real estate and data center contracts, the Company accounts for the lease and non-lease components as a single lease component. For certain equipment leases, the Company applies a portfolio approach to account for the right-of-use asset and operating lease liability. In assessing the lease term, the Company includes options to renew only when it is reasonably certain that it will be exercised, a determination which is at the sole discretion of the Company. For equipment leases used in revenue generating activities with an initial term of 12 months or less, the Company records a right-of-use asset and lease liability. For all remaining leases with an initial term of 12 months or less, the Company has elected to not record a right-of-use asset and lease liability. The Company records lease expense on a straight-line basis over the lease term beginning on the commencement date. Goodwill The Company performs an evaluation of goodwill at the reporting unit level, utilizing either a qualitative or quantitative impairment test. A qualitative assessment is performed at least on an annual basis to determine whether it is more likely than not that the fair value of a reporting unit is less than its carrying value. The Company performs a quantitative impairment test for each reporting unit every three years, or more frequently if circumstances indicate a potential impairment. The annual test for impairment is conducted during the fourth quarter. The Company’s reporting units included in the assessment of potential goodwill impairment are the same as its operating segments. Under a qualitative assessment, the most recent quantitative assessment is used to determine if it is more likely than not that the reporting unit’s goodwill is impaired. As part of this qualitative assessment, the Company assesses relevant events and circumstances including macroeconomic conditions, industry and market conditions, cost factors, overall financial performance, changes in share price and entity-specific events to determine if there is an indication of impairment. Under a quantitative assessment, goodwill impairment is identified by comparing the fair value of a reporting unit to its carrying amount, including goodwill. If the carrying amount of a reporting unit exceeds its fair value, goodwill is  considered impaired and an impairment charge is recognized in an amount equal to that excess, not to exceed the carrying amount of goodwill. Fair value of a reporting unit is determined by using a weighted combination of an income approach and a market approach, as this combination is considered the most indicative of the Company’s fair value in an orderly transaction between market participants. Under the income approach, the Company determines fair value based on estimated future cash flows of a reporting unit, discounted by an estimated weighted-average cost of capital, which reflects the overall level of inherent risk of a reporting unit and the rate of return an outside investor would expect to earn. The estimated future cash flows of each reporting unit are based on internally generated forecasts for the remainder of the respective reporting period and the next five years. Under the market approach, the Company utilizes valuation multiples derived from publicly available information for guideline companies to provide an indication of how much a knowledgeable investor in the marketplace would be willing to pay for a company. The valuation multiples are applied to the reporting units. Determining the fair value of a reporting unit is judgmental in nature and requires the use of significant estimates and assumptions, including Net sales growth rates, gross profit margins, operating margins, discount rates and future market conditions, among others. Any changes in the judgments, estimates or assumptions used could produce significantly different results. Intangible Assets Intangible assets with determinable lives are amortized on a straight-line basis over their respective estimated useful lives. Intangible assets include customer relationships, trade name and internally developed software. For internally developed software, the Company capitalizes external costs and directly attributable internal costs to acquire or create internal use software which are incurred during the application development stage. These costs relate to activities such as configuration, coding, testing and installation. Costs related to post-implementation activities such as training and maintenance are expensed as incurred. Once the software is substantially complete and ready for its intended use, capitalized development costs are amortized straight-line over the estimated useful life of the software. Intangible assets are reviewed for impairment when events or changes in circumstances indicate that the carrying amount of such assets may not be recoverable. Determination of recoverability is based on an estimate of undiscounted future cash flows resulting from the use of the asset and its eventual disposition. If the carrying amount of an asset exceeds its estimated future undiscounted cash flows, an impairment loss is recorded for the excess of the asset’s carrying amount over its fair value. In addition, each quarter, the Company evaluates whether events and circumstances warrant a revision to the remaining estimated useful life of each of these intangible assets. If the Company were to determine that a change to the remaining estimated useful life of an intangible asset was necessary, then the remaining carrying amount of the intangible asset would be amortized prospectively over that revised remaining useful life. Cloud Computing Arrangements The Company enters into certain cloud-based software hosting arrangements for internal use that are accounted for as service contracts. Costs incurred in implementing a cloud computing arrangement are deferred during the application development stage and presented within Prepaid expenses and other on the Consolidated Balance Sheets. Once a cloud computing arrangement is ready for its intended use, the implementation costs are amortized on a straight-line basis over the fixed term of the hosting arrangement plus any reasonably certain renewal periods. Debt Issuance Costs Debt issuance costs, such as underwriting, financial advisory, professional fees and other similar fees are capitalized and recognized in Interest expense, net over the estimated life of the related debt instrument using the effective interest method or straight-line method, as applicable. The Company classifies debt issuance costs as a direct deduction from the carrying value of the Long-term debt liability on the Consolidated Balance Sheets, except for debt issuance costs associated with revolving credit facilities which are presented as an asset, within Other assets on the Consolidated Balance Sheets. Fair Value Measurements Fair value is defined under US GAAP as the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. A fair value hierarchy has been established for valuation inputs to prioritize the inputs into three levels based on the extent to which inputs used in measuring fair value are observable in the market. Each fair value measurement is reported in one of the three levels which is determined by the lowest level input that is significant to the fair value measurement in its entirety. These levels are: Level 1 – observable inputs such as quoted prices for identical instruments traded in active markets. Level 2 – inputs are based on quoted prices for similar instruments in active markets, quoted prices for identical or similar instruments in markets that are not active and model-based valuation techniques for which all significant assumptions are observable in the market or can be corroborated by observable market data for substantially the full term of the assets or liabilities. Level 3 – inputs are generally unobservable and typically reflect management’s estimates of assumptions that market participants would use in pricing the asset or liability. The fair values are therefore determined using model-based techniques that include option pricing models, discounted cash flow models and similar techniques. Revenue Recognition The Company is a primary distribution channel for a large group of vendors and suppliers, including original equipment manufacturers (“OEMs”), software publishers, cloud providers and wholesale distributors. The Company may sell hardware, software and services on standalone basis or as a bundled solution arrangement. For additional information on the disaggregation of Net sales by major category, see Note 17 (Segment Information). The Company accounts for a contract when it has approval and commitment from both parties, the rights of the parties are identified, payment terms are established, the contract has commercial substance and collectability of consideration is probable. The Company evaluates the following indicators amongst others when determining whether it is acting as a principal in the transaction and recording revenue on a gross basis: (i) the Company is primarily responsible for fulfilling the promise to provide the specified product or service, (ii) the Company has inventory risk before the specified product has been transferred to a customer or after transfer of control to the customer and (iii) the Company has discretion in establishing the price for the specified product or service. If the terms of a transaction do not indicate the Company is acting as a principal in the transaction, then the Company is acting as an agent in the transaction and the associated revenues are recognized on a net basis. For performance obligations whereby the Company is acting as a principal, revenue is recognized when, or as, the customer obtains control of the specified product or service. The Company recognizes revenue in transactions for which it is acting as an agent once it has arranged for the third party to provide the product or service. Depending on the nature of the arrangement, this may occur at the time the Company executes the contract with the third party or at the time it invoices the customer.  Revenue Recognition for Hardware Revenues from the sale of hardware are recognized on a gross basis as the Company is acting as a principal in these transactions, with the selling price to the customer recorded as Net sales and the acquisition cost of the product recorded as Cost of sales. The Company recognizes revenue from these transactions when control has passed to the customer, which is typically based on the shipping terms in the contract with the customer (e.g., upon delivery of the product to the customer). The Company may leverage drop-shipment arrangements with many of its vendors and suppliers to deliver hardware to its customers without having to physically hold the inventory at its warehouses. The Company is the principal in the transaction and recognizes revenue for drop-shipment arrangements on a gross basis. In some instances, the customer agrees to buy the hardware from the Company but requests delivery at a later date, commonly known as bill-and-hold arrangements. For these transactions, the Company deems that control passes to the customer when the hardware is ready for delivery. The Company views hardware as ready for delivery when: (i) the customer has a signed agreement, (ii) significant risk and rewards have transferred to the customer, (iii) the customer has the ability to direct the use of the hardware, (iv) the hardware has been set aside specifically for the customer and  cannot be redirected to another customer and (v) as applicable, the configuration services have been completed when ordered with the hardware. The Company’s vendor partners may provide warranties on the hardware the Company sells. These manufacturer warranties are assurance-type warranties and are not considered separate performance obligations. The warranties are not sold separately and only provide assurance that the hardware will conform with the manufacturer’s specifications. In some transactions, the vendor partner will provide the customer with an extended warranty. These extended warranties are sold separately and provide the customer with a service in addition to assurance that the product will function as expected. The Company considers these warranties to be separate performance obligations from the underlying product. For additional information regarding the accounting for extended warranties, see “Revenue Recognition for Services” below. Revenue Recognition for Software Revenues from the sale of software include perpetual licenses, term licenses, software assurance and cloud computing solutions. From time to time, such software may be sold as fixed, non-cancellable multi-installment arrangements (i.e., multi-year arrangements) or variable, cancellable arrangements (more common in cloud computing arrangements). In these instances, the Company recognizes revenue based on its present enforceable rights and obligations and when it has completed its performance obligation. In these instances where the timing of revenue recognition differs from the timing of invoicing, the Company has determined that such arrangements do not include a significant financing component. The primary purpose of the Company’s invoicing terms is to provide customers with simplified and predictable ways of purchasing software and to mirror the payment terms offered by the software publisher. Depending on the nature of the software, the Company may be acting as a principal or an agent. For perpetual licenses and term licenses, the software is recognized as a single performance obligation on a gross basis as the Company is acting as a principal in these transactions at the point the software is delivered to the customer (i.e., via electronic delivery of keys). Generally, these licenses are sold with accompanying third-party delivered software assurance, which is a product that allows customers to upgrade to the latest technology if new capabilities are introduced during the period that the software assurance is in effect. The Company evaluates whether the software assurance is a separate performance obligation by assessing if the third-party delivered software assurance is critical or essential to the core functionality of the software itself. If the Company determines that the accompanying third-party delivered software assurance is critical or essential to the core functionality of the software license, the software license and the accompanying third-party delivered software assurance are recognized as a single performance obligation. As a result, the value of the product is primarily the accompanying support delivered by a third party and, therefore, the Company is acting as an agent and recognizes the revenue on a net basis once its agency obligation is complete. This is common for security software where updates are critical to the core functionality of the software. For software licenses where the accompanying third-party delivered software assurance is not critical or essential to the core functionality, the software assurance is recognized as a separate performance obligation, with the associated revenue recognized on a net basis. For additional information regarding the accounting for bundled arrangements, see “Revenue Recognition for Bundled Arrangements” below. The Company sells cloud computing solutions which include Software as a Service (“SaaS”) and Infrastructure as a Service (“IaaS”). SaaS solutions, commonly referred to as subscription licenses, utilize third-party partners to offer the Company’s customers access to software in the cloud that enhances office productivity, provides security or assists in collaboration. IaaS solutions utilize third-party partners to enable customers to access data center functionality in a cloud-based solution, including storage, computing and networking. In these transactions, the Company is acting as an agent and recognizes revenue once its agency performance obligation is complete. The Company’s customers are offered the opportunity by certain of its vendors to purchase software licenses and software assurance under enterprise agreements (“EAs”). For most EA transactions, the Company’s obligation to the customer is that of a distributor or sales agent of the services, where all obligations for providing the services to customers are passed to the Company’s vendors. The Company’s performance obligations are satisfied at the time of the sale. With most EAs, the Company’s vendors will transfer the license and invoice the customer directly, paying resellers an agency fee or commission on these sales. The Company records these fees as a component of Net sales as earned and there is no corresponding Cost of sales amount. Revenue Recognition for Services Revenues from the sale of services include professional services, hosted and managed services and vendor partner delivered services. Depending on the nature of the service, the Company may be acting as a principal or an agent.  The Company provides professional services, which include project managers, specialists and engineers, recommending, designing and implementing IT solutions. The Company is primarily responsible for the fulfillment and acceptability of the professional services and has control over how to provide the requested services. As a result, the Company is the principal, and professional services revenue is recognized on a gross basis either on a time and materials basis for variable contracts or proportionally as costs are incurred relative to the total estimated costs to complete for fixed fee contracts (i.e., an input method).  The Company provides hosted and managed services which primarily includes IT support services and data center services, such as managed and remote managed services, server co-location, internet connectivity and data backup and storage. Similar to professional services revenue, the Company is the principal in providing these services. Generally, hosted and managed services represent stand ready obligations and, therefore, the Company recognizes the revenue on a gross basis, ratably over the contractual term.  The Company may resell vendor partner delivered services. A common example is extended warranties, which are considered to be separate performance obligations from the underlying product. For vendor partner delivered services, the Company is arranging for such services to be provided by the vendor partner and, therefore, is acting as an agent and records revenue on a net basis at the point of sale. Revenue Recognition for Bundled Arrangements The Company often sells hardware, software and/or services as part of a bundled solution arrangement containing multiple performance obligations. For each deliverable that represents a distinct performance obligation, total arrangement consideration is allocated based upon the standalone selling prices of each performance obligation. Sales In-Transit The Company performs an analysis of the estimated number of days of sales in-transit to customers at the end of each reporting period based on a weighted-average analysis of commercial delivery terms that include drop-shipment arrangements. This analysis is the basis upon which the Company estimates the amount of Net sales in-transit at the end of the period and adjusts revenue and the related costs to reflect only what has been delivered to the customer. Changes in delivery patterns may result in a different number of business days estimated to make this adjustment. Freight Costs The Company records freight billed to its customers as Net sales and the related freight costs as Cost of sales when the underlying product revenue is recognized. For freight not billed to its customers, the Company records the freight costs as Cost of sales. The Company’s typical shipping terms result in shipping being performed before the customer obtains control of the product. The Company considers shipping to be a fulfillment activity and not a separate performance obligation. Other The nature of the Company’s contracts give rise to variable consideration in the form of volume rebates and sales returns and allowances, which are estimated at contract inception. The Company estimates variable consideration at the most likely amount to which it is expected to be entitled. This estimated amount is included in the transaction price to the extent it is probable that a significant reversal of cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is resolved. The estimates of variable consideration and determination of whether to include estimated amounts in the transaction price are based on an assessment of the Company’s anticipated performance and all information that is reasonably available. At the time of sale, the Company records a liability for estimated sales returns and allowances and an associated right of return asset. The Company also records a provision for volume rebates based on the evaluation of contract terms and historical experience. The Company excludes amounts collected on behalf of third parties, such as sales taxes, when determining the transaction price. When a contract results in revenue being recognized in excess of the amount the Company has the right to invoice to the customer, a contract asset is recorded on the Consolidated Balance Sheets. Contract assets primarily arise due to partially fulfilled contracts with integrated solutions and professional services with fixed fee arrangements. Contract liabilities consist of payments received from customers, or such consideration that is contractually due, in advance of providing the product or performing services. Contract liabilities primarily arise due to professional services with fixed fee arrangements, bill-and-hold transactions where control has not passed to the customer and certain governmental contracts. Any incremental direct costs of obtaining a contract, primarily sales commissions, are deferred on the Consolidated Balance Sheets and amortized over the period of contract performance. The Company has elected to use the practical expedient for its performance obligations table to include only those contracts that are longer than 12 months at the time of contract inception and those contracts that are non-cancelable. Additionally, for certain governmental contracts where there are annual renewals, the Company has excluded these contracts since there is only a one-year legal obligation. Contracts that are longer than 12 months in duration are primarily related to hosted and managed services. For additional information on performance obligations longer than 12 months, see Note 4 (Accounts Receivable and Contract Balances). Sales Taxes Sales tax amounts collected from customers for remittance to governmental authorities are presented on a net basis in the Consolidated Statements of Operations. Advertising Advertising costs are generally charged to expense in the period incurred and are presented in Selling and administrative expenses in the Consolidated Statements of Operations. Cooperative reimbursements from vendors are recorded in the period the related advertising expenditure is incurred. The Company generally classifies vendor consideration as a reduction to Cost of sales. During the years ended December 31, 2024, 2023 and 2022, the Company had advertising costs of $218 million, $215 million and $211 million, respectively. Equity-Based Compensation The Company measures all equity-based payments using a fair-value-based method and records compensation expense over the requisite service period using the straight-line method in its Consolidated Financial Statements. The expense calculation includes estimated forfeiture rates, which have been developed based upon historical experience. Interest Expense, net Interest expense, net includes interest expense and interest income. Interest expense, net is recognized in the period incurred at the applicable interest rate in effect. Interest income is recognized on an accrual basis in the period it is earned at the applicable interest rate.  Foreign Currency Translation The Company’s reporting currency is the US dollar. The functional currency of the Company’s international operating subsidiaries is generally the same as the corresponding local currency. Assets and liabilities of the international operating subsidiaries are translated at the spot rate in effect at the applicable reporting date. Revenues and expenses of the international operating subsidiaries are translated at the average exchange rates in effect during the applicable period. The resulting foreign currency translation adjustment is recorded as Accumulated other comprehensive loss, which is reflected as a separate component of Stockholders’ equity. Income Taxes Deferred income taxes are provided to reflect the differences between the tax bases of assets and liabilities and their reported amounts in the Consolidated Financial Statements using enacted tax rates in effect for the year in which the differences are expected to reverse. The Company performs an evaluation of the realizability of deferred tax assets on a quarterly basis. This evaluation requires management to make use of estimates and assumptions and considers all  positive and negative evidence and factors, such as the scheduled reversal of temporary differences, the mix of earnings in the jurisdictions in which the Company operates, and prudent and feasible tax planning strategies. The Company accounts for unrecognized tax benefits based upon its assessment of whether a tax benefit is more likely than not to be sustained upon examination by tax authorities. The Company reports a liability for unrecognized tax benefits resulting from unrecognized tax benefits taken or expected to be taken in a tax return and recognizes interest and penalties, if any, related to its unrecognized tax benefits in income tax expense. | 
| Recent Accounting Pronouncements | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Accounting Changes and Error Corrections [Abstract] | |
| Recent Accounting Pronouncements | Recent Accounting Pronouncements In November 2024, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2024-03, Income Statement—Reporting Comprehensive Income—Expense Disaggregation Disclosures (Subtopic 220-240). This ASU requires entities to disclose disaggregated information about specific natural expense categories in the notes to the financial statements. The ASU is effective for all public entities for annual periods beginning after December 15, 2026, and interim periods beginning after December 15, 2027, with early adoption permitted. Entities should apply the amendments on a prospective basis, but retrospective application is permitted. The Company is currently evaluating the impact the ASU will have on its disclosures. In December 2023, the FASB issued ASU 2023-09, Income Taxes (Topic 740): Improvements to Income Tax Disclosures. This ASU enhances existing income tax disclosures primarily through standardization and disaggregation of rate reconciliation categories and income taxes paid by jurisdiction. The ASU is effective for all public entities for annual periods beginning after December 15, 2024, with early adoption permitted. Entities should apply the amendments on a prospective basis, but retrospective application is permitted. The Company is currently evaluating the impact the ASU will have on its disclosures. In November 2023, the FASB issued ASU 2023-07, Segment Reporting (Topic 280): Improvements to Reportable Segment Disclosures. This ASU improves reportable segment disclosure requirements, primarily through enhanced disclosures about significant segment expenses included in a segment’s profit or loss measure on an annual and interim basis. The ASU is effective for all public entities for fiscal years beginning after December 15, 2023, and interim periods within fiscal years beginning after December 15, 2024. Entities are required to apply the amendments on a retrospective basis. The Company adopted this ASU for the 2024 annual reporting period, which resulted in additional disclosures for amounts presented within Note 17 (Segment Information). | 
| Acquisitions | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Business Combination, Asset Acquisition, and Joint Venture Formation [Abstract] | |
| Acquisitions | Acquisitions Mission Cloud Services, Inc. (“Mission”) On November 27, 2024, the Company completed its acquisition of Mission through a purchase of all the issued and outstanding equity interests for a base purchase price of $330 million. Mission is a leading cloud professional services, managed services and consulting provider. This strategic acquisition strengthens the Company’s capabilities to deliver full lifecycle projects and complements its existing cloud, data, artificial intelligence and software platform engineering solution capabilities.  The acquisition of Mission was not material to the Company’s results of operations and financial condition. The financial results of Mission have been included in the Company’s Consolidated Financial Statements since the date of acquisition, and the amounts are presented within the Corporate reportable segment. The purchase price allocation is preliminary and subject to customary closing adjustments and revision as additional information about fair value of assets and liabilities become available. Preliminarily, the Company recorded $218 million of Goodwill and $139 million of other intangible assets, which primarily related to customer relationships. | 
| Accounts Receivable and Contract Balances | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Revenue from Contract with Customer [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Accounts Receivable and Contract Balances | Accounts Receivable and Contract Balances Accounts Receivable The following table details the total accounts receivable recognized and the related classification on the Consolidated Balance Sheets: 
 (1)Accounts receivable, current are presented within Accounts receivable, net of allowance for credit losses on the Consolidated Balance Sheets.  (2)Unbilled accounts receivable, noncurrent are presented within Accounts receivable and other assets, noncurrent on the Consolidated Balance Sheets.  From time to time, the Company transfers certain accounts receivable, without recourse, to third-party financial companies as a method to reduce the Company’s credit exposure and accelerate cash collections. Such transfers are recognized as a sale and the related accounts receivable are derecognized from the Consolidated Balance Sheets upon receipt of payment from the third-party financing company. During the years ended December 31, 2024 and 2023, the Company sold approximately $477 million and $506 million of accounts receivable, respectively.  The Company recognizes an allowance for credit losses at inception and reassesses quarterly based on expected collectability and forecasted macroeconomic conditions. The following table details the changes in the allowance for credit losses related to accounts receivable: 
 (1)Includes a $4 million allowance for credit losses related to unbilled accounts receivable, noncurrent which is presented within Accounts receivable and other assets, noncurrent on the Consolidated Balance Sheets as of December 31, 2024. Contract Balances Contract assets and liabilities represent the difference in the timing of revenue recognition from receipt of cash from customers. Contract assets represent revenue recognized on performance obligations satisfied or partially satisfied for which the Company has no unconditional right to consideration. Contract liabilities consist of payments received from customers, or such consideration that is contractually due, in advance of providing the product or performing services. The following table details information about the Company’s contract balances recognized on the Consolidated Balance Sheets: 
 (1)Contract assets are presented within Prepaid expenses and other on the Consolidated Balance Sheets. (2)Includes $31 million and $40 million of long-term contract liabilities that are presented within Accounts payable and other liabilities on the Consolidated Balance Sheets as of December 31, 2024 and 2023, respectively. (3)For the years ended December 31, 2024 and 2023, the Company recognized revenue of $315 million and $329 million, respectively, related to its contract liabilities that were included in the beginning balance of the respective periods. A contract’s transaction price is allocated to each distinct performance obligation and recognized as revenue when, or as, the performance obligation is satisfied. For additional information regarding the Company’s performance obligations, see Note 1 (Description of Business and Summary of Significant Accounting Policies). The following table represents the total transaction price for the remaining performance obligations as of December 31, 2024 related to non-cancelable service contracts whereby the Company is acting as the principal and the duration is longer than 12 months, which is expected to be recognized over future periods.  
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property and Equipment | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property, Plant and Equipment [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property and Equipment | Property and Equipment Property and equipment consist of the following: 
  *Asset is not depreciated. During 2024, 2023 and 2022, the Company recorded disposals of $37 million, $56 million and $7 million, respectively, to derecognize Property and equipment that were no longer in use. Depreciation expense for the years ended December 31, 2024, 2023, and 2022 was $53 million, $52 million and $58 million, respectively. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Goodwill and Other Intangible Assets | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Goodwill and Intangible Assets Disclosure [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Goodwill and Other Intangible Assets | Goodwill and Other Intangible Assets Goodwill The changes in Goodwill by reportable segment are as follows: 
 (1)Other is comprised of CDW UK and CDW Canada operating segments. (2)Goodwill is net of accumulated impairment losses of $1,571 million, $354 million and $28 million related to the Corporate, Public and Other segments, respectively, recorded in 2008 and 2009. (3)Includes other immaterial acquisitions. (4)The acquisition of Mission is fully allocated to the Corporate segment. For additional information regarding the acquisition of Mission, see Note 3 (Acquisitions). Remaining activity in the Public segments includes other immaterial acquisitions. The Company performed a qualitative impairment assessment for all reporting units during the fourth quarter of 2024 and concluded that it was more likely than not that the fair values of all reporting units exceeded their respective carrying values and, therefore, no impairment existed. The Company performed a quantitative impairment assessment for all reporting units during the fourth quarter of 2023 and determined that the fair values of each reporting unit substantially exceeded their carrying values and, therefore, no impairment existed. Other Intangible Assets A summary of intangible assets is as follows: 
 During the years ended December 31, 2024, 2023 and 2022, the Company recorded disposals of $155 million, $33 million and $8 million, respectively, to derecognize intangible assets that were no longer in use. During the years ended December 31, 2024, 2023 and 2022, the Company recorded amortization expense related to intangible assets of $222 million, $219 million and $233 million, respectively. Estimated future amortization expense related to intangible assets is as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements | 12 Months Ended | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements [Abstract] | |||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements | Inventory Financing Agreements The Company has entered into agreements with financial institutions to facilitate the purchase of inventory from designated suppliers under certain terms and conditions to enhance liquidity. Under these agreements, the Company receives extended payment terms and agrees to pay the financial institution a stated amount of confirmed invoices from its designated suppliers. The Company does not incur any interest or other incremental expenses associated with these agreements as balances are paid when they are due. Additionally, the Company has no involvement in establishing the terms or conditions of the arrangements between its suppliers and the financial institution.  The amounts outstanding under these agreements as of December 31, 2024 and 2023 were $355 million and $431 million, respectively, and are separately presented as Accounts payable-inventory financing on the Consolidated Balance Sheets. The majority of such outstanding amounts relates to a floorplan sub-facility that is incorporated in the Company’s Revolving Loan Facility, as defined within Note 8 (Debt). A portion of the Company’s availability under the Revolving Loan Facility is reserved to cover the obligation to pay the financial institution. For additional information regarding the Revolving Loan Facility, see Note 8 (Debt). The following table details the changes in the Company’s confirmed obligations outstanding related to inventory financing agreements: 
 | ||||||||||||||||||||||||||||||||||||
| Debt | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Debt Disclosure [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Debt | Debt 
 As of December 31, 2024, the Company is in compliance with the covenants under its credit agreements and indentures. Credit Facility The Company has a variable rate senior unsecured revolving loan facility (the “Revolving Loan Facility”) from which it may draw tranches denominated in US dollars, British pounds or Euros. The interest rate is based on Secured Overnight Financing Rate (“SOFR”) plus a spread adjustment and a margin based on the Company’s senior unsecured rating. The Revolving Loan Facility is used by the Company for borrowings, issuances of letters of credit and floorplan financing. As of December 31, 2024, the Company could have borrowed up to an additional $1.2 billion under the Revolving Loan Facility. As of December 31, 2024, the Revolving Loan Facility had $356 million reserved for the floorplan sub-facility. Term Loan The senior unsecured term loan facility (the “Term Loan Facility”) has a variable interest rate. The interest rate is based on SOFR plus a spread adjustment and a margin based on the Company’s senior unsecured rating. No mandatory payments are required on the remaining principal amount until its maturity date on December 1, 2026.  Unsecured Senior Notes The unsecured senior notes have a fixed interest rate, which is paid semi-annually. Receivable Financing The receivable financing liability relates to certain accounts receivable transferred to third-party financial institutions that did not qualify as a sale under the terms of the agreements. While the terms of such agreements are on a nonrecourse basis, the transfers of accounts receivable could not achieve certain criteria that would allow derecognition of the accounts receivable. The proceeds from these arrangements are recognized as a liability and the associated accounts receivable remains on the Consolidated Balance Sheet until the liability is settled. The Company did not execute any transfers under these agreements during the years ended December 31, 2024 and 2023.  Debt Issuances and Extinguishments On August 22, 2024, the Company completed the issuance of $600 million aggregate principal amount of 5.100% Senior Notes due 2030 (the “2030 Notes”) at 99.889% of par and $600 million aggregate principal amount of 5.550% Senior Notes due 2034 (the “2034 Notes”) at 99.742% of par (collectively, the “Notes”). Interest on the 2030 Notes is payable semi-annually on March 1 and September 1 of each year. Interest on the 2034 Notes is payable semi-annually on February 22 and August 22 of each year. The net proceeds from the Notes issuance were used to fund the settlement of the concurrent cash tender offer and the payment of related accrued and unpaid interest, fees and expenses and general corporate purposes, including the redemption of the remaining 5.500% Senior Notes due 2024 and the repayment at maturity of the remaining 4.125% Senior Notes due 2025.  On August 22, 2024, concurrent with the Notes issuance, the Company completed a cash tender offer for $391 million and $389 million of the outstanding aggregate principal amounts under its 5.500% Senior Notes due 2024 and the 4.125% Senior Notes due 2025, respectively, plus accrued and unpaid interest, fees and expenses. In connection with the cash tender offer, the Company recognized an immaterial net gain on extinguishment of debt, which is presented within Other income (expense), net on the Consolidated Statements of Operations. On October 7, 2024, the Company redeemed the remaining outstanding 5.500% Senior Notes due 2024, which were scheduled to mature on December 1, 2024, at par for $184 million.  Total Debt Maturities As of December 31, 2024, aggregate future maturities of debt, excluding unamortized debt issuance costs, are as follows for the years ending December 31: 
 Fair Value The fair values of the unsecured senior notes were estimated using quoted market prices for identical liabilities that are traded in over-the-counter secondary markets. The fair value of the Term Loan Facility was estimated using dealer quotes and other market observable inputs for comparable liabilities. The unsecured senior notes and Term Loan Facility were classified as Level 2 within the fair value hierarchy. The carrying value of the Revolving Loan Facility approximates fair value.  The approximate fair values and related carrying values of the Company’s long-term debt, including current maturities and excluding unamortized discount and unamortized debt issuance costs, were as follows: 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Fair Value Measurements and Financial Instruments | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Derivative Instruments and Hedging Activities Disclosure [Abstract] | |
| Fair Value Measurements and Financial Instruments | Fair Value Measurements and Financial Instruments Derivative Instruments The Company may use derivative financial instruments to manage its exposure to interest rate risk. The Company does not hold or issue derivative financial instruments for trading or speculative purposes. The following sections detail the Company’s derivative financial instruments. Interest Rate Collars The Company’s variable interest rate debt creates interest rate risk. The Company has interest rate collar agreements that provide for contractually specified interest rate cap and an interest rate floor based on SOFR. The Company receives payment from the counterparty if SOFR is greater than the cap or pays the counterparty if SOFR is below the floor. If SOFR is between the floor and cap, no payment is due to either party. There were no new interest rate collar agreements executed for the year ended December 31, 2024. As of December 31, 2024 and December 31, 2023, the interest rate collar agreements were classified within Long-term liabilities - Accounts payable and other liabilities on the Consolidated Balance Sheets for which the fair value was not material. The total notional amount of the interest rate collar agreements was $400 million as of December 31, 2024 and December 31, 2023, which mature on September 30, 2026. The fair value of the Company’s interest rate collar agreements is classified as Level 2 in the fair value hierarchy. The valuation of the interest rate collar agreements is derived using a discounted cash flow analysis on the expected cash receipts or cash disbursements that would occur if variable interest rates rise above or fall below the strike rates of the interest rate cap and interest rate floor, respectively. This analysis reflects the contractual terms of the interest rate collar agreements, including the period to maturity, and uses observable market-based inputs, including SOFR curves and implied volatilities. The Company also incorporates insignificant credit valuation adjustments to appropriately reflect the respective counterparty’s nonperformance risk in the fair value measurements. The counterparty credit spreads are based on publicly available credit information obtained from a third-party credit data provider.  The interest rate collars are designated as cash flow hedges. The changes in the fair value of derivatives that qualify as cash flow hedges are recorded in Accumulated other comprehensive loss (“AOCL”) and are subsequently reclassified into Interest expense, net in the period when the hedged forecasted transaction affects earnings. During the year ended December 31, 2024, the change in fair value for the effective portion of the derivative financial instruments and the reclassification from AOCL to Interest expense, net was not material.  Treasury Locks The Company used treasury lock agreements to manage interest rate risk in advance of the issuance of fixed rate debt. During the year ended December 31, 2024, the Company executed and settled treasury lock agreements for a total notional value of $600 million, concurrent with the issuance of unsecured senior notes. The treasury lock agreements were settled at an immaterial loss. For additional information regarding the issuance of the unsecured senior notes, see Note 8 (Debt). The treasury lock agreements were designated as cash flow hedges. The loss on the settlement was recorded to AOCL and is subsequently reclassified into Interest expense, net over the term of the debt in the same period during which the hedged forecasted transaction affects earnings. During the year ended December 31, 2024, the reclassification from AOCL to Interest expense, net was not material. Short-term Investments Short-term investments, which have a maturity that extends beyond three months but within one year, is comprised of a certificate of deposit. As of December 31, 2024, the amortized cost of the certificate of deposit was $214 million and is classified within Short-term investments on the Consolidated Balance Sheets. The fair value of the short-term investment approximates the carrying value due to its short-term nature and is classified as a Level 2 in the fair value hierarchy. | 
| Income Taxes | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Income Tax Disclosure [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Income Taxes | Income Taxes Income before income taxes was taxed under the following jurisdictions: 
 Components of Income tax expense (benefit) consist of the following: 
 The reconciliation between the statutory tax rate expressed as a percentage of income before income taxes and the effective income tax rate was as follows: 
 The tax effect of temporary differences that give rise to net deferred income tax liabilities is presented below.  
 The Company has income tax net operating losses of $88 million that do not expire and international tax credit carryforwards of $17 million, which expire in 2027. The Company is indefinitely reinvested in its UK business, and therefore did not provide for any US deferred taxes on the earnings of the UK business. The Company is not permanently reinvested in its Canadian business and therefore has recognized deferred tax liabilities of $7 million as of December 31, 2024 related to Canada withholding taxes on earnings of its Canadian business. In the ordinary course of business, the Company is subject to review by domestic and foreign taxing authorities, including the Internal Revenue Service (“IRS”). In general, the Company is no longer subject to audit by the IRS or state, local, or foreign taxing authorities for tax years through 2014. Various taxing authorities are in the process of auditing income tax returns of the Company and its subsidiaries. The Company does not anticipate that any adjustments from the audits would have a material impact on its Consolidated Financial Statements. Changes in the Company’s unrecognized tax benefits as of December 31, 2024, 2023 and 2022 were as follows: 
 As of December 31, 2024, the Company had $20 million of unrecognized tax benefits that, if recognized, would have decreased income taxes and the corresponding effective income tax rate and increased net income. The impact of recognizing these tax benefits, net of the federal income tax benefit related to unrecognized state income tax benefits, would be approximately $16 million. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Leases | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Leases [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Leases | Leases The Company has operating leases primarily for real estate, data centers and equipment. Remaining lease terms are up to 11 years. Supplemental Consolidated Balance Sheets information related to the Company’s operating leases is as follows: 
 Operating lease cost, inclusive of variable and short-term lease cost, for the years ended December 31, 2024, 2023 and 2022 was $60 million, $62 million and $62 million, respectively.  Maturities of operating lease liabilities are as follows: 
 (1)Includes lease incentives that will be realized in 2025.  Supplemental cash flow information related to operating leases is as follows: 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Stockholders' Equity | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Equity [Abstract] | |
| Stockholders' Equity | Stockholders’ Equity Share Repurchase Program The Company has a share repurchase program under which it may repurchase shares of its common stock from time to time in privately negotiated transactions, open market purchases or other transactions as permitted by securities laws and other legal requirements. The timing and amounts of any purchases will be based on market conditions and other factors including but not limited to share price, regulatory requirements and capital availability. The share repurchase program does not obligate the Company to repurchase any minimum dollar amount or number of shares and the program may be modified, suspended or discontinued at any time.During 2024, the Company repurchased 2.4 million shares of its common stock for $500 million under the share repurchase program. On February 5, 2025, the Company announced that its Board of Directors authorized a $750 million increase to the share repurchase program, which was incremental to the approximately $588 million remaining as of December 31, 2024 under the $750 million authorization announced on February 7, 2024. | 
| Equity-Based Compensation | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Share-Based Payment Arrangement, Disclosure [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Equity-Based Compensation | Equity-Based Compensation Equity-based compensation expense, which is recorded in Selling and administrative expenses in the Consolidated Statements of Operations was as follows: 
 (1)Represents equity-based compensation tax expense at the statutory tax rates. Excess tax benefits associated with equity awards are excluded from this disclosure and separately disclosed in Note 10 (Income Taxes). The total unrecognized compensation cost related to non-vested awards was $108 million as of December 31, 2024 and is expected to be recognized over a weighted-average period of 2.1 years. Long-Term Incentive Plan The 2021 Long-Term Incentive Plan (“2021 LTIP”) provides for the grant of incentive stock options, nonqualified stock options, stock appreciation rights, restricted stock, restricted stock units, bonus stock and performance awards. The maximum aggregate number of shares of the Company’s common stock that may be issued under the 2021 LTIP is 22.1 million shares. As of December 31, 2024, 6.2 million shares were available for issuance under the 2021 LTIP. Authorized but unissued shares are reserved for issuance in connection with equity-based awards. Stock Options The exercise price of a stock option granted is equal to the fair value of the underlying stock on the date of the grant. Stock options granted under the LTIPs have a contractual term of ten years and generally vest ratably over three years. To estimate the fair value of options granted, the Company uses the Black-Scholes option pricing model.  The weighted-average assumptions used to value the stock options granted were as follows: 
 (1)Based on a weighting of the historical volatility and implied volatility. (2)Based on a composite US Treasury rate. (3)Based on contractual term length and on historical experience of both exercised and unexercised options. Stock option activity for the year ended December 31, 2024 was as follows: 
 (1)The total intrinsic value of stock options exercised during the years ended December 31, 2024, 2023 and 2022 was $66 million, $97 million and $40 million, respectively. Restricted Stock Units (“RSUs”) Restricted stock units represent the right to receive unrestricted shares of the Company’s stock at the time of vesting. RSUs granted under the LTIPs vest either ratably over three years or cliff-vest at the end of three years. The fair value of RSUs is equal to the closing price of the Company’s common stock on date of grant. RSU activity for the year ended December 31, 2024 was as follows: 
 (1)The weighted-average grant date fair value of RSUs granted during the years ended December 31, 2024, 2023 and 2022 was $203.24, $189.30 and $169.11, respectively. (2)The aggregate fair value of RSUs that vested during the years ended December 31, 2024, 2023 and 2022 was $37 million, $27 million and $16 million, respectively. Performance Share Units (“PSUs”) Performance share units represent the right to receive unrestricted shares of the Company’s stock at the time of vesting. PSUs granted under the LTIPs cliff-vest at the end of three years. The majority of the PSUs will vest between 0% to 200% of the number of PSUs granted based on the Company’s performance against a cumulative adjusted free cash flow measure and cumulative non-GAAP net income per diluted share measure over a three-year performance period. PSU activity for the year ended December 31, 2024 was as follows: 
 (1)The weighted-average grant date fair value of PSUs granted during the years ended December 31, 2024, 2023 and 2022 was $224.53, $210.30 and $176.14, respectively. (2)During the year ended December 31, 2024, the PSUs that vested at December 31, 2023 were adjusted to reflect final attainment. (3)The aggregate fair value of PSUs that vested during the years ended December 31, 2024, 2023 and 2022 was $42 million, $35 million and $28 million, respectively. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Earnings Per Share | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Earnings Per Share [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Earnings Per Share | Earnings Per Share The numerator for both basic and diluted earnings per share is Net income. The denominator for basic earnings per share is the weighted-average shares outstanding during the period. A reconciliation of basic weighted-average shares outstanding to diluted weighted-average shares outstanding is as follows: 
 (1)The dilutive effect of outstanding stock options, restricted stock units, performance share units and Coworker Stock Purchase Plan (“CSPP”) units is reflected in the diluted weighted-average shares outstanding using the treasury stock method. (2)There were fewer than 0.2 million potential common shares excluded from diluted weighted-average shares outstanding for the years ended December 31, 2024, 2023 and 2022, respectively. Inclusion of these common shares in diluted weighted average shares outstanding would have had an anti-dilutive effect. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Coworker Retirement and Other Compensation Benefits | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Compensation Related Costs [Abstract] | |
| Coworker Retirement and Other Compensation Benefits | Coworker Retirement and Other Compensation Benefits Profit Sharing Plan and Other Savings Plans The Company has a profit-sharing plan that includes a salary reduction feature established under the Internal Revenue Code Section 401(k) covering substantially all coworkers in the US. In addition, coworkers outside the US participate in other savings plans. Company contributions to the profit sharing and other savings plans are made in cash and determined at the discretion of the Board of Directors. For the years ended December 31, 2024, 2023 and 2022, the amounts expensed for these plans were $27 million, $20 million and $43 million, respectively. Coworker Stock Purchase Plan (“CSPP”) The Company has a CSPP that provides the opportunity for eligible coworkers to acquire shares of the Company’s common stock through accumulated payroll deductions at a 5% discount from the closing market price on the final day of the offering period. There is no additional compensation expense associated with the CSPP. | 
| Commitments and Contingencies | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Commitments and Contingencies Disclosure [Abstract] | |
| Commitments and Contingencies | Commitments and Contingencies The Company is party to various legal proceedings that arise in the ordinary course of its business, which include commercial, intellectual property, employment, tort and other litigation matters. The Company is also subject to audit by federal, state, international, national, provincial and local authorities, and by various partners, group purchasing organizations and customers, including government agencies, relating to purchases and sales under various contracts.  In addition, the Company is subject to indemnification claims under various contracts. From time to time, certain customers of the Company file voluntary petitions for reorganization or liquidation under the US bankruptcy laws or similar laws of the jurisdictions for the Company’s business activities outside of the US. In such cases, certain pre-petition payments received by the Company could be considered preference items and subject to return to the bankruptcy administrator. As of December 31, 2024, the Company does not believe that there is a reasonable possibility that any material loss exceeding the amounts already recognized for these proceedings and matters, if any, has been incurred. However, the ultimate resolutions of these proceedings and matters are inherently unpredictable. As such, the Company’s Consolidated Financial Statements could be adversely affected in any particular period by the unfavorable resolution of one or more of these proceedings or matters.The Company received a Civil Investigative Demand, issued by Department of Justice (“DOJ”) on June 11, 2024 in connection with a False Claims Act investigation. The DOJ requested information relating to bids the Company submitted for contracts funded in whole or in part by the Schools and Libraries Program (E-Rate Program). The Company is cooperating with the DOJ and, at this stage in the investigation, is unable to assess the probability of any outcome or the range of possible loss, if any. | 
| Segment Information | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Segment Reporting [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Segment Information | Segment Information The Company has three reportable segments: Corporate, Small Business, and Public. In addition, there are two other operating segments: CDW UK and CDW Canada, both of which do not meet the reportable segment quantitative thresholds and, accordingly, are included in an all other category (“Other”). The organizational structure of the Company’s segments is determined based on how the chief operating decision maker (“CODM”), who is the Chief Executive Officer, evaluates performance, allocates resources and manages operations, which is primarily based on customer base. Specifically, the Corporate reportable segment is primarily comprised of private sector business customers with more than 250 employees in the US, the Small Business reportable segment is primarily comprised of private sector business customers with up to 250 employees in the US, and the Public reportable segment is comprised of government agencies and education and healthcare institutions in the US.  The accounting policies used to determine profit and loss measures are consistent across all reportable segments and on a consolidated basis. Additionally, the CODM reviews key profit and loss measures for each reportable segment consistently based on both segment Gross profit and Operating income. Specifically, the CODM reviews Gross profit by segment to develop forecasting and evaluate overall profitability performance and Operating income by segment to make investment strategy and performance-based compensation decisions. Segment information for Total assets and capital expenditures is not presented given that such information is not used in measuring segment performance or allocating resources between segments. The Company has centralized logistics and headquarters functions that provide services to the segments. The logistics function includes purchasing, distribution and fulfillment services to support the Corporate, Small Business and Public segments. As a result, costs and intercompany charges associated with the logistics function are fully allocated to all of these segments based on a percent of Net sales. The centralized headquarters function provides services in areas such as accounting, information technology, marketing, legal and coworker services. Headquarters function costs that are not allocated to the segments are included under the heading of “Headquarters” in the tables below. Information about the Company’s segments for the years ended December 31, 2024, 2023 and 2022 is as follows: 
 (1)Primarily includes payroll and other coworker costs, advertising expense and other selling and administrative costs. (2)Depreciation and amortization expense is primarily included within Other segment items.     Geographic Areas and Revenue Mix 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. The following table presents Net sales by major category for the years ended December 31, 2024, 2023 and 2022. Categories are based upon internal classifications. 
 (1)Certain software and services revenues are recorded on a net basis for accounting purposes. As a result, the category percentage of net revenues is not representative of the category percentage of gross profits. (2)Includes items such as delivery charges to customers. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pay vs Performance Disclosure - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Pay vs Performance Disclosure | |||
| Net income | $ 1,077.8 | $ 1,104.3 | $ 1,114.5 | 
| Insider Trading Arrangements | 3 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Trading Arrangements, by Individual | |
| Rule 10b5-1 Arrangement Adopted | false | 
| Non-Rule 10b5-1 Arrangement Adopted | false | 
| Rule 10b5-1 Arrangement Terminated | false | 
| Non-Rule 10b5-1 Arrangement Terminated | false | 
| Insider Trading Policies and Procedures | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Insider Trading Policies and Procedures [Line Items] | |
| Insider Trading Policies and Procedures Adopted | true | 
| Cybersecurity Risk Management and Strategy Disclosure | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Cybersecurity Risk Management, Strategy, and Governance [Line Items] | |
| Cybersecurity Risk Management Processes for Assessing, Identifying, and Managing Threats [Text Block] | We have a dedicated team of information security professionals who leads our enterprise-wide cyber security strategy, risk management, cyber defense, software security, security monitoring and other related functions. This team is overseen by our Chief Information Security Officer (“CISO”), who reports to our Chief Technology Officer (“CTO”). The CISO has extensive  background in that role at an enterprise level and has over 20 years of experience in the field of cybersecurity. Additionally, the processes overseen by our global information security team are integrated with our enterprise risk management program, including routine reporting on cyber risk through the different levels of the enterprise risk management governance structure and alignment on risk management frameworks and processes.  Our corporate information security management program is ISO 27001 certified, and we undergo routine audits by an independent, certified accreditation body to maintain this certification. Our program is designed to guide our practices which are based on relevant industry frameworks and laws. This program consists of policies, practices and procedures designed to manage material risks from cybersecurity threats, including training requirements, threat monitoring and detection and threat containment and risk assessments. Additionally, we leverage third-party firms to conduct routine external and internal penetration testing to emulate the common tactics and techniques of cyber threat actors and have processes to address identified vulnerabilities, although it may take time to mitigate or manage such vulnerabilities. We also have policies and procedures to oversee and identify the cybersecurity risks associated with our use of third-party service providers for both internal use and external use. These policies and procedures include onboarding risk assessments prior to engagement and, as appropriate based on identified risk, may include cybersecurity-related contractual terms and periodic risk assessments throughout the life cycle of the third-party relationship. Lastly, we maintain cybersecurity insurance coverage that we believe is appropriate for the size and complexity of our business to cover certain costs related to cybersecurity incidents. We refine our cybersecurity program by staying informed on security threats, leveraging third-party cybersecurity firms and investing in enhancements to our preventive and defensive capabilities.In addition to our policies and procedures to manage and identify cybersecurity risks, we have an incident response plan designed to analyze, contain, remediate and communicate cybersecurity matters to help ensure a timely and robust response to actual or attempted incidents. As of the date of this report, we are not aware of any risks from cybersecurity threats that have materially affected or are reasonably likely to materially affect the Company, including our business strategy, results of operations or financial condition. However, we cannot provide assurance that these threats will not result in such an impact in the future. For more information regarding risks relating to information technology and cybersecurity, see “Item 1A. Risk Factors.” | 
| Cybersecurity Risk Management Processes Integrated [Flag] | true | 
| Cybersecurity Risk Management Processes Integrated [Text Block] | Additionally, the processes overseen by our global information security team are integrated with our enterprise risk management program, including routine reporting on cyber risk through the different levels of the enterprise risk management governance structure and alignment on risk management frameworks and processes. | 
| Cybersecurity Risk Management Third Party Engaged [Flag] | true | 
| Cybersecurity Risk Third Party Oversight and Identification Processes [Flag] | true | 
| Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Flag] | false | 
| Cybersecurity Risk Board of Directors Oversight [Text Block] | The Audit Committee is primarily responsible for overseeing our enterprise risk management process on behalf of the Board of Directors, including cybersecurity risks. The CTO and CISO regularly provide reporting on cybersecurity matters to both senior management and the Audit Committee and at least annually to the Board of Directors. This reporting includes updates on our information security strategy, key cyber risks and threats, our progress towards protecting the Company from such risks and threats, assessments of our cybersecurity program and emerging trends. Depending on the criticality of a cybersecurity incident, certain matters are required to be reported promptly to the Board of Directors, as appropriate, in accordance with our incident response plan. | 
| Cybersecurity Risk Board Committee or Subcommittee Responsible for Oversight [Text Block] | The Audit Committee is primarily responsible for overseeing our enterprise risk management process on behalf of the Board of Directors, including cybersecurity risks. | 
| Cybersecurity Risk Process for Informing Board Committee or Subcommittee Responsible for Oversight [Text Block] | The Audit Committee is primarily responsible for overseeing our enterprise risk management process on behalf of the Board of Directors, including cybersecurity risks. The CTO and CISO regularly provide reporting on cybersecurity matters to both senior management and the Audit Committee and at least annually to the Board of Directors. This reporting includes updates on our information security strategy, key cyber risks and threats, our progress towards protecting the Company from such risks and threats, assessments of our cybersecurity program and emerging trends. | 
| Cybersecurity Risk Role of Management [Text Block] | The Audit Committee is primarily responsible for overseeing our enterprise risk management process on behalf of the Board of Directors, including cybersecurity risks. The CTO and CISO regularly provide reporting on cybersecurity matters to both senior management and the Audit Committee and at least annually to the Board of Directors. This reporting includes updates on our information security strategy, key cyber risks and threats, our progress towards protecting the Company from such risks and threats, assessments of our cybersecurity program and emerging trends. | 
| Cybersecurity Risk Management Positions or Committees Responsible [Flag] | true | 
| Cybersecurity Risk Management Positions or Committees Responsible [Text Block] | This team is overseen by our Chief Information Security Officer (“CISO”), who reports to our Chief Technology Officer (“CTO”). The CISO has extensive background in that role at an enterprise level and has over 20 years of experience in the field of cybersecurity. | 
| Cybersecurity Risk Management Expertise of Management Responsible [Text Block] | The CISO has extensive background in that role at an enterprise level and has over 20 years of experience in the field of cybersecurity. | 
| Cybersecurity Risk Process for Informing Management or Committees Responsible [Text Block] | The CTO and CISO regularly provide reporting on cybersecurity matters to both senior management and the Audit Committee and at least annually to the Board of Directors. | 
| Cybersecurity Risk Management Positions or Committees Responsible Report to Board [Flag] | true | 
| Description of Business and Summary of Significant Accounting Policies (Policies) | 12 Months Ended | 
|---|---|
| Dec. 31, 2024 | |
| Accounting Policies [Abstract] | |
| Description of Business | Description of Business CDW Corporation (“Parent”), a Fortune 500 company and member of the S&P 500 Index, is a leading multi-brand provider of information technology (“IT”) solutions to business, government, education and healthcare customers in the United States (“US”), the United Kingdom (“UK”) and Canada. The Company’s broad array of offerings ranges from discrete hardware and software products to integrated IT solutions and services that include on-premise and cloud capabilities across hybrid infrastructure, digital experience and security. Throughout this report, the terms “the Company” and “CDW” refer to Parent and its subsidiaries. Parent has two 100% owned subsidiaries, CDW LLC and CDW Finance Corporation. CDW LLC is an Illinois limited liability company that, together with its 100% owned subsidiaries, holds all material assets and conducts all business activities and operations of the Company. CDW Finance Corporation is a Delaware corporation formed for the sole purpose of acting as co-issuer of certain debt obligations and does not hold any material assets or engage in any business activities or operations. | 
| Basis of Presentation | Basis of Presentation The Consolidated Financial Statements have been prepared in conformity with accounting principles generally accepted in the United States of America (“US GAAP”) and the rules and regulations of the US Securities and Exchange Commission (“SEC”). The Company’s Consolidated Financial Statements are based on a fiscal year ended December 31. | 
| Principles of Consolidation | Principles of Consolidation The Consolidated Financial Statements include the accounts of Parent and its 100% owned subsidiaries. All intercompany transactions and accounts are eliminated in consolidation. | 
| Use of Estimates | Use of Estimates The preparation of the Consolidated Financial Statements in accordance with US GAAP requires management to make certain estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities as of the date of the Consolidated Financial Statements and the reported amounts of revenue and expenses during the reported periods. The Company bases its estimates on historical experience and on various other assumptions that management believes are reasonable under the circumstances, the results of which form the basis for making judgments about carrying values of assets and liabilities that are not readily apparent from other sources. Actual results and outcomes could differ from those estimates. | 
| Business Combinations | Business Combinations The Company accounts for business combinations using the acquisition method of accounting, which allocates the fair value of the purchase consideration to the tangible and intangible assets acquired and liabilities assumed based on their estimated fair values. The excess of the purchase consideration over the fair values of these identifiable assets and liabilities is recorded as goodwill. When determining the fair values of assets acquired and liabilities assumed, management makes significant estimates and assumptions. The Company may utilize third-party valuation specialists to assist the Company in the allocation. Initial purchase price allocations are subject to revision within the measurement period, not to exceed one year from the date of acquisition. Acquisition-related expenses and transaction costs associated with business combinations are expensed as incurred. | 
| Cash and Cash Equivalents | Cash and Cash Equivalents Cash and cash equivalents include deposits in banks and short-term (original maturities of three months or less at the time of purchase), highly liquid investments that are readily convertible to known amounts of cash and are so near maturity that there is insignificant risk of changes in value due to interest rate changes.Restricted cash represents funds that are restricted to satisfy deposit requirements with creditors. | 
| Accounts Receivable and Allowance for Credit Losses | Accounts Receivable The timing of revenue recognition may differ from the time of billing to customers. Accounts receivable presented on the Consolidated Balance Sheets represent an unconditional right to consideration, which includes unbilled receivables. Unbilled receivables represent revenues that are not currently billable where payment is unconditional and solely subject to the passage of time. These items are expected to be billed and collected in the normal course of business. Unbilled receivables primarily arise from non-cancellable, multi-year arrangements for software sales whereby the Company has completed its performance obligation under the contracts but will invoice its customers ratably over a period of time. For additional information regarding multi-year arrangements, see “Revenue Recognition for Software” below. Accounts receivable that are billed are recorded at the invoiced amount and include the taxes to be collected from the customer as part of the sale. Such billed amounts typically do not bear interest. The balance of the Company’s accounts receivable is classified as current for amounts expected to be collected within 12 months and noncurrent for amounts to be collected beyond 12 months. The Company occasionally may transfer certain accounts receivable, without recourse, to third-party financial companies as a method to accelerate cash collections and reduce the Company’s credit exposure. Under these agreements, the Company may transfer certain accounts receivable in exchange for cash less a discount, as defined by the agreements. The Company’s ability to sell receivables is dependent on the financial institutions’ willingness to purchase such receivables. In addition, certain of these agreements may also require that the Company continue to service, administer and collect the sold accounts receivable. Such transfers are recognized as a sale and the related accounts receivable is derecognized from the Consolidated Balance Sheet upon receipt of the third-party financing company’s payment.  For additional information on the Company’s accounts receivables, see Note 4 (Accounts Receivable and Contract Balances). Allowance for Credit Losses The Company estimates an allowance for credit losses related to accounts receivable, inclusive of billed and unbilled amounts, for future expected credit losses by using relevant information such as historical information, current conditions, and reasonable and supportable forecasts. For billed accounts receivable, the allowance is measured on a pool basis when similar risk characteristics exist, and a loss-rate for each pool is determined using historical credit loss experience as the basis for the estimation of expected credit losses. Adjustments to historical loss information are made for differences in current conditions as well as changes in forecasted macroeconomic conditions, such as changes in the unemployment rate or gross domestic product growth rate. If there are additional changes in circumstances related to a specific customer, the Company further adjusts its estimate based on the expected loss. The Company has typically observed a higher loss-rate experience with customers in pools associated with the Company’s Corporate and Small Business segments, as compared to the pools associated with the Public segment. For unbilled accounts receivable, the allowance is measured based on internal risk rating, which considers the customer’s credit rating, the duration of the multi-year arrangement, probability of default rates published by third-parties and other variables that mitigate the inherent credit risk on a particular transaction, such a legal right of set-off to the Company’s exposure. The internal risk rating is periodically reviewed for updates related to a customer’s credit rating and probability of default rates. Upon determining the internal risk rating, the allowance for credit loss is measured using the third-party default rates, adjusted for forecasted macroeconomic conditions. Given the nature of these unbilled receivables tied to multi-year arrangements and the robust credit approval process on long-term payment terms, the internal risk rating of these receivables is primarily low. For additional information on the Company’s allowance for credit loss, see Note 4 (Accounts Receivable and Contract Balances). | 
| Merchandise Inventory | Merchandise Inventory Inventory is valued at the lower of cost and net realizable value. Cost is determined using actual cost on a first-in, first-out method. Price protection is recorded when earned as a reduction to the cost of inventory. The Company decreases  the value of inventory for estimated obsolescence equal to the difference between the cost of inventory and the net realizable value, based upon an aging analysis of the inventory on hand, specifically known inventory-related risks and assumptions about future demand and market conditions. | 
| Miscellaneous Receivables | Miscellaneous Receivables Miscellaneous receivables primarily consist of amounts due from vendors. The Company receives incentives from vendors related to cooperative advertising, volume rebates, bid programs, price protection and other programs. These incentives generally relate to written vendor agreements with specified performance requirements and are generally recorded as adjustments to Cost of sales or Merchandise inventory, depending on the nature of the incentive. Funds received from vendors related to the reimbursement of specific, incremental and identifiable costs incurred by the Company are recorded as reduction of such costs, which may be within Selling and administrative expenses. | 
| Property and Equipment | Property and Equipment Property and equipment are stated at cost, less accumulated depreciation. The Company calculates depreciation expense using the straight-line method over the estimated useful lives of the assets. For revenue generating assets, the Company calculates depreciation expense using the straight-line method to the estimated residual value over the estimated useful life of the assets. Property and equipment are reviewed for impairment when events or changes in circumstances indicate that the carrying amount may not be recoverable. Determination of recoverability is based on an estimate of undiscounted future cash flows resulting from the use of the asset and its eventual disposition. If the carrying amount of an asset exceeds its estimated future undiscounted cash flows, an impairment loss is recorded for the excess of the asset’s carrying amount over its fair value. Leasehold improvements are amortized over the shorter of their estimated useful lives or the remaining lease term. Expenditures for major renewals and improvements that extend the useful life of property and equipment are capitalized. Expenditures for maintenance and repairs are charged to expense as incurred. | 
| Leases | Leases The Company enters into operating lease contracts, as assessed at contract inception, primarily for real estate, data centers and equipment. On the lease commencement date, the Company records operating lease liabilities based on the present value of the future lease payments. In determining the present value of future lease payments, the Company uses its incremental borrowing rate based on the information available at the commencement date. For real estate and data center contracts, the Company accounts for the lease and non-lease components as a single lease component. For certain equipment leases, the Company applies a portfolio approach to account for the right-of-use asset and operating lease liability. In assessing the lease term, the Company includes options to renew only when it is reasonably certain that it will be exercised, a determination which is at the sole discretion of the Company. For equipment leases used in revenue generating activities with an initial term of 12 months or less, the Company records a right-of-use asset and lease liability. For all remaining leases with an initial term of 12 months or less, the Company has elected to not record a right-of-use asset and lease liability. The Company records lease expense on a straight-line basis over the lease term beginning on the commencement date. | 
| Goodwill | Goodwill The Company performs an evaluation of goodwill at the reporting unit level, utilizing either a qualitative or quantitative impairment test. A qualitative assessment is performed at least on an annual basis to determine whether it is more likely than not that the fair value of a reporting unit is less than its carrying value. The Company performs a quantitative impairment test for each reporting unit every three years, or more frequently if circumstances indicate a potential impairment. The annual test for impairment is conducted during the fourth quarter. The Company’s reporting units included in the assessment of potential goodwill impairment are the same as its operating segments. Under a qualitative assessment, the most recent quantitative assessment is used to determine if it is more likely than not that the reporting unit’s goodwill is impaired. As part of this qualitative assessment, the Company assesses relevant events and circumstances including macroeconomic conditions, industry and market conditions, cost factors, overall financial performance, changes in share price and entity-specific events to determine if there is an indication of impairment. Under a quantitative assessment, goodwill impairment is identified by comparing the fair value of a reporting unit to its carrying amount, including goodwill. If the carrying amount of a reporting unit exceeds its fair value, goodwill is  considered impaired and an impairment charge is recognized in an amount equal to that excess, not to exceed the carrying amount of goodwill. Fair value of a reporting unit is determined by using a weighted combination of an income approach and a market approach, as this combination is considered the most indicative of the Company’s fair value in an orderly transaction between market participants. Under the income approach, the Company determines fair value based on estimated future cash flows of a reporting unit, discounted by an estimated weighted-average cost of capital, which reflects the overall level of inherent risk of a reporting unit and the rate of return an outside investor would expect to earn. The estimated future cash flows of each reporting unit are based on internally generated forecasts for the remainder of the respective reporting period and the next five years. Under the market approach, the Company utilizes valuation multiples derived from publicly available information for guideline companies to provide an indication of how much a knowledgeable investor in the marketplace would be willing to pay for a company. The valuation multiples are applied to the reporting units. Determining the fair value of a reporting unit is judgmental in nature and requires the use of significant estimates and assumptions, including Net sales growth rates, gross profit margins, operating margins, discount rates and future market conditions, among others. Any changes in the judgments, estimates or assumptions used could produce significantly different results. | 
| Intangible Assets | Intangible Assets Intangible assets with determinable lives are amortized on a straight-line basis over their respective estimated useful lives. Intangible assets include customer relationships, trade name and internally developed software. For internally developed software, the Company capitalizes external costs and directly attributable internal costs to acquire or create internal use software which are incurred during the application development stage. These costs relate to activities such as configuration, coding, testing and installation. Costs related to post-implementation activities such as training and maintenance are expensed as incurred. Once the software is substantially complete and ready for its intended use, capitalized development costs are amortized straight-line over the estimated useful life of the software. Intangible assets are reviewed for impairment when events or changes in circumstances indicate that the carrying amount of such assets may not be recoverable. Determination of recoverability is based on an estimate of undiscounted future cash flows resulting from the use of the asset and its eventual disposition. If the carrying amount of an asset exceeds its estimated future undiscounted cash flows, an impairment loss is recorded for the excess of the asset’s carrying amount over its fair value. In addition, each quarter, the Company evaluates whether events and circumstances warrant a revision to the remaining estimated useful life of each of these intangible assets. If the Company were to determine that a change to the remaining estimated useful life of an intangible asset was necessary, then the remaining carrying amount of the intangible asset would be amortized prospectively over that revised remaining useful life. Cloud Computing Arrangements The Company enters into certain cloud-based software hosting arrangements for internal use that are accounted for as service contracts. Costs incurred in implementing a cloud computing arrangement are deferred during the application development stage and presented within Prepaid expenses and other on the Consolidated Balance Sheets. Once a cloud computing arrangement is ready for its intended use, the implementation costs are amortized on a straight-line basis over the fixed term of the hosting arrangement plus any reasonably certain renewal periods. | 
| Debt Issuance Costs | Debt Issuance Costs Debt issuance costs, such as underwriting, financial advisory, professional fees and other similar fees are capitalized and recognized in Interest expense, net over the estimated life of the related debt instrument using the effective interest method or straight-line method, as applicable. The Company classifies debt issuance costs as a direct deduction from the carrying value of the Long-term debt liability on the Consolidated Balance Sheets, except for debt issuance costs associated with revolving credit facilities which are presented as an asset, within Other assets on the Consolidated Balance Sheets. | 
| Fair Value Measurements | Fair Value Measurements Fair value is defined under US GAAP as the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. A fair value hierarchy has been established for valuation inputs to prioritize the inputs into three levels based on the extent to which inputs used in measuring fair value are observable in the market. Each fair value measurement is reported in one of the three levels which is determined by the lowest level input that is significant to the fair value measurement in its entirety. These levels are: Level 1 – observable inputs such as quoted prices for identical instruments traded in active markets. Level 2 – inputs are based on quoted prices for similar instruments in active markets, quoted prices for identical or similar instruments in markets that are not active and model-based valuation techniques for which all significant assumptions are observable in the market or can be corroborated by observable market data for substantially the full term of the assets or liabilities. Level 3 – inputs are generally unobservable and typically reflect management’s estimates of assumptions that market participants would use in pricing the asset or liability. The fair values are therefore determined using model-based techniques that include option pricing models, discounted cash flow models and similar techniques. | 
| Revenue Recognition | Revenue Recognition The Company is a primary distribution channel for a large group of vendors and suppliers, including original equipment manufacturers (“OEMs”), software publishers, cloud providers and wholesale distributors. The Company may sell hardware, software and services on standalone basis or as a bundled solution arrangement. For additional information on the disaggregation of Net sales by major category, see Note 17 (Segment Information). The Company accounts for a contract when it has approval and commitment from both parties, the rights of the parties are identified, payment terms are established, the contract has commercial substance and collectability of consideration is probable. The Company evaluates the following indicators amongst others when determining whether it is acting as a principal in the transaction and recording revenue on a gross basis: (i) the Company is primarily responsible for fulfilling the promise to provide the specified product or service, (ii) the Company has inventory risk before the specified product has been transferred to a customer or after transfer of control to the customer and (iii) the Company has discretion in establishing the price for the specified product or service. If the terms of a transaction do not indicate the Company is acting as a principal in the transaction, then the Company is acting as an agent in the transaction and the associated revenues are recognized on a net basis. For performance obligations whereby the Company is acting as a principal, revenue is recognized when, or as, the customer obtains control of the specified product or service. The Company recognizes revenue in transactions for which it is acting as an agent once it has arranged for the third party to provide the product or service. Depending on the nature of the arrangement, this may occur at the time the Company executes the contract with the third party or at the time it invoices the customer.  Revenue Recognition for Hardware Revenues from the sale of hardware are recognized on a gross basis as the Company is acting as a principal in these transactions, with the selling price to the customer recorded as Net sales and the acquisition cost of the product recorded as Cost of sales. The Company recognizes revenue from these transactions when control has passed to the customer, which is typically based on the shipping terms in the contract with the customer (e.g., upon delivery of the product to the customer). The Company may leverage drop-shipment arrangements with many of its vendors and suppliers to deliver hardware to its customers without having to physically hold the inventory at its warehouses. The Company is the principal in the transaction and recognizes revenue for drop-shipment arrangements on a gross basis. In some instances, the customer agrees to buy the hardware from the Company but requests delivery at a later date, commonly known as bill-and-hold arrangements. For these transactions, the Company deems that control passes to the customer when the hardware is ready for delivery. The Company views hardware as ready for delivery when: (i) the customer has a signed agreement, (ii) significant risk and rewards have transferred to the customer, (iii) the customer has the ability to direct the use of the hardware, (iv) the hardware has been set aside specifically for the customer and  cannot be redirected to another customer and (v) as applicable, the configuration services have been completed when ordered with the hardware. The Company’s vendor partners may provide warranties on the hardware the Company sells. These manufacturer warranties are assurance-type warranties and are not considered separate performance obligations. The warranties are not sold separately and only provide assurance that the hardware will conform with the manufacturer’s specifications. In some transactions, the vendor partner will provide the customer with an extended warranty. These extended warranties are sold separately and provide the customer with a service in addition to assurance that the product will function as expected. The Company considers these warranties to be separate performance obligations from the underlying product. For additional information regarding the accounting for extended warranties, see “Revenue Recognition for Services” below. Revenue Recognition for Software Revenues from the sale of software include perpetual licenses, term licenses, software assurance and cloud computing solutions. From time to time, such software may be sold as fixed, non-cancellable multi-installment arrangements (i.e., multi-year arrangements) or variable, cancellable arrangements (more common in cloud computing arrangements). In these instances, the Company recognizes revenue based on its present enforceable rights and obligations and when it has completed its performance obligation. In these instances where the timing of revenue recognition differs from the timing of invoicing, the Company has determined that such arrangements do not include a significant financing component. The primary purpose of the Company’s invoicing terms is to provide customers with simplified and predictable ways of purchasing software and to mirror the payment terms offered by the software publisher. Depending on the nature of the software, the Company may be acting as a principal or an agent. For perpetual licenses and term licenses, the software is recognized as a single performance obligation on a gross basis as the Company is acting as a principal in these transactions at the point the software is delivered to the customer (i.e., via electronic delivery of keys). Generally, these licenses are sold with accompanying third-party delivered software assurance, which is a product that allows customers to upgrade to the latest technology if new capabilities are introduced during the period that the software assurance is in effect. The Company evaluates whether the software assurance is a separate performance obligation by assessing if the third-party delivered software assurance is critical or essential to the core functionality of the software itself. If the Company determines that the accompanying third-party delivered software assurance is critical or essential to the core functionality of the software license, the software license and the accompanying third-party delivered software assurance are recognized as a single performance obligation. As a result, the value of the product is primarily the accompanying support delivered by a third party and, therefore, the Company is acting as an agent and recognizes the revenue on a net basis once its agency obligation is complete. This is common for security software where updates are critical to the core functionality of the software. For software licenses where the accompanying third-party delivered software assurance is not critical or essential to the core functionality, the software assurance is recognized as a separate performance obligation, with the associated revenue recognized on a net basis. For additional information regarding the accounting for bundled arrangements, see “Revenue Recognition for Bundled Arrangements” below. The Company sells cloud computing solutions which include Software as a Service (“SaaS”) and Infrastructure as a Service (“IaaS”). SaaS solutions, commonly referred to as subscription licenses, utilize third-party partners to offer the Company’s customers access to software in the cloud that enhances office productivity, provides security or assists in collaboration. IaaS solutions utilize third-party partners to enable customers to access data center functionality in a cloud-based solution, including storage, computing and networking. In these transactions, the Company is acting as an agent and recognizes revenue once its agency performance obligation is complete. The Company’s customers are offered the opportunity by certain of its vendors to purchase software licenses and software assurance under enterprise agreements (“EAs”). For most EA transactions, the Company’s obligation to the customer is that of a distributor or sales agent of the services, where all obligations for providing the services to customers are passed to the Company’s vendors. The Company’s performance obligations are satisfied at the time of the sale. With most EAs, the Company’s vendors will transfer the license and invoice the customer directly, paying resellers an agency fee or commission on these sales. The Company records these fees as a component of Net sales as earned and there is no corresponding Cost of sales amount. Revenue Recognition for Services Revenues from the sale of services include professional services, hosted and managed services and vendor partner delivered services. Depending on the nature of the service, the Company may be acting as a principal or an agent.  The Company provides professional services, which include project managers, specialists and engineers, recommending, designing and implementing IT solutions. The Company is primarily responsible for the fulfillment and acceptability of the professional services and has control over how to provide the requested services. As a result, the Company is the principal, and professional services revenue is recognized on a gross basis either on a time and materials basis for variable contracts or proportionally as costs are incurred relative to the total estimated costs to complete for fixed fee contracts (i.e., an input method).  The Company provides hosted and managed services which primarily includes IT support services and data center services, such as managed and remote managed services, server co-location, internet connectivity and data backup and storage. Similar to professional services revenue, the Company is the principal in providing these services. Generally, hosted and managed services represent stand ready obligations and, therefore, the Company recognizes the revenue on a gross basis, ratably over the contractual term.  The Company may resell vendor partner delivered services. A common example is extended warranties, which are considered to be separate performance obligations from the underlying product. For vendor partner delivered services, the Company is arranging for such services to be provided by the vendor partner and, therefore, is acting as an agent and records revenue on a net basis at the point of sale. Revenue Recognition for Bundled Arrangements The Company often sells hardware, software and/or services as part of a bundled solution arrangement containing multiple performance obligations. For each deliverable that represents a distinct performance obligation, total arrangement consideration is allocated based upon the standalone selling prices of each performance obligation. Sales In-Transit The Company performs an analysis of the estimated number of days of sales in-transit to customers at the end of each reporting period based on a weighted-average analysis of commercial delivery terms that include drop-shipment arrangements. This analysis is the basis upon which the Company estimates the amount of Net sales in-transit at the end of the period and adjusts revenue and the related costs to reflect only what has been delivered to the customer. Changes in delivery patterns may result in a different number of business days estimated to make this adjustment. Freight Costs The Company records freight billed to its customers as Net sales and the related freight costs as Cost of sales when the underlying product revenue is recognized. For freight not billed to its customers, the Company records the freight costs as Cost of sales. The Company’s typical shipping terms result in shipping being performed before the customer obtains control of the product. The Company considers shipping to be a fulfillment activity and not a separate performance obligation. Other The nature of the Company’s contracts give rise to variable consideration in the form of volume rebates and sales returns and allowances, which are estimated at contract inception. The Company estimates variable consideration at the most likely amount to which it is expected to be entitled. This estimated amount is included in the transaction price to the extent it is probable that a significant reversal of cumulative revenue recognized will not occur when the uncertainty associated with the variable consideration is resolved. The estimates of variable consideration and determination of whether to include estimated amounts in the transaction price are based on an assessment of the Company’s anticipated performance and all information that is reasonably available. At the time of sale, the Company records a liability for estimated sales returns and allowances and an associated right of return asset. The Company also records a provision for volume rebates based on the evaluation of contract terms and historical experience. The Company excludes amounts collected on behalf of third parties, such as sales taxes, when determining the transaction price. When a contract results in revenue being recognized in excess of the amount the Company has the right to invoice to the customer, a contract asset is recorded on the Consolidated Balance Sheets. Contract assets primarily arise due to partially fulfilled contracts with integrated solutions and professional services with fixed fee arrangements. Contract liabilities consist of payments received from customers, or such consideration that is contractually due, in advance of providing the product or performing services. Contract liabilities primarily arise due to professional services with fixed fee arrangements, bill-and-hold transactions where control has not passed to the customer and certain governmental contracts. Any incremental direct costs of obtaining a contract, primarily sales commissions, are deferred on the Consolidated Balance Sheets and amortized over the period of contract performance. The Company has elected to use the practical expedient for its performance obligations table to include only those contracts that are longer than 12 months at the time of contract inception and those contracts that are non-cancelable. Additionally, for certain governmental contracts where there are annual renewals, the Company has excluded these contracts since there is only a one-year legal obligation. Contracts that are longer than 12 months in duration are primarily related to hosted and managed services. For additional information on performance obligations longer than 12 months, see Note 4 (Accounts Receivable and Contract Balances). | 
| Sales Taxes | Sales Taxes Sales tax amounts collected from customers for remittance to governmental authorities are presented on a net basis in the Consolidated Statements of Operations. | 
| Advertising | AdvertisingAdvertising costs are generally charged to expense in the period incurred and are presented in Selling and administrative expenses in the Consolidated Statements of Operations. Cooperative reimbursements from vendors are recorded in the period the related advertising expenditure is incurred. The Company generally classifies vendor consideration as a reduction to Cost of sales. | 
| Equity-Based Compensation | Equity-Based Compensation The Company measures all equity-based payments using a fair-value-based method and records compensation expense over the requisite service period using the straight-line method in its Consolidated Financial Statements. The expense calculation includes estimated forfeiture rates, which have been developed based upon historical experience. | 
| Interest Expense, net | Interest Expense, netInterest expense, net includes interest expense and interest income. Interest expense, net is recognized in the period incurred at the applicable interest rate in effect. Interest income is recognized on an accrual basis in the period it is earned at the applicable interest rate. | 
| Foreign Currency Translation | Foreign Currency Translation The Company’s reporting currency is the US dollar. The functional currency of the Company’s international operating subsidiaries is generally the same as the corresponding local currency. Assets and liabilities of the international operating subsidiaries are translated at the spot rate in effect at the applicable reporting date. Revenues and expenses of the international operating subsidiaries are translated at the average exchange rates in effect during the applicable period. The resulting foreign currency translation adjustment is recorded as Accumulated other comprehensive loss, which is reflected as a separate component of Stockholders’ equity. | 
| Income Taxes | Income Taxes Deferred income taxes are provided to reflect the differences between the tax bases of assets and liabilities and their reported amounts in the Consolidated Financial Statements using enacted tax rates in effect for the year in which the differences are expected to reverse. The Company performs an evaluation of the realizability of deferred tax assets on a quarterly basis. This evaluation requires management to make use of estimates and assumptions and considers all  positive and negative evidence and factors, such as the scheduled reversal of temporary differences, the mix of earnings in the jurisdictions in which the Company operates, and prudent and feasible tax planning strategies. The Company accounts for unrecognized tax benefits based upon its assessment of whether a tax benefit is more likely than not to be sustained upon examination by tax authorities. The Company reports a liability for unrecognized tax benefits resulting from unrecognized tax benefits taken or expected to be taken in a tax return and recognizes interest and penalties, if any, related to its unrecognized tax benefits in income tax expense. | 
| Recent Accounting Pronouncements | Recent Accounting Pronouncements In November 2024, the Financial Accounting Standards Board (“FASB”) issued Accounting Standards Update (“ASU”) 2024-03, Income Statement—Reporting Comprehensive Income—Expense Disaggregation Disclosures (Subtopic 220-240). This ASU requires entities to disclose disaggregated information about specific natural expense categories in the notes to the financial statements. The ASU is effective for all public entities for annual periods beginning after December 15, 2026, and interim periods beginning after December 15, 2027, with early adoption permitted. Entities should apply the amendments on a prospective basis, but retrospective application is permitted. The Company is currently evaluating the impact the ASU will have on its disclosures. In December 2023, the FASB issued ASU 2023-09, Income Taxes (Topic 740): Improvements to Income Tax Disclosures. This ASU enhances existing income tax disclosures primarily through standardization and disaggregation of rate reconciliation categories and income taxes paid by jurisdiction. The ASU is effective for all public entities for annual periods beginning after December 15, 2024, with early adoption permitted. Entities should apply the amendments on a prospective basis, but retrospective application is permitted. The Company is currently evaluating the impact the ASU will have on its disclosures. In November 2023, the FASB issued ASU 2023-07, Segment Reporting (Topic 280): Improvements to Reportable Segment Disclosures. This ASU improves reportable segment disclosure requirements, primarily through enhanced disclosures about significant segment expenses included in a segment’s profit or loss measure on an annual and interim basis. The ASU is effective for all public entities for fiscal years beginning after December 15, 2023, and interim periods within fiscal years beginning after December 15, 2024. Entities are required to apply the amendments on a retrospective basis. The Company adopted this ASU for the 2024 annual reporting period, which resulted in additional disclosures for amounts presented within Note 17 (Segment Information). | 
| Accounts Receivable and Contract Balances (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Revenue from Contract with Customer [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Accounts Receivable | The following table details the total accounts receivable recognized and the related classification on the Consolidated Balance Sheets: 
 (1)Accounts receivable, current are presented within Accounts receivable, net of allowance for credit losses on the Consolidated Balance Sheets. (2)Unbilled accounts receivable, noncurrent are presented within Accounts receivable and other assets, noncurrent on the Consolidated Balance Sheets. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Accounts Receivable, Allowance for Credit Loss | The following table details the changes in the allowance for credit losses related to accounts receivable: 
 (1)Includes a $4 million allowance for credit losses related to unbilled accounts receivable, noncurrent which is presented within Accounts receivable and other assets, noncurrent on the Consolidated Balance Sheets as of December 31, 2024. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Contract with Customer, Contract Asset, Contract Liability, and Receivable | The following table details information about the Company’s contract balances recognized on the Consolidated Balance Sheets: 
 (1)Contract assets are presented within Prepaid expenses and other on the Consolidated Balance Sheets. (2)Includes $31 million and $40 million of long-term contract liabilities that are presented within Accounts payable and other liabilities on the Consolidated Balance Sheets as of December 31, 2024 and 2023, respectively. (3)For the years ended December 31, 2024 and 2023, the Company recognized revenue of $315 million and $329 million, respectively, related to its contract liabilities that were included in the beginning balance of the respective periods. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction | The following table represents the total transaction price for the remaining performance obligations as of December 31, 2024 related to non-cancelable service contracts whereby the Company is acting as the principal and the duration is longer than 12 months, which is expected to be recognized over future periods. 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property and Equipment (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property, Plant and Equipment [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property, Plant and Equipment | Property and equipment consist of the following: 
  *Asset is not depreciated. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Goodwill and Other Intangible Assets (Tables) | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Goodwill and Intangible Assets Disclosure [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Goodwill | The changes in Goodwill by reportable segment are as follows: 
 (1)Other is comprised of CDW UK and CDW Canada operating segments. (2)Goodwill is net of accumulated impairment losses of $1,571 million, $354 million and $28 million related to the Corporate, Public and Other segments, respectively, recorded in 2008 and 2009. (3)Includes other immaterial acquisitions. (4)The acquisition of Mission is fully allocated to the Corporate segment. For additional information regarding the acquisition of Mission, see Note 3 (Acquisitions). Remaining activity in the Public segments includes other immaterial acquisitions. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Finite-Lived Intangible Assets | A summary of intangible assets is as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Finite-Lived Intangible Assets, Future Amortization Expense | Estimated future amortization expense related to intangible assets is as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements [Abstract] | |||||||||||||||||||||||||||||||||||||
| Inventory Financing Agreements | The following table details the changes in the Company’s confirmed obligations outstanding related to inventory financing agreements: 
 | ||||||||||||||||||||||||||||||||||||
| Debt (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Debt Disclosure [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Carrying Value of Long-Term Debt | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Long-term Debt Maturities | As of December 31, 2024, aggregate future maturities of debt, excluding unamortized debt issuance costs, are as follows for the years ending December 31: 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Carrying Values and Estimated Fair Values of Debt Instruments | The approximate fair values and related carrying values of the Company’s long-term debt, including current maturities and excluding unamortized discount and unamortized debt issuance costs, were as follows: 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Income Taxes (Tables) | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Income Tax Disclosure [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Income before Income Tax, Domestic and Foreign | Income before income taxes was taxed under the following jurisdictions: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Components of Income Tax Expense (Benefit) | Components of Income tax expense (benefit) consist of the following: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Effective Income Tax Rate Reconciliation | The reconciliation between the statutory tax rate expressed as a percentage of income before income taxes and the effective income tax rate was as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Deferred Tax Assets and Liabilities | The tax effect of temporary differences that give rise to net deferred income tax liabilities is presented below.  
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Unrecognized Tax Benefits Roll Forward | Changes in the Company’s unrecognized tax benefits as of December 31, 2024, 2023 and 2022 were as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Leases (Tables) | 12 Months Ended | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Leases [Abstract] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Assets And Liabilities, Lessee | Supplemental Consolidated Balance Sheets information related to the Company’s operating leases is as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Lessee, Operating Lease, Liability, Maturity | Maturities of operating lease liabilities are as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Lease, Cost | Supplemental cash flow information related to operating leases is as follows: 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Equity-Based Compensation (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Share-Based Payment Arrangement, Disclosure [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule Equity-Based Compensation Expense | Equity-based compensation expense, which is recorded in Selling and administrative expenses in the Consolidated Statements of Operations was as follows: 
 (1)Represents equity-based compensation tax expense at the statutory tax rates. Excess tax benefits associated with equity awards are excluded from this disclosure and separately disclosed in Note 10 (Income Taxes). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Share-based Payment Award, Stock Options, Valuation Assumptions | The weighted-average assumptions used to value the stock options granted were as follows: 
 (1)Based on a weighting of the historical volatility and implied volatility. (2)Based on a composite US Treasury rate. (3)Based on contractual term length and on historical experience of both exercised and unexercised options. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Stock Options Roll Forward | Stock option activity for the year ended December 31, 2024 was as follows: 
 (1)The total intrinsic value of stock options exercised during the years ended December 31, 2024, 2023 and 2022 was $66 million, $97 million and $40 million, respectively. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Share-based Compensation, Restricted Stock and Restricted Stock Units Activity | RSU activity for the year ended December 31, 2024 was as follows: 
 (1)The weighted-average grant date fair value of RSUs granted during the years ended December 31, 2024, 2023 and 2022 was $203.24, $189.30 and $169.11, respectively. (2)The aggregate fair value of RSUs that vested during the years ended December 31, 2024, 2023 and 2022 was $37 million, $27 million and $16 million, respectively. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Nonvested Performance-based Units Activity | PSU activity for the year ended December 31, 2024 was as follows: 
 (1)The weighted-average grant date fair value of PSUs granted during the years ended December 31, 2024, 2023 and 2022 was $224.53, $210.30 and $176.14, respectively. (2)During the year ended December 31, 2024, the PSUs that vested at December 31, 2023 were adjusted to reflect final attainment. (3)The aggregate fair value of PSUs that vested during the years ended December 31, 2024, 2023 and 2022 was $42 million, $35 million and $28 million, respectively. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Earnings Per Share (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Earnings Per Share [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Weighted Average Number of Shares | A reconciliation of basic weighted-average shares outstanding to diluted weighted-average shares outstanding is as follows: 
 (1)The dilutive effect of outstanding stock options, restricted stock units, performance share units and Coworker Stock Purchase Plan (“CSPP”) units is reflected in the diluted weighted-average shares outstanding using the treasury stock method. (2)There were fewer than 0.2 million potential common shares excluded from diluted weighted-average shares outstanding for the years ended December 31, 2024, 2023 and 2022, respectively. Inclusion of these common shares in diluted weighted average shares outstanding would have had an anti-dilutive effect. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Segment Information (Tables) | 12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Dec. 31, 2024 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Segment Reporting [Abstract] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of Segment Reporting Information, by Segment | Information about the Company’s segments for the years ended December 31, 2024, 2023 and 2022 is as follows: 
 (1)Primarily includes payroll and other coworker costs, advertising expense and other selling and administrative costs. (2)Depreciation and amortization expense is primarily included within Other segment items. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Disaggregation of Revenue | 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. 
 (1)Net sales by geography is generally based on the ship-to address with the exception of certain services that may be performed at, or on behalf of, multiple locations. Such service arrangements are categorized based on the bill-to address. (2)Includes items such as delivery charges to customers. The following table presents Net sales by major category for the years ended December 31, 2024, 2023 and 2022. Categories are based upon internal classifications. 
 (1)Certain software and services revenues are recorded on a net basis for accounting purposes. As a result, the category percentage of net revenues is not representative of the category percentage of gross profits. (2)Includes items such as delivery charges to customers. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description of Business and Summary of Significant Accounting Policies - Additional Information (Details) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024  USD ($)  subsidiary | Dec. 31, 2023  USD ($) | Dec. 31, 2022  USD ($) | |
| Accounting Policies [Abstract] | |||
| Number of owned subsidiaries | subsidiary | 2 | ||
| Restricted cash, prepaid expenses and other | $ 4.0 | ||
| Quantitative impairment test frequency | 3 years | ||
| Years forecasted in goodwill impairment income approach | 5 years | ||
| Advertising expense | $ 218.0 | $ 215.0 | $ 211.0 | 
| Acquisitions - Narrative (Details) - USD ($) $ in Millions | Nov. 27, 2024 | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | 
|---|---|---|---|---|
| Business Acquisition [Line Items] | ||||
| Goodwill | $ 4,620.4 | $ 4,413.4 | $ 4,342.7 | |
| Mission Cloud Services Inc. | ||||
| Business Acquisition [Line Items] | ||||
| Purchase price | $ 330.0 | |||
| Goodwill | 218.0 | |||
| Other intangible asset | $ 139.0 | 
| Accounts Receivable and Contract Balances - Accounts Receivable (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Revenue from Contract with Customer [Abstract] | ||
| Accounts receivable, current | $ 4,386.4 | $ 4,292.6 | 
| Unbilled accounts receivable, current | 749.4 | 274.9 | 
| Unbilled accounts receivable, noncurrent | 923.0 | 337.5 | 
| Total accounts receivable | $ 6,058.8 | $ 4,905.0 | 
| Accounts Receivable and Contract Balances - Narrative (Details) - USD ($) $ in Millions | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | |
| Revenue from Contract with Customer [Abstract] | ||
| Accounts receivable, sale | $ 477 | $ 506 | 
| Accounts Receivable and Contract Balances - Allowance for Credit Losses (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Accounts Receivable, Allowance for Credit Loss [Roll Forward] | |||
| Beginning balance, allowance for credit losses | $ 28.8 | $ 25.7 | |
| Increase to provision for credit losses | 32.2 | 14.9 | $ 8.3 | 
| Write-offs charged against the allowance for credit losses | (14.8) | (14.5) | |
| Other | 1.2 | 2.7 | |
| Ending balance, allowance for credit losses | 47.4 | $ 28.8 | $ 25.7 | 
| Allowance for credit loss, unbilled accounts receivable | $ 4.0 | ||
| Accounts Receivable and Contract Balances - Schedule of Contract Assets and Liabilities (Details) - USD ($) $ in Millions | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | |
| Disaggregation of Revenue [Line Items] | ||
| Contract assets | $ 97.1 | $ 111.8 | 
| Contract liabilities | 522.3 | 527.4 | 
| Revenue recognized from contract with customer | 315.0 | 329.0 | 
| Long-term Contract with Customer | ||
| Disaggregation of Revenue [Line Items] | ||
| Contract liabilities | $ 31.0 | $ 40.0 | 
| Accounts Receivable and Contract Balances - Schedule of Remaining Performance Obligations (Details) $ in Millions | Dec. 31, 2024  USD ($) | 
|---|---|
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2025-01-01 | |
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] | |
| Remaining performance obligations | $ 113.3 | 
| Remaining performance obligations, expected timing of satisfaction, period | 1 year | 
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2026-01-01 | |
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] | |
| Remaining performance obligations | $ 67.7 | 
| Remaining performance obligations, expected timing of satisfaction, period | 1 year | 
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2027-01-01 | |
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] | |
| Remaining performance obligations | $ 28.7 | 
| Remaining performance obligations, expected timing of satisfaction, period | 1 year | 
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date [Axis]: 2028-01-01 | |
| Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction [Line Items] | |
| Remaining performance obligations | $ 11.1 | 
| Remaining performance obligations, expected timing of satisfaction, period | 
| Property and Equipment - Schedule of Property and Equipment (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | $ 512.4 | $ 504.2 | 
| Less: Accumulated depreciation | (320.4) | (308.7) | 
| Property and equipment, net | 192.0 | 195.5 | 
| Computer and data processing equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 204.7 | 204.7 | 
| Building and leasehold improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 133.6 | 125.3 | 
| Machinery and equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 50.0 | 46.8 | 
| Computer software | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 35.3 | 35.7 | 
| Furniture and fixtures | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 31.1 | 23.5 | 
| Land | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 27.7 | 28.1 | 
| Revenue generating assets | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 1.8 | 1.4 | 
| Construction in progress | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | $ 28.2 | $ 38.7 | 
| Minimum | Computer and data processing equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 3 years | |
| Minimum | Building and leasehold improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | |
| Minimum | Machinery and equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | |
| Minimum | Computer software | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 3 years | |
| Minimum | Furniture and fixtures | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | |
| Minimum | Revenue generating assets | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 1 year | |
| Maximum | Computer and data processing equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | |
| Maximum | Building and leasehold improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 25 years | |
| Maximum | Machinery and equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 10 years | |
| Maximum | Computer software | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | |
| Maximum | Furniture and fixtures | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 10 years | |
| Maximum | Revenue generating assets | ||
| Property, Plant and Equipment [Line Items] | ||
| Useful Lives (Years) | 5 years | 
| Property and Equipment - Narrative (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Property, Plant and Equipment [Abstract] | |||
| Property and equipment, disposals recorded | $ 37 | $ 56 | $ 7 | 
| Depreciation expense | $ 53 | $ 52 | $ 58 | 
| Goodwill and Other Intangible Assets - Schedule of Goodwill by Segment (Details) - USD ($) $ in Millions | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | |
| Goodwill [Roll Forward] | ||
| Beginning balance | $ 4,413.4 | $ 4,342.7 | 
| Foreign currency translation | (11.1) | 14.7 | 
| Ending balance | 4,620.4 | 4,413.4 | 
| Immaterial acquisitions | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 56.0 | |
| Mission Cloud Services Inc. | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 218.1 | |
| Corporate | ||
| Goodwill [Roll Forward] | ||
| Beginning balance | 2,153.1 | 2,133.4 | 
| Foreign currency translation | 0.0 | 0.0 | 
| Ending balance | 2,370.8 | 2,153.1 | 
| Accumulated impairment losses | 1,571.0 | |
| Corporate | Immaterial acquisitions | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 19.7 | |
| Corporate | Mission Cloud Services Inc. | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 217.7 | |
| Small Business | ||
| Goodwill [Roll Forward] | ||
| Beginning balance | 230.2 | 230.2 | 
| Foreign currency translation | 0.0 | 0.0 | 
| Ending balance | 230.2 | 230.2 | 
| Small Business | Immaterial acquisitions | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 0.0 | |
| Small Business | Mission Cloud Services Inc. | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 0.0 | |
| Public | ||
| Goodwill [Roll Forward] | ||
| Beginning balance | 1,695.1 | 1,658.8 | 
| Foreign currency translation | 0.0 | 0.0 | 
| Ending balance | 1,695.5 | 1,695.1 | 
| Accumulated impairment losses | 354.0 | |
| Public | Immaterial acquisitions | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 36.3 | |
| Public | Mission Cloud Services Inc. | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | 0.4 | |
| Other | ||
| Goodwill [Roll Forward] | ||
| Beginning balance | 335.0 | 320.3 | 
| Foreign currency translation | (11.1) | 14.7 | 
| Ending balance | 323.9 | 335.0 | 
| Accumulated impairment losses | 28.0 | |
| Other | Immaterial acquisitions | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | $ 0.0 | |
| Other | Mission Cloud Services Inc. | ||
| Goodwill [Roll Forward] | ||
| Acquisition activity | $ 0.0 | |
| Goodwill and Other Intangible Assets - Intangible Assets by Asset Type (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Intangible Assets [Line Items] | ||
| Gross Carrying Amount | $ 4,354.9 | $ 4,305.0 | 
| Accumulated Amortization | (2,998.3) | (2,935.3) | 
| Net Carrying Amount | 1,356.6 | 1,369.7 | 
| Customer relationships | ||
| Intangible Assets [Line Items] | ||
| Gross Carrying Amount | 3,478.1 | 3,379.7 | 
| Accumulated Amortization | (2,361.6) | (2,236.6) | 
| Net Carrying Amount | 1,116.5 | $ 1,143.1 | 
| Trade name | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 20 years | |
| Gross Carrying Amount | 449.6 | $ 446.1 | 
| Accumulated Amortization | (387.6) | (366.6) | 
| Net Carrying Amount | 62.0 | 79.5 | 
| Internally developed software | ||
| Intangible Assets [Line Items] | ||
| Gross Carrying Amount | 391.6 | 474.9 | 
| Accumulated Amortization | (246.9) | (330.6) | 
| Net Carrying Amount | 144.7 | 144.3 | 
| Other | ||
| Intangible Assets [Line Items] | ||
| Gross Carrying Amount | 35.6 | 4.3 | 
| Accumulated Amortization | (2.2) | (1.5) | 
| Net Carrying Amount | $ 33.4 | $ 2.8 | 
| Minimum | Customer relationships | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 3 years | 3 years | 
| Minimum | Trade name | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 1 year | 1 year | 
| Minimum | Internally developed software | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 3 years | 3 years | 
| Minimum | Other | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 1 year | 1 year | 
| Maximum | Customer relationships | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 14 years | 14 years | 
| Maximum | Trade name | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 20 years | |
| Maximum | Internally developed software | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 5 years | 5 years | 
| Maximum | Other | ||
| Intangible Assets [Line Items] | ||
| Useful Lives (Years) | 10 years | 10 years | 
| Goodwill and Other Intangible Assets - Narrative (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Acquired Finite-Lived Intangible Assets [Line Items] | |||
| Amortization expense | $ 222 | $ 219 | $ 233 | 
| Internally developed software | |||
| Acquired Finite-Lived Intangible Assets [Line Items] | |||
| Disposal of fully amortized definite-lived intangible assets | $ 155 | $ 33 | $ 8 | 
| Goodwill and Other Intangible Assets - Amortization of Intangible Assets (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Goodwill and Intangible Assets Disclosure [Abstract] | ||
| 2025 | $ 240.0 | |
| 2026 | 217.8 | |
| 2027 | 182.4 | |
| 2028 | 138.0 | |
| 2029 | 125.0 | |
| Thereafter | 453.4 | |
| Net Carrying Amount | $ 1,356.6 | $ 1,369.7 | 
| Inventory Financing Agreements - Narrative (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Accounts Payable, Inventory Financing | ||
| Inventory Financing Agreements [Line Items] | ||
| Other inventory financing agreements | $ 355 | $ 431 | 
| Inventory Financing Agreements - Schedule of Inventory Financing Agreements (Details) $ in Millions | 12 Months Ended | 
|---|---|
| Dec. 31, 2024  USD ($) | |
| Inventory Financing Agreements Obligation [Roll Forward] | |
| Confirmed obligations outstanding as of January 1 | $ 430.9 | 
| Invoices confirmed during the period | 2,388.1 | 
| Confirmed invoices paid during the period | (2,463.8) | 
| Confirmed obligations outstanding as of December 31 | $ 355.2 | 
| Debt - Debt Balances and Interest Rates (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 5,875.6 | $ 5,673.3 | 
| Unamortized debt issuance costs and discount | (32.8) | (28.4) | 
| Current maturities of long-term debt | (235.8) | (613.1) | 
| Total long-term debt | 5,607.0 | 5,031.8 | 
| Senior unsecured revolving loan facility | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | 0.0 | 0.0 | 
| Senior unsecured term loan facility | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 634.5 | 634.5 | 
| Senior notes due 2024 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 5.50% | |
| Long-term debt | $ 0.0 | 575.0 | 
| Senior notes due 2025 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 4.125% | |
| Long-term debt | $ 211.1 | 600.0 | 
| Senior notes due 2026 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 2.67% | |
| Long-term debt | $ 1,000.0 | 1,000.0 | 
| Senior notes due 2028 April 2028 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 4.25% | |
| Long-term debt | $ 600.0 | 600.0 | 
| Senior notes due December 2028 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 3.276% | |
| Long-term debt | $ 500.0 | 500.0 | 
| Senior notes due 2029 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 3.25% | |
| Long-term debt | $ 700.0 | 700.0 | 
| Senior notes due 2030 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 5.10% | |
| Long-term debt | $ 600.0 | 0.0 | 
| Senior notes due 2031 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 3.569% | |
| Long-term debt | $ 1,000.0 | 1,000.0 | 
| Senior notes due 2034 | ||
| Debt Instrument [Line Items] | ||
| Interest Rate | 5.55% | |
| Long-term debt | $ 600.0 | 0.0 | 
| Total unsecured senior notes | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | 5,211.1 | 4,975.0 | 
| Receivable financing liability | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | 21.2 | 56.9 | 
| Other long-term obligations | ||
| Debt Instrument [Line Items] | ||
| Long-term debt | $ 8.8 | $ 6.9 | 
| Debt - Narrative (Details) - USD ($) $ in Millions | 12 Months Ended | |||
|---|---|---|---|---|
| Aug. 22, 2024 | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Debt Instrument [Line Items] | ||||
| Long-term debt | $ 5,875.6 | $ 5,673.3 | ||
| Debt prepayment | 962.4 | 0.0 | $ 0.0 | |
| Senior unsecured revolving loan facility | ||||
| Debt Instrument [Line Items] | ||||
| Additional borrowing capacity | 1,200.0 | |||
| Long-term debt | 0.0 | 0.0 | ||
| Senior unsecured revolving loan facility | Accounts Payable, Inventory Financing | ||||
| Debt Instrument [Line Items] | ||||
| Amount owed under Revolving loan financing agreement | $ 356.0 | |||
| Senior Notes Due March 2030 | ||||
| Debt Instrument [Line Items] | ||||
| Long-term debt | $ 600.0 | |||
| Interest Rate | 5.10% | |||
| Debt instrument, issuance, percentage of par | 99.889% | |||
| Senior Notes Due August 2034 | ||||
| Debt Instrument [Line Items] | ||||
| Long-term debt | $ 600.0 | |||
| Interest Rate | 5.55% | |||
| Debt instrument, issuance, percentage of par | 99.742% | |||
| Senior Notes Due December 2024 | ||||
| Debt Instrument [Line Items] | ||||
| Interest Rate | 5.50% | |||
| Repayments of debt | $ 391.0 | |||
| Senior notes due 2025 | ||||
| Debt Instrument [Line Items] | ||||
| Long-term debt | $ 211.1 | $ 600.0 | ||
| Interest Rate | 4.125% | |||
| Repayments of debt | $ 389.0 | |||
| Senior Secured Term Loan Facility | ||||
| Debt Instrument [Line Items] | ||||
| Debt prepayment | $ 184.0 | |||
| Debt - Long-Term Debt Maturities (Details) $ in Millions | Dec. 31, 2024  USD ($) | 
|---|---|
| Debt Disclosure [Abstract] | |
| 2025 | $ 236.0 | 
| 2026 | 1,637.2 | 
| 2027 | 1.7 | 
| 2028 | 1,100.7 | 
| 2029 | 700.0 | 
| Thereafter | 2,200.0 | 
| Total debt maturities | $ 5,875.6 | 
| Debt - Fair Value of Long-Term Debt (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | ||
| Carrying value | $ 5,875.6 | $ 5,673.3 | 
| Level 2 | ||
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | ||
| Fair value | $ 5,602.8 | $ 5,348.2 | 
| Fair Value Measurements and Financial Instruments (Details) $ in Millions | Dec. 31, 2024  USD ($) | 
|---|---|
| Derivative [Line Items] | |
| Carrying value of certificate of deposits | $ 214 | 
| Interest Rate Cap | |
| Derivative [Line Items] | |
| Notional amount | 400 | 
| Treasury Lock | |
| Derivative [Line Items] | |
| Notional amount | $ 600 | 
| Income Taxes - Income Before Income Tax (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Income Tax Disclosure [Abstract] | |||
| Domestic | $ 1,312.5 | $ 1,298.1 | $ 1,355.6 | 
| Foreign | 122.9 | 152.1 | 132.2 | 
| Income before income taxes | $ 1,435.4 | $ 1,450.2 | $ 1,487.8 | 
| Income Taxes - Income Tax Expense by Component (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Current: | |||
| Federal | $ 267.4 | $ 267.3 | $ 281.8 | 
| State | 72.8 | 69.7 | 75.8 | 
| Foreign | 31.5 | 41.6 | 33.9 | 
| Total current | 371.7 | 378.6 | 391.5 | 
| Deferred: | |||
| Domestic | (14.0) | (29.3) | (15.0) | 
| Foreign | (0.1) | (3.4) | (3.2) | 
| Total deferred | (14.1) | (32.7) | (18.2) | 
| Income tax expense | $ 357.6 | $ 345.9 | $ 373.3 | 
| Income Taxes - Effective Tax Rate Reconciliation (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Effective Income Tax Rate Reconciliation, Amount [Abstract] | |||
| Statutory federal income tax rate | $ 301.4 | $ 304.5 | $ 312.4 | 
| State taxes, net of federal effect | 60.0 | 55.8 | 61.1 | 
| Excess tax benefit of equity awards | (15.5) | (29.6) | (12.0) | 
| Tax on foreign earnings | 5.8 | 8.5 | 3.0 | 
| Other | 5.9 | 6.7 | 8.8 | 
| Income tax expense | $ 357.6 | $ 345.9 | $ 373.3 | 
| Effective Income Tax Rate Reconciliation, Percent [Abstract] | |||
| Statutory federal income tax rate, percent | 21.00% | 21.00% | 21.00% | 
| State taxes, net of federal effect, percent | 4.20% | 3.80% | 4.10% | 
| Excess tax benefit of equity awards, percent | (1.10%) | (2.00%) | (0.80%) | 
| Tax on foreign earnings, percent | 0.40% | 0.60% | 0.20% | 
| Other, percent | 0.40% | 0.50% | 0.60% | 
| Effective tax rate, percent | 24.90% | 23.90% | 25.10% | 
| Income Taxes - Deferred Tax Assets and Liabilities (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Deferred tax assets: | ||
| Contract liabilities | $ 33.5 | $ 38.4 | 
| Equity compensation plans | 29.4 | 34.5 | 
| Net operating loss and credit carryforwards, net | 40.2 | 17.0 | 
| Payroll and benefits | 10.3 | 17.2 | 
| Operating lease liabilities | 38.7 | 45.6 | 
| Accounts receivable | 20.7 | 20.1 | 
| Other | 22.5 | 19.9 | 
| Total deferred tax assets | 195.3 | 192.7 | 
| Deferred tax liabilities: | ||
| Acquisition-related intangibles | 279.8 | 269.8 | 
| Property and equipment | 14.7 | 22.4 | 
| Operating lease right-of-use assets | 22.5 | 27.6 | 
| Other | 23.0 | 26.7 | 
| Total deferred tax liabilities | 340.0 | 346.5 | 
| Deferred tax asset valuation allowance | 21.9 | 17.0 | 
| Net deferred tax liabilities | $ 166.6 | $ 170.8 | 
| Income Taxes - Narrative (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | 
|---|---|---|---|---|
| Operating Loss Carryforwards [Line Items] | ||||
| Deferred tax liability on unremitted CDW UK earnings | $ 7.0 | |||
| Unrecognized tax benefits | 19.7 | $ 19.3 | $ 18.7 | $ 18.4 | 
| State and Local Jurisdiction | ||||
| Operating Loss Carryforwards [Line Items] | ||||
| Operating loss carryforwards | 88.0 | |||
| State tax credit carryforwards | 17.0 | |||
| Unrecognized tax benefits, impact on effective tax rate, net of tax rate | $ 16.0 | 
| Income Taxes - Unrecognized Tax Benefits (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Unrecognized Tax Benefits [Roll Forward] | |||
| Balance as of January 1 | $ 19.3 | $ 18.7 | $ 18.4 | 
| Additions/reductions for current year and prior year | 0.4 | 0.6 | 0.3 | 
| Balance as of December 31 | $ 19.7 | $ 19.3 | $ 18.7 | 
| Leases - Narrative (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Lessee, Lease, Description [Line Items] | |||
| Operating lease expense | $ 60 | $ 62 | $ 62 | 
| Maximum | |||
| Lessee, Lease, Description [Line Items] | |||
| Lease terms of contract | 11 years | ||
| Leases - Supplemental Consolidated Balance Sheet information Related Operating Leases (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Leases [Abstract] | ||
| Operating lease right-of-use assets | $ 120.2 | $ 128.8 | 
| Current operating lease liabilities | 32.2 | 34.0 | 
| Long-term operating lease liabilities | 149.1 | 164.0 | 
| Total lease liabilities | $ 181.3 | $ 198.0 | 
| Operating Lease, Liability, Current, Statement of Financial Position [Extensible List] | Other | Other | 
| Weighted average remaining lease term (years) | 7 years 10 months 24 days | 8 years | 
| Weighted average discount rate | 4.26% | 4.03% | 
| Leases - Maturities of Operating Lease Liabilities (Details) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | 
|---|---|---|
| Leases [Abstract] | ||
| 2025 | $ 40.1 | |
| 2026 | 33.8 | |
| 2027 | 26.0 | |
| 2028 | 21.2 | |
| 2029 | 15.4 | |
| Thereafter | 80.4 | |
| Total lease payments | 216.9 | |
| Less: Interest | (34.1) | |
| Less: Lease Incentives | (1.5) | |
| Present value of lease liabilities | $ 181.3 | $ 198.0 | 
| Leases - Supplemental Cash Flow Information Related to Operating Leases (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Cash paid for amounts included in the measurement of lease liabilities | |||
| Operating cash flows from operating leases | $ 44.0 | $ 41.7 | $ 42.8 | 
| Right-of-use assets obtained in exchange for lease obligations | |||
| Operating leases | $ 18.7 | $ 24.6 | $ 43.6 | 
| Stockholders' Equity - Narrative (Details) - USD ($) shares in Millions, $ in Millions | 12 Months Ended | |||
|---|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Feb. 05, 2025 | Feb. 07, 2024 | |
| Class of Stock [Line Items] | ||||
| Amount remaining under repurchase program | $ 588 | |||
| Stock repurchase program, authorized amount | $ 750 | |||
| Subsequent Event | ||||
| Class of Stock [Line Items] | ||||
| Additional amount authorized under repurchase program | $ 750 | |||
| Common Stock | ||||
| Class of Stock [Line Items] | ||||
| Repurchases of common stock (in shares) | 2.4 | 2.6 | ||
| Repurchases of common stock | $ (500) | |||
| Equity-Based Compensation (Details) - USD ($) $ / shares in Units, $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Equity-based compensation [Abstract] | |||
| Equity-based compensation expense | $ 64.7 | $ 93.7 | $ 91.1 | 
| Income tax benefit | (10.8) | (17.3) | (15.5) | 
| Equity-based compensation expense, net of tax | 53.9 | $ 76.4 | 75.6 | 
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Compensation cost not yet recognized | $ 108.0 | ||
| Compensation cost not yet recognized, period for recognition | 2 years 1 month 6 days | ||
| Number of Options (in shares): | |||
| Options outstanding, beginning (in shares) | 3,190,946 | ||
| Granted (in shares) | 82,881 | ||
| Forfeitures/Expired (in shares) | (28,842) | ||
| Exercised (in shares) | (478,686) | ||
| Options outstanding, ending (in shares) | 2,766,299 | 3,190,946 | |
| Options Weighted Average Exercise Price (in dollars per share): | |||
| Options outstanding, beginning weighted-average exercise price (in dollars per share) | $ 126.40 | ||
| Grants, weighted average exercise price (in dollars per share) | 245.62 | ||
| Forfeitures and Expirations, weighted average exercise price (in dollars per share) | 195.04 | ||
| Exercises, weighted average exercise price (in dollars per share) | 98.11 | ||
| Options outstanding, ending weighted-average exercise price (in dollars per share) | $ 134.15 | $ 126.40 | |
| Options, Additional Disclosures: | |||
| Options, Vested and exercisable (in shares) | 2,225,183 | ||
| Options, Expected to vest (in shares) | 541,116 | ||
| Options, exercisable, weighted average exercise price (in dollars per share) | $ 117.20 | ||
| Options, vested and expected to vest, weighted average exercise price (in dollars per share) | $ 203.77 | ||
| Options, outstanding, weighted average remaining contractual term | 5 years 3 months 10 days | ||
| Options, exercisable, weighted average remaining contractual term (years) | 4 years 8 months 4 days | ||
| Options, vested and expected to vest, outstanding, weighted average remaining contractual term (in years) | 7 years 8 months 23 days | ||
| Options, outstanding intrinsic value | $ 132.3 | ||
| Options, exercisable, Intrinsic Value | 131.7 | ||
| Options, vested and expected to vest, aggregate intrinsic value | 0.6 | ||
| Total intrinsic value of stock options exercised | $ 66.0 | $ 97.0 | $ 40.0 | 
| Employee Stock Option | |||
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Award expiration period | 10 years | ||
| Award vesting period | 3 years | ||
| Fair Value Assumptions: | |||
| Weighted average grant date fair value (in dollars per share) | $ 76.21 | $ 64.77 | $ 43.20 | 
| Expected volatility (as percent) | 29.32% | 29.94% | 27.50% | 
| Risk-free rate (as percent) | 4.07% | 3.80% | 1.94% | 
| Expected dividend yield (as percent) | 1.08% | 1.24% | 1.17% | 
| Expected term (in years) | 5 years 4 months 24 days | 5 years 6 months | 6 years | 
| Restricted Stock Units (RSUs) | |||
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Award vesting period | 3 years | ||
| Performance Share Units (PSUs) | |||
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Award vesting period | 3 years | ||
| Minimum | Performance Share Units (PSUs) | |||
| Options, Additional Disclosures: | |||
| Potential vesting percentage range of shares | 0.00% | ||
| Maximum | Performance Share Units (PSUs) | |||
| Options, Additional Disclosures: | |||
| Potential vesting percentage range of shares | 200.00% | ||
| 2021 Long Term Incentive Plan | |||
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Number of shares authorized (in shares) | 22,100,000 | ||
| Number of share available for grant (in shares) | 6,200,000 | ||
| 2013 Long Term Incentive Plan | Performance Share Units (PSUs) | |||
| Employee Service Share-based Compensation, Nonvested Awards, Total Compensation Cost Not yet Recognized [Abstract] | |||
| Award vesting period | 3 years | ||
| Equity-Based Compensation - Restricted Stock Unit Activity (Details) - Restricted Stock Units (RSUs) - USD ($) $ / shares in Units, $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Number of Units (in shares): | |||
| Nonvested beginning of period (in shares) | 398,613 | ||
| Granted (in shares) | 328,768 | ||
| Vested (in shares) | (207,350) | ||
| Forfeited (in shares) | (28,679) | ||
| Nonvested end of period (in shares) | 491,352 | 398,613 | |
| Equity Instruments Other Than Options, Weighted Average Grant Date Fair Value (in dollars per share): | |||
| Beginning nonvested, weighted average grant date fair value (in dollars per share) | $ 181.85 | ||
| Granted, weighted average grant date fair value (in dollars per share) | 203.24 | $ 189.30 | $ 169.11 | 
| Vested, weighted average grant date fair value (in dollars per share | 179.46 | ||
| Forfeited, weighted average grant date fair value (in dollars per share | 191.98 | ||
| Ending nonvested, weighted average grant date fair value (in dollars per share) | $ 196.58 | $ 181.85 | |
| Vested in period, fair value (less than) | $ 37 | $ 27 | $ 16 | 
| Equity-Based Compensation - Performance Share Unit Activity (Details) - Performance Share Units (PSUs) - USD ($) $ / shares in Units, $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Number of Units (in shares): | |||
| Nonvested beginning of period (in shares) | 394,882 | ||
| Granted (in shares) | 199,174 | ||
| Attainment adjustment (in shares) | 122,295 | ||
| Vested (in shares) | (258,590) | ||
| Forfeited (in shares) | (27,480) | ||
| Nonvested end of period (in shares) | 430,281 | 394,882 | |
| Equity Instruments Other Than Options, Weighted Average Grant Date Fair Value (in dollars per share): | |||
| Beginning nonvested, weighted average grant date fair value (in dollars per share) | $ 188.76 | ||
| Granted, weighted average grant date fair value (in dollars per share) | 224.53 | $ 210.30 | $ 176.14 | 
| Attainment Adjustment, weighted average grant date fair value (in dollars per share) | 156.18 | ||
| Vested, weighted average grant date fair value (in dollars per share | 163.89 | ||
| Forfeited, weighted average grant date fair value (in dollars per share | 201.13 | ||
| Ending nonvested, weighted average grant date fair value (in dollars per share) | $ 210.22 | $ 188.76 | |
| Vested in period, fair value (less than) | $ 42 | $ 35 | $ 28 | 
| Earnings Per Share (Details) - shares shares in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Earnings Per Share [Abstract] | |||
| Basic weighted-average shares outstanding (in shares) | 133.8 | 134.6 | 135.2 | 
| Effect of diluted securities (in shares) | 1.4 | 1.7 | 1.8 | 
| Diluted weighted-average shares outstanding (in shares) | 135.2 | 136.3 | 137.0 | 
| Anti-dilutive shares (fewer than) (in shares) | 0.2 | 0.2 | 0.2 | 
| Coworker Retirement and Other Compensation Benefits - Profit Sharing and 401(K) Plan (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| 401(k) Plan | |||
| Coworker Retirement and Other Compensation Benefits [Line Items] | |||
| Defined contribution plan expense | $ 27 | $ 20 | $ 43 | 
| Coworker Retirement and Other Compensation Benefits - Coworker Stock Purchase Plan (Details) - Coworker Stock Purchase Plan $ in Millions | 12 Months Ended | 
|---|---|
| Dec. 31, 2024  USD ($) | |
| Coworker Retirement and Other Compensation Benefits [Line Items] | |
| Employee stock purchase plan discount to market price (as percent) | 5.00% | 
| Defined contribution plan expense | $ 0 | 
| Segment Information - Narrative (Details) | 12 Months Ended | 
|---|---|
| Dec. 31, 2024  employee  segment | |
| Segment Reporting Information [Line Items] | |
| Number of reportable segments | segment | 3 | 
| Number of operating segments which do not meet reportable unit quantitative threshold | segment | 2 | 
| Minimum | Corporate | |
| Segment Reporting Information [Line Items] | |
| Customer segments, customer employee headcount | employee | 250 | 
| Maximum | Small Business | |
| Segment Reporting Information [Line Items] | |
| Customer segments, customer employee headcount | employee | 250 | 
| Segment Information - Schedule of Segment Information (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Segment Reporting Information [Line Items] | |||
| Net sales | $ 20,998.7 | $ 21,376.0 | $ 23,748.7 | 
| Cost of sales | 16,396.3 | 16,723.6 | 19,062.1 | 
| Gross profit | 4,602.4 | 4,652.4 | 4,686.6 | 
| Other segment items | 2,951.1 | 2,971.5 | 2,951.4 | 
| Operating income (loss) | 1,651.3 | 1,680.9 | 1,735.2 | 
| Depreciation and amortization expense | 275.3 | 270.7 | 290.6 | 
| Operating Segments | Corporate | |||
| Segment Reporting Information [Line Items] | |||
| Net sales | 8,837.2 | 8,960.8 | 10,350.1 | 
| Cost of sales | 6,737.7 | 6,833.0 | 8,170.8 | 
| Gross profit | 2,099.5 | 2,127.8 | 2,179.3 | 
| Other segment items | 1,220.0 | 1,281.0 | 1,247.6 | 
| Operating income (loss) | 879.5 | 846.8 | 931.7 | 
| Depreciation and amortization expense | 76.5 | 82.1 | 98.0 | 
| Operating Segments | Small Business | |||
| Segment Reporting Information [Line Items] | |||
| Net sales | 1,523.5 | 1,556.0 | 1,938.9 | 
| Cost of sales | 1,170.6 | 1,194.3 | 1,544.9 | 
| Gross profit | 352.9 | 361.7 | 394.0 | 
| Other segment items | 171.9 | 184.4 | 207.2 | 
| Operating income (loss) | 181.0 | 177.3 | 186.8 | 
| Depreciation and amortization expense | 3.4 | 4.7 | 6.4 | 
| Operating Segments | Public | |||
| Segment Reporting Information [Line Items] | |||
| Net sales | 8,157.7 | 8,305.7 | 8,551.3 | 
| Cost of sales | 6,498.5 | 6,638.2 | 6,918.0 | 
| Gross profit | 1,659.2 | 1,667.5 | 1,633.3 | 
| Other segment items | 913.3 | 932.5 | 951.6 | 
| Operating income (loss) | 745.9 | 735.0 | 681.7 | 
| Depreciation and amortization expense | 55.4 | 58.4 | 67.9 | 
| Operating Segments | Other | |||
| Segment Reporting Information [Line Items] | |||
| Net sales | 2,480.3 | 2,553.5 | 2,908.4 | 
| Cost of sales | 1,989.5 | 2,058.1 | 2,428.4 | 
| Gross profit | 490.8 | 495.4 | 480.0 | 
| Other segment items | 378.7 | 353.3 | 349.3 | 
| Operating income (loss) | 112.1 | 142.1 | 130.7 | 
| Depreciation and amortization expense | 28.1 | 30.1 | 31.9 | 
| Headquarters | |||
| Segment Reporting Information [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Cost of sales | 0.0 | 0.0 | 0.0 | 
| Gross profit | 0.0 | 0.0 | 0.0 | 
| Other segment items | 267.2 | 220.3 | 195.7 | 
| Operating income (loss) | (267.2) | (220.3) | (195.7) | 
| Depreciation and amortization expense | $ 111.9 | $ 95.4 | $ 86.4 | 
| Segment Information - Disaggregation of Revenue (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Disaggregation of Revenue [Line Items] | |||
| Net sales | $ 20,998.7 | $ 21,376.0 | $ 23,748.7 | 
| Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,837.2 | 8,960.8 | 10,350.1 | 
| Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,523.5 | 1,556.0 | 1,938.9 | 
| Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,157.7 | 8,305.7 | 8,551.3 | 
| Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,480.3 | 2,553.5 | 2,908.4 | 
| Transferred at a point in time where CDW is principal | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 17,973.0 | 18,512.9 | 21,016.1 | 
| Transferred at a point in time where CDW is principal | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 7,369.0 | 7,515.7 | 8,971.4 | 
| Transferred at a point in time where CDW is principal | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,325.6 | 1,374.1 | 1,751.1 | 
| Transferred at a point in time where CDW is principal | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 7,176.7 | 7,411.1 | 7,717.1 | 
| Transferred at a point in time where CDW is principal | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,101.7 | 2,212.0 | 2,576.5 | 
| Transferred at a point in time where CDW is agent | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,607.6 | 1,521.8 | 1,414.0 | 
| Transferred at a point in time where CDW is agent | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 807.1 | 778.0 | 749.3 | 
| Transferred at a point in time where CDW is agent | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 146.7 | 145.3 | 140.1 | 
| Transferred at a point in time where CDW is agent | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 526.9 | 480.6 | 426.9 | 
| Transferred at a point in time where CDW is agent | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 126.9 | 117.9 | 97.7 | 
| Transferred over time where CDW is principal | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,418.1 | 1,341.3 | 1,318.6 | 
| Transferred over time where CDW is principal | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 661.1 | 667.1 | 629.4 | 
| Transferred over time where CDW is principal | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 51.2 | 36.6 | 47.7 | 
| Transferred over time where CDW is principal | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 454.1 | 414.0 | 407.3 | 
| Transferred over time where CDW is principal | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 251.7 | 223.6 | 234.2 | 
| Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,837.2 | 8,960.8 | 10,350.1 | 
| Corporate | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,837.2 | 8,960.8 | 10,350.1 | 
| Corporate | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Corporate | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Corporate | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,523.5 | 1,556.0 | 1,938.9 | 
| Small Business | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Small Business | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,523.5 | 1,556.0 | 1,938.9 | 
| Small Business | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Small Business | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Government | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,486.9 | 2,669.1 | 2,574.3 | 
| Government | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Government | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Government | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,486.9 | 2,669.1 | 2,574.3 | 
| Government | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Education | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 3,167.3 | 3,298.3 | 3,621.4 | 
| Education | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Education | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Education | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 3,167.3 | 3,298.3 | 3,621.4 | 
| Education | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Healthcare | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,503.5 | 2,338.3 | 2,355.6 | 
| Healthcare | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Healthcare | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Healthcare | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,503.5 | 2,338.3 | 2,355.6 | 
| Healthcare | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,480.3 | 2,553.5 | 2,908.4 | 
| Other | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Other | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Other | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 0.0 | 0.0 | 0.0 | 
| Other | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,480.3 | 2,553.5 | 2,908.4 | 
| Hardware | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 15,219.1 | 15,702.6 | 18,091.0 | 
| Hardware | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 6,015.5 | 6,216.9 | 7,561.0 | 
| Hardware | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,201.6 | 1,242.3 | 1,610.7 | 
| Hardware | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 6,225.1 | 6,460.4 | 6,763.9 | 
| Hardware | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,776.9 | 1,783.0 | 2,155.4 | 
| Software | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 3,804.4 | 3,799.3 | 3,684.9 | 
| Software | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,863.0 | 1,772.3 | 1,781.5 | 
| Software | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 228.7 | 232.8 | 232.9 | 
| Software | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,320.5 | 1,295.4 | 1,196.9 | 
| Software | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 392.2 | 498.8 | 473.6 | 
| Services | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,867.3 | 1,761.3 | 1,842.0 | 
| Services | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 898.5 | 909.1 | 929.3 | 
| Services | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 75.8 | 62.6 | 73.8 | 
| Services | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 593.6 | 531.5 | 570.7 | 
| Services | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 299.4 | 258.1 | 268.2 | 
| Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 107.9 | 112.8 | 130.8 | 
| Other | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 60.2 | 62.5 | 78.3 | 
| Other | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 17.4 | 18.3 | 21.5 | 
| Other | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 18.5 | 18.4 | 19.8 | 
| Other | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 11.8 | 13.6 | 11.2 | 
| United States | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 18,456.9 | 18,754.9 | 20,828.6 | 
| United States | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,779.4 | 8,894.5 | 10,321.2 | 
| United States | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 1,499.8 | 1,534.5 | 1,934.8 | 
| United States | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 8,150.4 | 8,299.4 | 8,550.8 | 
| United States | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 27.3 | 26.5 | 21.8 | 
| Rest of World | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 2,541.8 | 2,621.1 | 2,920.1 | 
| Rest of World | Operating Segments | Corporate | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 57.8 | 66.3 | 28.9 | 
| Rest of World | Operating Segments | Small Business | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 23.7 | 21.5 | 4.1 | 
| Rest of World | Operating Segments | Public | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | 7.3 | 6.3 | 0.5 | 
| Rest of World | Operating Segments | Other | |||
| Disaggregation of Revenue [Line Items] | |||
| Net sales | $ 2,453.0 | $ 2,527.0 | $ 2,886.6 | 
| Segment Information - Products and Services (Details) - USD ($) $ in Millions | 12 Months Ended | ||
|---|---|---|---|
| Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | |
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 20,998.7 | $ 21,376.0 | $ 23,748.7 | 
| Percentage of Total Net Sales | 100.00% | 100.00% | 100.00% | 
| Notebooks/Mobile Devices | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 5,089.9 | $ 4,690.5 | $ 6,179.7 | 
| Percentage of Total Net Sales | 24.20% | 21.90% | 26.00% | 
| Netcomm Products | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 2,538.2 | $ 3,185.4 | $ 2,729.7 | 
| Percentage of Total Net Sales | 12.10% | 14.90% | 11.50% | 
| Collaboration | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 1,770.6 | $ 1,909.7 | $ 2,394.8 | 
| Percentage of Total Net Sales | 8.40% | 8.90% | 10.10% | 
| Data Storage and Servers | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 2,133.8 | $ 2,240.7 | $ 2,479.0 | 
| Percentage of Total Net Sales | 10.20% | 10.50% | 10.40% | 
| Desktops | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 1,111.2 | $ 1,069.1 | $ 1,284.9 | 
| Percentage of Total Net Sales | 5.30% | 5.00% | 5.40% | 
| Other Hardware | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 2,575.4 | $ 2,607.2 | $ 3,022.9 | 
| Percentage of Total Net Sales | 12.30% | 12.30% | 12.70% | 
| Total Hardware | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 15,219.1 | $ 15,702.6 | $ 18,091.0 | 
| Percentage of Total Net Sales | 72.50% | 73.50% | 76.10% | 
| Software | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 3,804.4 | $ 3,799.3 | $ 3,684.9 | 
| Percentage of Total Net Sales | 18.10% | 17.80% | 15.50% | 
| Services | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 1,867.3 | $ 1,761.3 | $ 1,842.0 | 
| Percentage of Total Net Sales | 8.90% | 8.20% | 7.80% | 
| Other | |||
| Net Sales from External Customer [Line Items] | |||
| Net sales | $ 107.9 | $ 112.8 | $ 130.8 | 
| Percentage of Total Net Sales | 0.50% | 0.50% | 0.60% |