The fastest method depends on your hardware and whether you have physical access
If you have forgotten your BIOS password, you have three main routes: clearing the CMOS battery (works on most desktops), using a manufacturer master password (available for some laptops), or contacting the manufacturer for proof of ownership. The CMOS battery method works because the battery powers the chip that stores your password — removing it for a few minutes erases the stored credentials. This works on nearly all desktop computers and some older laptops, but newer machines often make the battery harder to reach or use firmware that resists this method.
Laptop manufacturers have made this harder over time. Dell, HP, Lenovo, and others now use encrypted password storage that survives a battery removal. Your best option with a locked laptop is usually to contact the manufacturer with proof you own the machine — they can reset it remotely or provide a master password. Some manufacturers also offer password reset services through their support portal if you can verify your account.
Key Takeaways
- Removing the CMOS battery from a desktop computer for 10 to 15 minutes will erase the BIOS password on most machines built before 2015.
- Laptop passwords are encrypted and survive battery removal — contact your laptop's manufacturer with proof of ownership for a reset instead.
- You will need to open your computer's case or access panel, which may void a warranty if the machine is still under coverage.
- Some manufacturers offer master passwords or reset codes for specific models if you can verify your identity through their support system.
Clearing the CMOS battery on a desktop computer
Power off your computer completely and unplug it from the wall. Wait at least 30 seconds to may support all power is drained. Open the case by removing the side panel — most cases have two thumbscrews or clips on the back. If your case is locked, you will need the key or may need to drill it out.
Locate the CMOS battery on the motherboard. It looks like a large coin-cell battery, usually silver and about the size of a dime or larger. Take a photo of its position before you remove it so you can reinstall it correctly. Gently pry it out using a plastic spoon or battery removal tool — do not use metal tools near the motherboard. Leave the battery out for 10 to 15 minutes. This drains the charge that powers the CMOS chip and erases stored settings, including the password.
Reinsert the battery in the same orientation it was in before, with the positive side facing up. Close the case, plug in the power cable, and power on the computer. The BIOS should now have no password set. You may see a message about CMOS settings being reset — this is normal. Enter the BIOS setup (usually by pressing Delete, F2, or F12 during startup, depending on your motherboard) and set a new password if you want one.
Using manufacturer master passwords for laptops
Some laptop manufacturers provide master passwords or reset codes for specific models. Dell, for example, has published master passwords for certain older models, though this is less common now. HP and Lenovo sometimes offer password reset through their support portal if you can log into your account and verify the serial number.
Contact your laptop manufacturer's support line with your serial number and proof of purchase. Explain that you have forgotten the BIOS password and own the machine. They may ask you to answer security questions, provide a photo of the device with the serial number visible, or email a copy of your receipt. If they confirm you own it, they can either reset the password remotely, provide you with a master password for your specific model, or send you a reset code to enter at the BIOS prompt.
This process typically takes 24 to 48 hours. Some manufacturers charge a fee for this service if your warranty has expired, while others do it at no cost. Ask about the timeline and any costs before you proceed.
Removing the motherboard battery on older laptops
On some older laptops (generally before 2012), you can remove the CMOS battery the same way you would on a desktop. This requires opening the laptop's base panel, which usually means removing 10 to 20 screws. Take a photo of the screw locations before you remove them so you can put them back in the right places.
Locate the CMOS battery — it will look the same as on a desktop. Gently disconnect it from its connector or pry it out if it is soldered. Leave it disconnected for 10 to 15 minutes, then reconnect it. Close the laptop and power it on. The BIOS password should be cleared.
Newer laptops (2012 and later) often solder the CMOS battery directly to the motherboard or use firmware-based password storage that survives battery removal. If you cannot easily disconnect the battery, or if removing it does not clear the password, stop and contact the manufacturer instead. Continuing to disassemble the laptop risks damaging components.
What to do if you cannot access the CMOS battery
Some computers make the CMOS battery deliberately hard to reach. Gaming laptops, ultrabooks, and business machines often have the battery buried under multiple layers of components. If you have removed the base panel and cannot locate the battery within 15 minutes, or if it is soldered to the board, do not continue disassembling.
Your next step is to contact the manufacturer. Provide your serial number, proof of ownership, and an explanation that you have forgotten the BIOS password. They can reset it for you or provide a master password. This is slower than the battery method but avoids the risk of damaging your machine.
If the computer is still under warranty, opening the case may void it. Check your warranty terms before you proceed. If you are unsure whether opening the case is safe, contact the manufacturer first and ask whether they recommend the battery removal method for your specific model.
Resetting BIOS settings without erasing the password
If you have forgotten your BIOS password but still have access to the computer, you can sometimes reset BIOS settings to factory defaults without erasing the password. This is not the same as erasing the password itself, but it may help if you are locked out of specific features.
During startup, look for a message that says "Press [key] to enter Setup" or "Press [key] to run Setup Utility." Enter the BIOS setup screen. Look for an option called "Reset to Defaults," "Load Defaults," "Restore Defaults," or "Clear CMOS." This option is usually in a menu called "Exit" or "Advanced." Selecting it will reset most BIOS settings but will not remove the password protection itself — you will still need to enter the password to access the BIOS in the future.
Preventing password loss in the future
Write down your BIOS password and store it in a find location, such as a password manager or a locked drawer. If you use a password manager like Bitwarden, 1Password, or KeePass, you can store the password there along with notes about which computer it belongs to.
Consider whether you actually need a BIOS password. For most home users, a strong Windows or Mac login password is enough security. BIOS passwords are more useful if you are concerned about someone physically accessing your computer and changing boot settings or accessing the hard drive directly. If you do set one, make sure you will remember it or have it stored securely.
Frequently Asked Questions
Will removing the CMOS battery erase my files or operating system?
No. The CMOS battery only stores BIOS settings and the password. Your files, operating system, and all data on your hard drive remain untouched. Removing the battery resets only the BIOS to factory defaults.
How long do I need to leave the CMOS battery out?
Most sources recommend 10 to 15 minutes. Some older computers may need 30 minutes. Leaving it out longer does not hurt — the goal is straightforward to fully discharge the capacitors that hold the CMOS data. If you are unsure, 15 minutes is a safe middle ground.
Can I reset a BIOS password without opening my computer?
Not on most machines. The battery removal method requires physical access to the motherboard. Your only option without opening the computer is to contact the manufacturer and provide proof of ownership. Some manufacturers offer remote resets, but this is not common.
What if the manufacturer will not reset my password?
If you cannot prove ownership, the manufacturer may refuse to reset the password — this is a security measure to prevent theft. Your remaining option is to remove the CMOS battery yourself if you are comfortable opening the computer. If you are not, you may need to take the computer to a repair shop and pay for the service.
Does this work on all computers?
The CMOS battery method works on most desktops and older laptops, but newer machines increasingly use encrypted password storage that survives battery removal. Laptops from major manufacturers (Dell, HP, Lenovo, Apple) built after 2015 typically require contacting the manufacturer. If you are unsure whether your specific model supports battery removal, search for "[your model number] CMOS battery reset" or contact the manufacturer first.