Does Performing a Factory Reset Remove Viruses?

Along with modern technology comes the reality of common viruses. If you’ve become the victim of malware on your phone, you may need a factory reset to remove it. But is that all you’ll have to do?
We receive compensation from the products and services mentioned in this story, but the opinions are the author's own. Compensation may impact where offers appear. We have not included all available products or offers. Learn more about how we make money and our editorial policies.

Some people mistakenly think viruses only invade Windows PCs and Macs. Unfortunately, hackers are getting better at attacking different devices. If you get malware on your iPhone or Android device, does a factory reset remove it? The short answer is that it can and will in most cases, but there are some things to consider first.

Once you do a factory reset, it’s an irreversible act. You can't stop the process if you suddenly change your mind. If this seems too drastic, you can do a soft reset instead, which won’t erase all your data.

Keep reading to learn how to perform factory resets, other solutions to try first (like using the best antivirus software), and if a factory reset is the right option for you. 

In this article
Factory resets remove most viruses
Viruses may remain after a factory reset
When to factory reset your phone
Other solutions to try first
How to factory reset Androids
How to factory reset iPhones
Tips to avoid viruses
FAQs
Bottom line

Factory resets remove most viruses

If you find a virus on your phone, a factory reset will remove it in most cases. A factory reset, also called a hard reset, returns your device to its original factory settings. Your smartphone will have a feature that allows you to revert the drivers and operating system to a similar or original state.

Performing a hard reset will get rid of most viruses on your device because it wipes everything away. When you return your phone to its original state, the process removes all programs and system files from your device, leaving your phone with a clean slate.

Viruses may remain after a factory reset

The factory reset solution may not always work. Since viruses are steadily evolving and hackers are looking for ways to invade phones, some malware can avoid detection. These events are rare, but you should know about them in case they infect your device. Some instances where viruses don’t get removed by a factory reset are:

1. You may have rootkit malware on your iOS or Android device. This malware will give administrator access to hackers without your knowledge.

2. Your backup could also be infected. Since factory resets erase all your phone data, you may want to back up your device so you don’t lose your files. If that backup has an infected program, you could unknowingly restore the same virus to your phone.

3. Malware is sneaky and can hide in places you might not expect. You may have Wi-Fi adapters, keyboards, or other external devices that could contain viruses. Once you connect your phone to them, the virus can reactivate itself from these peripherals.

4. Advanced malware can hide in your recovery partition of the device. That is the part of your phone’s storage where the factory restore settings reside. A factory reset doesn’t wipe this part out, so if viruses are hiding there, they won’t be removed. Sometimes antivirus software doesn’t find this kind of malware.

When to factory reset your phone

If you’ve had a malware attack on your device, you may want to consider performing a factory reset. This hard reset will wipe out the device data, deleting most dangerous viruses.

A hard reset will also clear out unnecessary clutter on your phone. After a while, you may have files and apps you no longer need. A factory reset will remove those, and the device’s performance will improve. It may also remove any malware located in those apps or files.

Other solutions to try first

A factory reset can be helpful, but it can also remove the apps and files you want to keep. Performing a hard reset isn’t your only option if you get a virus on your phone. Before you try a factory reset, consider these methods first:

  1. Equip your phone with virus protection. When you have antivirus software on your device, it can scan your files and programs to remove viruses before they become a problem. If you're not sure what antivirus app is best for your phone, we have tested recommendations:

    Bitdefender for Android

    5.0
    Editorial Rating
    Learn More
    On Bitdefender's website
    Antivirus Software
    Bitdefender
    BLACK FRIDAY: Up to 59% off
    • Super reliable antivirus software with a non-intrusive free version
    • Simple yet powerful interface tools
    • Perfect protection score in third-party tests
    • Slow scans compared to other options


    McAfee for iPhone

    4.8
    Editorial Rating
    Learn More
    On McAfee's website
    Antivirus Software
    McAfee
    Save $90 on a 2-year plan
    • Premium antivirus, scam, and web protection, plus a VPN, identity monitoring, and secure password manager
    • Added peace of mind with 24/7 expert online support and McAfee’s Virus Protection Pledge
    • Compatible with Windows, Mac, Android, iOS, and ChromeOS on up to 5 devices


    Norton for both Android and iPhone

    4.8
    Editorial Rating
    Learn More
    On Norton 360 Antivirus's website
    Antivirus Software
    Norton 360 Antivirus
    Save up to 58% your first year
    • 4 plans available, all including antivirus, malware, ransomware, and hacking protection, Cloud backup, and a secure password manager
    • Option to add VPN connection, dark web monitoring, privacy monitoring, and more
    • Compatible with Windows, Mac, Android, and iOS on up to 10 devices depending on plan

  2. Remove suspicious apps. Reboot your phone in Safe Mode to uninstall recent applications that could be causing issues.
  3. Scan backup files. Before you create your backup, scan the files to be sure there are no viruses or malicious software attached to them.
  4. Clear the cache. You can easily clear your cache on Android or iPhone, and your browser’s cache to delete possible malware.

