What you need to know before you start
Removing a BIOS password depends on what kind of computer you have and whether you set the password yourself. If you forgot your own password, the path forward is different from a machine you inherited or bought used. Some manufacturers make removal straightforward; others build in security that makes it harder on purpose.
The most common methods are: resetting the CMOS battery (works on many desktops), using a manufacturer default password or backdoor code (varies by brand), contacting the manufacturer with proof of ownership, or in some cases, physically removing components. Which one works depends on your specific machine.
Key Takeaways
- CMOS battery removal works on most desktop computers but not laptops, and requires opening the case and locating a coin-sized battery on the motherboard.
- Manufacturer default passwords exist for some brands like Dell, HP, and Lenovo, but the codes are specific to each model and not published online for security reasons.
- If you own the machine, the manufacturer can often reset the password with proof of purchase or ownership verification, though this takes days or weeks.
- Laptops often have stronger protections than desktops, and some newer models encrypt the BIOS settings in ways that make removal much harder without manufacturer help.
- Opening your computer to access internal components voids some warranties and can damage hardware if done carelessly.
Resetting the CMOS battery on a desktop computer
The CMOS battery stores BIOS settings, including the password. Removing it for a few minutes clears those settings and resets the password to nothing. This works on most desktop computers built in the last 20 years, but rarely on laptops.
First, shut down the computer completely and unplug the power cable. Wait at least 30 seconds. Open the case — usually by removing screws from the back or side panel. Locate the CMOS battery on the motherboard; it looks like a large coin (typically CR2032 size) sitting in a small circular holder. Gently pry it out with a plastic tool or your fingernail, wait 10 to 15 minutes, then reinstall it. Close the case, plug in power, and boot up. The BIOS password should be gone.
This method carries real risks: you can damage the motherboard with static electricity, crack a component, or dislodge a cable. If you are not comfortable opening a computer, this is not the route to take. Wear an anti-static wrist strap if you have one.
Using manufacturer default passwords
Dell, HP, Lenovo, and other major manufacturers have master passwords or service codes that can unlock BIOS. These are not published publicly — they are meant for authorized technicians and support staff. However, some older codes have leaked online, and they vary by model and sometimes by year.
Search for "[your computer brand] [your model number] BIOS master password" or "BIOS service code" online. Model numbers are usually on a sticker on the back or bottom of the machine. If you find a code that matches your exact model, try it. If it works, you can enter the BIOS, remove the password, and save the settings.
This method works best on older machines. Newer computers, especially business-class laptops, often have codes that are tied to the specific serial number and cannot be guessed. If you find a code online but it does not work, the manufacturer likely has locked that model more tightly.
Contacting the manufacturer for help
If you own the computer, the manufacturer can often reset the BIOS password. You will need to prove ownership — usually a receipt, proof of purchase, or the serial number plus some personal information that matches the original registration.
Call or contact the support line for your brand. Explain that you forgot the BIOS password and own the machine. They will ask for proof and may require you to mail the computer in or authorize a technician visit, depending on the brand and your warranty status. This process typically takes one to three weeks and may cost money if you are out of warranty.
This is the safest route if you are uncomfortable opening the computer or if the CMOS battery method does not work. It also creates a paper trail showing you are the legitimate owner, which matters if you ever need to prove ownership later.
Why laptops are harder to reset
Laptop BIOS passwords are more difficult to remove than desktop ones because manufacturers deliberately made them that way. Many laptops do not have a removable CMOS battery, or the battery is soldered to the motherboard. Others encrypt the BIOS settings so that removing the battery does not clear the password.
Some newer laptops, especially from Apple, Dell, and Lenovo, use a security chip that ties the BIOS password to the machine's unique hardware. Even if you reset the CMOS, the password remains locked. For these machines, contacting the manufacturer is often the only realistic option.
If you bought a used laptop and cannot access the BIOS, ask the seller for the password or proof that they can reset it. If they cannot or will not, the machine may not be worth buying.
What to do if you inherited or bought a used machine
If the computer belonged to someone else and they did not give you the password, your options are limited. You cannot contact the manufacturer and claim ownership if you are not the original owner. The CMOS battery method still works on desktops, but it requires opening the case.
If the previous owner is reachable, ask them for the password or to contact the manufacturer on your behalf. If not, and if the computer is valuable enough to justify the cost, you can hire a computer repair shop to reset the BIOS. They have tools and experience to do this safely, though it will cost money.
For a machine you bought used, check the receipt or proof of sale. Some manufacturers will reset the BIOS if you can show you purchased it legitimately, even if you are not the original owner. It is worth asking.
Risks and things that can go wrong
Opening a computer to access the motherboard risks damaging components with static electricity. If you touch the wrong part of the board or dislodge a cable, the machine may not boot afterward. Warranty coverage often does not explore to damage caused by opening the case yourself.
Removing the CMOS battery also clears other BIOS settings beyond the password — things like the system date, boot order, and hardware configuration. After you reinstall the battery, you may need to reconfigure these settings in the BIOS menu.
If you use an incorrect master password too many times, some computers lock you out entirely and require manufacturer intervention. Try passwords sparingly, and stop if you see a warning message.
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 or macOS. Your data and operating system live on the hard drive or SSD, which is separate. Removing the battery will not touch them.
Can I remove a BIOS password on a Mac?
Apple Macs use firmware passwords instead of traditional BIOS passwords. Removing one requires contacting Apple with proof of ownership or taking the machine to an Apple Store. The CMOS battery method does not work on Macs.
What if I try the CMOS battery method and it does not work?
Some newer computers, especially business laptops, have encrypted BIOS that does not reset when you remove the battery. If this happens, stop and contact the manufacturer or a repair shop. Trying other methods at that point risks damaging the machine.
Is it legal to remove a BIOS password from a computer I do not own?
No. Removing security features from a computer you do not own or have permission to modify is illegal in most places. Only remove a BIOS password from a machine you own or have explicit permission to work on.
How long does it take to reset the CMOS battery?
The physical process takes 15 to 30 minutes if you are careful and have the right tools. The waiting period — leaving the battery out — is 10 to 15 minutes. If you are new to opening computers, allow an hour to be safe.