The fastest way depends on what you remember

If you set a BIOS password on your computer and now can't remember it, you have three real paths: reset it using your computer's built-in recovery method, remove the CMOS battery to clear all BIOS settings, or contact the manufacturer with proof of ownership. Which one works depends on your computer model, whether you have physical access to the inside of the machine, and whether the manufacturer offers a recovery process.

The BIOS is the software that runs before Windows or Mac loads — it controls what hardware the computer recognizes and can lock you out of changing settings or even booting from a USB drive. A BIOS password is different from your Windows or Mac login password, so resetting your operating system won't touch it.

Key Takeaways

  • Most laptops and some desktops have a built-in recovery method — usually a key combination you hold during startup or a recovery code you set up when you first created the password.
  • Removing the CMOS battery inside the computer clears all BIOS settings including the password, but requires opening the case and takes about 30 seconds to a few minutes depending on the model.
  • Manufacturers like Dell, HP, and Lenovo can reset a BIOS password if you provide proof of ownership, though the process takes days and requires documentation.
  • Some computers have a master password or default password that works across a product line — checking your manual or the manufacturer's support site may reveal one.

Check your computer's manual or manufacturer support first

Before you open the case or try anything else, look up your exact computer model on the manufacturer's website. Dell, HP, Lenovo, ASUS, and others publish BIOS password recovery steps specific to each model — some have a straightforward key combination, others have a recovery code you set when you created the password, and a few have a master password that works across a product line.

If you have the original manual or documentation that came with the computer, search it for "BIOS password" or "password recovery". Many manufacturers print the recovery method right there. If you bought the computer used and don't have the manual, the manufacturer's support site will have a PDF version — search for your model number plus "manual" or "user guide".

This step takes five minutes and works on many computers without opening anything. If your manufacturer offers a recovery method and you have access to the recovery code or email address you registered, this is the easiest path.

Remove the CMOS battery to clear all BIOS settings

The CMOS battery is a small coin-shaped battery on the motherboard that stores BIOS settings, including the password. Removing it for 30 seconds to a few minutes clears everything — the password, boot order, date and time, and any other BIOS changes you made. When you power the computer back on, the BIOS will be reset to factory defaults.

To do this, you need to open your computer's case. For a desktop, unplug the power cable, press the power button to discharge any remaining electricity, then open the side panel — usually held by two screws or a latch. Look for a small round battery about the size of a dime, usually silver-colored, sitting on the motherboard. Note which direction it faces, gently pry it out with a plastic tool or your fingernail, wait 30 seconds to a few minutes, then press it back in the same direction.

For a laptop, the process is more involved because you have to remove the keyboard or bottom panel to reach the motherboard. Look up your specific laptop model plus "remove CMOS battery" on YouTube — the steps vary widely, and watching someone do it on your exact model will show you what to expect. Some laptops have the battery in an straightforward-to-reach spot; others require removing the entire motherboard.

After you reinstall the battery and power on the computer, the BIOS password will be gone, but so will any custom settings you had configured — boot order, date and time, and any overclocking or performance tweaks will reset to factory defaults.

Contact the manufacturer with proof of ownership

If you don't want to open the computer and your manufacturer doesn't offer a self-service recovery method, you can contact them directly. Dell, HP, Lenovo, and most other manufacturers will reset a BIOS password if you provide proof that you own the computer — usually the serial number, proof of purchase, or a photo of the serial number sticker on the device.

Call or email the manufacturer's support line and explain that you've forgotten your BIOS password. They'll ask for proof of ownership and may ask security questions. If they confirm you're the owner, they can generate a one-time reset code or walk you through a recovery process specific to your model. This usually takes one to three business days.

Keep your proof of purchase or take a photo of the serial number sticker on your computer now, before you need it. The serial number is usually on a sticker on the back or bottom of the device.

What to do if you're locked out of a used computer

If you bought the computer used and the previous owner set a BIOS password, you have fewer options. The manufacturer will ask for proof of ownership, which you won't have. Your realistic choices are removing the CMOS battery (if you're comfortable opening the case) or contacting the previous owner to ask for the password or recovery code.

If you can't reach the previous owner and don't want to open the case, you're stuck — there's no way to bypass a BIOS password without either the recovery code, the manufacturer's help, or physical access to the motherboard. This is by design: BIOS passwords exist to prevent theft and unauthorized access.

If you decide to open the case and remove the CMOS battery, document what you're doing with photos in case something goes wrong. Take a photo of the battery location and orientation before you remove it so you can put it back exactly as it was.

Prevent this from happening again

Once you've regained access, consider whether you actually need a BIOS password. Most people don't — it's useful only if you're worried about someone physically accessing your computer and changing boot settings or accessing the hard drive outside of Windows. If you do keep a BIOS password, write down the recovery code or recovery email address and store it somewhere safe, separate from the computer.

If you set a new BIOS password, your computer should give you a recovery code or ask you to register a recovery email. Save this information when ready — don't skip this step. Store it in a password manager, write it down and keep it in a safe place, or email it to yourself. The few seconds it takes now will save you hours of troubleshooting later.

Frequently Asked Questions

Will removing the CMOS battery erase my files or Windows?

No. The CMOS battery only stores BIOS settings — it doesn't touch your files, Windows installation, or anything on your hard drive. Your documents, photos, and programs will be exactly where you left them. Only the BIOS settings reset to factory defaults.

How long do I need to leave the CMOS battery out?

Most sources say 30 seconds, but leaving it out for a few minutes is safer and doesn't hurt anything. The longer you wait, the more certain the BIOS will fully reset. If you remove it for five minutes, you're may provide the password is gone.

Can I reset a BIOS password without opening the computer?

Only if your manufacturer offers a recovery method — check your manual or their support website first. If they don't, or if you don't have the recovery code, you'll need to either open the case to remove the CMOS battery or contact the manufacturer with proof of ownership.

What if I open the case and can't find the CMOS battery?

Search YouTube for your exact computer model plus "CMOS battery location" — someone has probably already made a video showing exactly where it is. If you still can't find it, close the case back up and contact the manufacturer instead. Opening the case and not finding what you need is better than damaging something by guessing.

Will the manufacturer reset my BIOS password if I don't have proof of purchase?

Probably not. They'll ask for the serial number and proof of ownership to prevent someone from resetting a stolen computer's password. If you bought it used, you can try explaining the situation, but they're unlikely to help without documentation. Your best option is removing the CMOS battery yourself.