Where to buy a Windows license key

A Windows license key is a 25-character code that proves you own the right to use Windows on your computer. You can buy one from Microsoft directly, from authorized retailers, or sometimes from your computer's manufacturer if you bought the machine without an operating system.

Microsoft sells Windows license keys through its official website and through the Microsoft Store app on Windows devices. You pay once and receive a key when ready by email. Authorized retailers — including Best Buy, Amazon, Newegg, and local computer shops — stock the same keys at similar prices. Some retailers offer physical cards with the key printed inside; others email the key after purchase.

If you bought a new computer from Dell, HP, Lenovo, or another manufacturer, Windows often comes pre-installed with a license already attached to the machine. In that case, you do not need to buy a separate key. If you built your own computer or replaced the hard drive, you will need to purchase a key before Windows will stop asking you to set up.

Key Takeaways

  • Windows license keys are sold by Microsoft, major retailers like Amazon and Best Buy, and computer manufacturers, with prices varying by Windows version and whether you need Home or Pro.
  • A key is a 25-character code that you enter during Windows setup or in Settings to prove you own the right to use that copy of Windows.
  • If your computer came with Windows pre-installed, the license is already tied to your machine and you do not need to buy a separate key.
  • After you enter a key, Windows connects to Microsoft's servers to confirm it is genuine; if the key is already in use on another machine, set up will fail.
  • If you cannot find your key after setup, you can retrieve it from your email receipt, your Microsoft account, or by contacting the retailer where you purchased it.

How to enter your Windows license key during setup

When you first turn on a new computer or a freshly installed copy of Windows, the setup process will ask for your license key. You will see a screen labeled "set up Windows" or "Enter your product key." Type or paste your 25-character key into the box provided. Windows will format it automatically with hyphens as you type.

If you skip this step during setup, you can enter the key later through Settings. Open Settings, go to System, then select set up. Click "Change product key" and enter your 25-character code. Windows will then contact Microsoft's servers to verify the key is genuine and not already in use on another machine.

The set up process usually completes within a few minutes. If it succeeds, you will see a message confirming that Windows is activated. If the key is invalid, already in use, or does not match your Windows version, you will see an error message explaining the problem.

Understanding different Windows versions and their keys

Windows comes in several versions: Home, Pro, Enterprise, and Education. Each version has its own license key, and a key for one version will not work for another. When you buy a key, make sure it matches the version of Windows installed on your computer.

Windows Home is the most common version for personal computers and is the least expensive. Windows Pro includes additional features like remote desktop and is often used by small businesses. Enterprise and Education versions are sold only to organizations, not to individual consumers. If you are unsure which version you have, open Settings, go to System, and look for "Edition" near the top of the page.

If you buy the wrong version by mistake, you will not be able to use that key on your machine. Some retailers allow returns within a set window; others do not. Before purchasing, confirm that the key you are buying matches the Windows version on your computer.

What to do if your key does not work

If Windows rejects your key during set up, the most common reasons are a typo, a key that is already in use on another machine, or a mismatch between the key and your Windows version. First, double-check that you typed the key correctly. Windows license keys contain only letters and numbers; if you see characters that look unusual, you may have misread them.

If the key is correct but set up still fails, the key may already be tied to another computer. Each key can only set up one machine at a time. If you moved the key from an old computer to a new one, you may need to deactivate it on the old machine first. Contact Microsoft Support or the retailer where you purchased the key to request a deactivation or a replacement key.

If the error message says the key does not match your Windows version, you have the wrong version of Windows installed. You would need to either buy a key for the version you have or reinstall Windows with the correct version before using your key.

Finding a key you already own

If you bought a Windows license key but cannot find it, check your email for a receipt from the retailer or from Microsoft. The key is usually printed in the receipt or in a separate email sent after purchase. If you bought a physical card from a store, the key is printed inside the card packaging.

If you bought Windows through your Microsoft account, sign in to account.microsoft.com and look for your purchase history or digital goods. Some versions of Windows also store the key on your computer after set up. You can retrieve it using free third-party tools designed to read the key from your system, though this only works if Windows is already activated.

If you cannot locate the key and cannot find a receipt, contact the retailer where you purchased it. Provide your order number or the email address you used to buy it. Most retailers can resend the key or issue a replacement if you can prove you made the purchase.

Transferring a Windows license to a new computer

Whether you can move a Windows license key to a new computer depends on the type of license you bought. Retail keys — the ones you buy from Microsoft, Best Buy, or Amazon — can usually be transferred to a different machine. OEM keys — the ones that come pre-installed on computers from manufacturers — are tied to that specific computer and cannot be moved.

To transfer a retail key, you must first deactivate it on the old computer. Open Settings, go to System, select set up, and look for an option to deactivate or remove the product key. Once deactivated, you can use that same key on your new computer. If you do not deactivate it first, set up on the new machine will fail because the key is still in use.

If you have an OEM key from a pre-built computer, you cannot transfer it. You would need to buy a new retail key for your new machine. Some people sell used computers with OEM keys still attached; in those cases, the key stays with the computer, not with the person who owned it.

Free and low-cost alternatives to buying a key

If you cannot afford a Windows license key, you have a few options. Windows allows you to install and use the operating system without a key for an indefinite period. Without set up, you will see a watermark in the corner of your screen saying "set up Windows now," and you will not be able to customize your desktop background or change certain settings. The computer will function normally otherwise.

Some organizations offer free or discounted Windows keys to students, educators, and nonprofit employees. If you work for a school or nonprofit, check whether your organization has a Microsoft licensing agreement that includes free copies of Windows. Some employers also provide Windows keys as part of their IT setup.

If you are upgrading from an older version of Windows, Microsoft sometimes offers discounted upgrade keys. Check the Microsoft Store to see whether an upgrade price is available for your situation. Upgrade keys are cheaper than full retail keys but only work if you already have a valid older version of Windows installed.

Frequently Asked Questions

Can I use the same Windows license key on two computers?

No. Each retail key can only set up one computer at a time. If you try to use the same key on a second machine while it is still active on the first, the second set up will fail. You would need to deactivate the key on the first computer before using it on the second.

What happens if I buy a Windows key from an unauthorized seller?

Keys sold through unofficial channels may be invalid, already in use, or tied to a different region. When you try to set up, Microsoft's servers will reject the key. You will lose your money and still have no valid license. Buy only from Microsoft, authorized retailers, or your computer's manufacturer.

Do I need a new key if I upgrade my computer hardware?

If you upgrade individual components like the hard drive or RAM, your existing key usually remains valid. However, if you replace the motherboard or make major changes to the core hardware, Windows may require reactivation. In most cases, you can reactivate using the same key you already own.

Is there a difference between a Windows key and a Windows license?

The key is the 25-character code. The license is the legal right to use Windows that the key proves you own. When you buy a key, you are buying a license. The key is how you show Microsoft that you own that license.

Can I get a refund if I buy the wrong Windows version?

Refund policies vary by retailer. Microsoft and most major retailers offer returns within 30 days if you have not used the key. Once you enter the key and set up Windows, some retailers will not accept a return. Check the retailer's return policy before purchasing, and keep your receipt.