The fastest way depends on whether you know the password
If you remember the BIOS password, restart your computer, enter the BIOS setup (usually by pressing Delete, F2, or F12 during startup — check your motherboard manual for the exact key), and look for a password or security menu. You can change or remove the password from there directly. This takes about five minutes.
If you do not remember the password, you have three main routes: resetting the CMOS battery, using a manufacturer default password, or contacting the computer maker. Which one works depends on your motherboard model and how the password was set. None of these methods require special software or paid services.
Key Takeaways
- Removing a BIOS password you remember takes five minutes — restart, press the setup key, and change it in the security menu.
- If you forgot the password, removing the CMOS battery for 10 to 15 minutes resets most consumer motherboards to factory defaults.
- Some manufacturers (Dell, HP, Lenovo) have master passwords or can unlock the BIOS if you prove ownership with a service tag or serial number.
- Resetting CMOS erases all BIOS settings, not just the password, so you will need to reconfigure boot order and other options afterward.
- If the computer is under warranty or you have proof of purchase, contact the manufacturer before opening the case.
Resetting the CMOS battery on a desktop or laptop
The CMOS battery is a small coin-shaped battery on the motherboard that stores BIOS settings, including the password. Removing it for 10 to 15 minutes clears those settings and resets the BIOS to factory defaults. On a desktop, open the case, locate the battery (usually a silver disc about the size of a dime), and gently pop it out. Wait 15 minutes, then reinstall it and power on.
On a laptop, the process is harder because you have to remove the bottom panel, keyboard, or palm rest to reach the motherboard. Check your laptop's service manual for the exact steps — some models require removing the entire motherboard. If you are not comfortable opening the case, a computer repair shop can do this in 30 minutes for $50 to $100.
After you reinstall the battery and power on, the BIOS will be reset to factory settings. You will need to reconfigure the boot order, enable or disable hardware, and adjust any other settings you had changed. The password will be gone.
Using a manufacturer master password
Dell, HP, Lenovo, and some other manufacturers have master passwords that can unlock a forgotten BIOS password. These are not the same as resetting the CMOS — they let you log in without erasing your settings. The master password varies by manufacturer and sometimes by model.
Dell uses a service tag (a code on the bottom of the computer) to generate a temporary unlock code. You contact Dell support, provide the service tag, and they give you a code that works once. HP and Lenovo have similar systems. This route requires proof of ownership and a phone call or online chat with the manufacturer, but it preserves your BIOS settings.
If you bought the computer secondhand or do not have proof of ownership, the manufacturer will usually decline. In that case, CMOS battery removal is your next option.
Restarting and entering setup if you know the password
Power on the computer and watch the startup screen. You will see a prompt like "Press Delete to enter Setup" or "Press F2 for BIOS." Press that key repeatedly (do not hold it down) until the BIOS menu appears. If you miss the window, restart and try again.
Once in the BIOS, look for a menu labeled Security, Password, or Administrator. The exact location varies by motherboard maker. Select the password option and choose to change or remove it. Some BIOS versions ask you to enter the old password first; others let you clear it directly. Save and exit when done.
If the BIOS asks for a password before you can even enter the setup menu, you cannot use this method — you will need to reset the CMOS battery or contact the manufacturer instead.
What happens to your other settings when you reset
Removing the CMOS battery clears everything the BIOS stores: the password, boot order, hardware settings, date and time, and any overclocking changes. When you power on again, the computer will boot from the default drive (usually the first hard drive or SSD) and may take longer to start because it is re-detecting hardware.
You will need to go back into the BIOS and set your boot order, enable any disabled devices, and adjust any custom settings you had made. If you had overclocked your CPU or GPU, those changes are gone and the system will run at stock speeds. Write down your current BIOS settings before you remove the battery if you want to restore them afterward.
When to contact the manufacturer instead
If the computer is still under warranty, contact the manufacturer before opening the case — opening it may void the warranty. If you have the original receipt or proof of purchase, the manufacturer can often unlock the BIOS without you having to do anything. Some will mail you a replacement motherboard or send a technician.
If you bought the computer used and do not have proof of ownership, the manufacturer will not help. Your only option is CMOS battery removal. If you are uncomfortable opening the case, take it to a local repair shop and ask them to reset the CMOS.
Preventing a forgotten BIOS password 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 set a password to prevent someone else from changing BIOS settings, consider whether you actually need it. Most home users do not.
If you do use a BIOS password, test that you can still enter the BIOS with it before you rely on it. Some people set a password and then forget it within months because they never use the BIOS again. A quick test every few months prevents a locked-out situation later.
Frequently Asked Questions
Will removing the CMOS battery erase my files or operating system?
No. The CMOS battery only stores BIOS settings, not your files or Windows. Your documents, photos, and programs remain untouched. Only the BIOS configuration resets to factory defaults.
How long do I need to leave the CMOS battery out?
Most motherboards need 10 to 15 minutes. Some older boards need 30 minutes. If you are unsure, leave it out for 30 minutes — longer does not hurt. When you reinstall it, make sure it clicks into place.
What if I reset the CMOS and the password is still there?
This usually means the password was set in Windows or a third-party tool, not in the BIOS itself. Check Windows security settings or ask the person who set it up. If it is a corporate computer, contact your IT department.
Can I clear the BIOS password without opening the case?
Not on most computers. Some newer laptops have a BIOS reset option in Windows settings or a recovery menu, but most require either opening the case or contacting the manufacturer. Check your computer's manual for a software reset option first.
Is it legal to reset a BIOS password on a computer I own?
Yes, if you own the computer or have permission from the owner. If you are trying to access someone else's computer without permission, that is not legal. BIOS password removal is a legitimate troubleshooting step for your own hardware.