How to factory reset an Android smartphone

When you’re ready to perform a factory reset on your Android device, make sure you save any files or photos you want to keep. Once you begin the factory reset, you won’t get another chance to back up your data.

  1. Go to your Settings, then select System.
  2. Choose Reset options, then Erase all data (factory reset).
  3. Tap Erase all data. Enter your PIN and tap Erase all data again.

How to factory reset an iPhone

Before you erase your data, be sure to back up your iPhone. If you don’t want to hard reset your Apple Watch, unpair it from your phone first. You can do that in the Watch app on your iPhone. Follow the steps below when you’re ready to do a factory reset.

  1. Go to your Settings.
  2. Scroll to General, then select Reset.
  3. Tap Erase All Content and Settings.
  4. Confirm your changes.

Tips to avoid viruses

There are easy tips you can use to avoid getting viruses on your phone. With technology, there’s always a possibility of running into malware, but being proactive can reduce those chances. Follow these tips to protect your phone and avoid viruses:

  • Only download apps from trusted sources. Avoid third-party app stores. Use the Google Play Store or Apple App Store to get your applications. Never jailbreak your iOS device in an effort to get apps not supported by trusted sources.
  • Check Android apps for safety before downloading. Look at and review the developer profile and read user reviews of the app. Check the download count and look for high numbers. Use caution when an app is new, and consider waiting until it’s been around for a while.
  • Read expert reviews. Look for expert reviews online and independent experiences of new apps before you install them on your device.
  • Update your phone. Updates contain fixes for bugs and patches for security issues. Always update to the latest version of your phone’s operating system.
  • Don’t open suspicious links. If you get emails, pop-ups, or texts containing links that look suspicious, don’t click them. These could contain malware or redirect you to malware.
  • Use caution when using public Wi-Fi. Most public Wi-Fi is not secure, making it simpler for hackers to see your online traffic. Don’t access financial or other sensitive data when using public Wi-Fi unless you have a VPN.
  • Set your iPhone and iPad to ask for your Apple ID every time you download a new app. This prevents someone from downloading spyware or other types of malware if they get ahold of your phone.
  • Always use antivirus protection. Having virus protection is an extra layer of security for your phone. It can help protect against malware and other cyber threats.

FAQs


+

How do I know if my phone has a virus?

You may know you have a virus on your phone if you see signs like extra data usage, fraudulent charges on your accounts, and a fast battery drain. You can also scan your device with antivirus software to know for sure if your phone has a virus.


+

How do I make sure a virus is gone?

You can make sure a virus is gone by scanning your backup and checking any peripheral devices for malware. Then you can run a virus scan on your device.


+

Do I need antivirus software for mobile phones?

It is a good idea to have antivirus software on your mobile device because phones can get viruses the same way computers can get them. Since you can click on the same kinds of links and install similar apps, you can easily get a virus on your mobile phone.

Bottom line

There are times when a factory reset is the best method to use when removing a virus from your device. In most cases, performing a hard reset will wipe infected files from your phone. There are rare situations where viruses may remain on your device, even after a factory reset. 

If that’s the case, you may have to try some other options, like scanning with your antivirus software and checking external devices for malware.

Remember, you can access the same apps and websites from your phone that you can access on your computer. That means your mobile device is susceptible to viruses, too. Since hackers aren’t going to go away, it’s important to download the best antivirus for Android or the best antivirus for iPhone, depending on your device.

No Fuss, Real-Time Online and Mobile Protection
4.7
Editorial Rating
Learn More
On TotalAV's website
Antivirus Software
TotalAV
First year discount on paid plans
  • Real-time protection from viruses, malware, and online threats
  • Blocks tracking cookies and ads, proactively monitors for data breaches, and option to schedule smart scans
  • 100% compatible with Windows, Mac, Android, and iOS operating systems on up to 3 devices
  • Lacks firewall protection

Author Details
Patti Croft is a seasoned writer specializing in technology, with three years of experience. With a B.S. in Computer Science and a background as a technical analyst and security specialist, she covers a range of topics like data security and parental control software.