The fastest way depends on whether you know the password
If you remember the BIOS password, restart your computer, enter the setup menu during startup (usually by pressing Delete, F2, or F12 depending on your manufacturer), and look for a password or security option to clear it. The exact menu location varies: Dell machines often have it under System Security, HP under Security, and Lenovo under Security. Write down the path as you navigate so you can find it again if needed.
If you don't remember the password, you have three main routes: resetting the CMOS battery (works on most desktops), using a manufacturer master password (works on some laptops), or contacting the manufacturer with proof of ownership. Each has different success rates and time requirements depending on your machine type and age.
Key Takeaways
- The CMOS battery reset works on most desktop computers and takes 10 to 30 minutes, but does not work on most modern laptops.
- Laptop manufacturers like Dell, HP, and Lenovo have master passwords or service tags that can unlock BIOS, but you typically need proof of ownership.
- Removing the CMOS battery requires opening the case and locating a coin-sized battery on the motherboard, then waiting 10 minutes before reinserting it.
- If you own the machine but cannot prove it, the manufacturer may still help if you can provide the serial number and answer security questions about the purchase.
Resetting the CMOS battery on a desktop computer
The CMOS battery stores BIOS settings, including the password. Removing it for 10 minutes clears those settings on most desktops built before 2015 and many built after. Shut down the computer completely, unplug the power cable, and wait 30 seconds. Open the case (usually four screws on the back panel). Locate the CMOS battery — it looks like a large coin and sits on the motherboard, often near the CPU or RAM.
Press the battery gently from the side until it pops out of its holder. Wait 10 to 15 minutes. Reinsert the battery, close the case, plug in the power cable, and restart. The BIOS will reset to factory defaults, and the password will be gone. You may need to reset the date and time, and any custom settings you had (like boot order or fan speed) will revert to defaults.
This method does not work on most laptops because the battery is soldered to the motherboard or the BIOS is encrypted. It also fails on some newer desktops with non-volatile memory that stores the password separately from the CMOS battery.
Using manufacturer master passwords and service tags
Dell, HP, Lenovo, and other manufacturers have master passwords or unlock codes tied to the machine's service tag or serial number. You can find the service tag on a sticker on the back or bottom of the computer. Dell's master password system, for example, generates a code based on your service tag that you can enter at the BIOS prompt.
Search online for "[your manufacturer] master password [your service tag]" — some third-party sites maintain databases of these codes. If you find a match, restart the computer, enter the BIOS setup, and use the master password to log in and clear the user password. This works on many business-class laptops and desktops but is less common on consumer models.
If no database entry exists for your service tag, contact the manufacturer directly with proof of ownership (receipt, warranty card, or account information). They can generate a master password or unlock code for you, though the process typically takes one to three business days and may require you to answer security questions about the original purchase.
Contacting the manufacturer with proof of ownership
If you own the computer but cannot reset the password yourself, the manufacturer is your most reliable option. Call or email their support line with your service tag or serial number and explain that you have forgotten the BIOS password. Have your proof of ownership ready: the original receipt, warranty card, credit card statement showing the purchase, or your account on their website if you registered the device.
The manufacturer will verify your identity and ownership, then either provide you with a master password, send you a reset code, or in some cases arrange for a technician to reset it. This process usually takes two to five business days. Some manufacturers charge a fee for this service if the device is out of warranty, while others provide it at no cost.
What to do if you cannot prove ownership
If you bought the computer secondhand or no longer have the original receipt, proving ownership becomes harder. Try contacting the manufacturer anyway with the serial number and as much information as you can provide about the purchase (approximate date, retailer, or any account information). Some manufacturers will help based on the serial number alone, especially if the device is older.
If the manufacturer refuses, your remaining options are limited. A computer repair shop may be able to reset the BIOS password for a fee (typically $50 to $150), though not all shops have the tools or informed to do this. Some shops can remove the hard drive and access the data without entering BIOS, which may be sufficient if your goal is to recover files rather than use the computer normally.
Preventing password loss in the future
Write down your BIOS password and store it somewhere safe — a password manager, a locked drawer, or a trusted family member. If you use a password manager like Bitwarden or 1Password, you can store it there alongside your other passwords. Many people forget BIOS passwords because they set them once and never need them again, then lose track of them years later.
Consider whether you actually need a BIOS password. They protect against someone physically accessing your computer and changing boot settings, but they do not protect your files if someone steals the hard drive or boots from a USB drive. If your main concern is file security, full-disk encryption (like BitLocker on Windows or FileVault on Mac) is more effective and does not lock you out of your own machine.
Frequently Asked Questions
Will removing the CMOS battery erase my files?
No. The CMOS battery only stores BIOS settings like the password, date, and time. Your files on the hard drive are unaffected. You may need to reset the date and time after reinserting the battery, and any custom BIOS settings will revert to factory defaults.
Can I reset a BIOS password on a laptop without opening it?
Not usually. Most laptops have encrypted BIOS or soldered batteries, so the CMOS reset method does not work. Your best option is a manufacturer master password (if available for your service tag) or contacting the manufacturer with proof of ownership. Some repair shops can reset it, but this typically costs $75 to $150.
What if I do not have the service tag or serial number?
You can usually find the service tag on a sticker on the back, bottom, or inside the battery compartment of the computer. If the sticker is missing or unreadable, the manufacturer may still help if you can provide other information like the purchase date, retailer, or an account you created when you registered the device.
How long does it take to reset a BIOS password through the manufacturer?
Most manufacturers respond within two to five business days. If you have a current warranty or support contract, the process may be faster. Some manufacturers offer phone support that can generate a master password when ready if you can verify your identity on the call.
Is it safe to open my computer to remove the CMOS battery?
Yes, if you follow basic precautions. Unplug the power cable completely, wait 30 seconds, and touch a metal part of the case to discharge static electricity before touching the motherboard. The CMOS battery itself is safe to handle. If you are uncomfortable opening the case, a repair shop can do it for $30 to $50.