How to Remove a Virus from Your Computer (Step-by-Step Malware Removal Guide)
A slow, glitchy computer or strange pop-ups might be more than just bad luck — they could mean your system is infected with a virus or malware. Viruses are designed to disrupt, steal data, or damage your files, but the good news is that you don’t always need a technician to clean things up. With the right steps, you can safely remove malware yourself and restore your computer’s health.
Here’s a step-by-step malware removal guide that’s clear, effective, and beginner-friendly.
Step 1: Disconnect from the Internet
Malware often uses your internet connection to spread, download additional threats, or send out stolen data. Disconnecting immediately helps limit the damage.
-
Unplug the Ethernet cable or switch off Wi-Fi.
-
This also prevents hackers from accessing your files in real-time.
Step 2: Enter Safe Mode
Running scans in Safe Mode ensures minimal programs and drivers load, making it harder for malware to hide.
-
On Windows 10/11: Restart → hold Shift while selecting Restart → Troubleshoot → Advanced Options → Startup Settings → Safe Mode with Networking.
-
On macOS: Restart and hold Shift until the login screen appears.
Step 3: Delete Temporary Files
Before running scans, clear out junk that could harbor malicious code.
-
Use Disk Cleanup (Windows) or Finder → Go → Go to Folder → type ~/Library/Caches/ on Mac.
-
This speeds up scans and sometimes removes minor malware hiding in temporary storage.
Step 4: Run Antivirus & Antimalware Scans
Relying only on one tool isn’t enough. Use both your antivirus software and a dedicated malware removal tool for a thorough cleanup.
-
Trusted tools: Windows Security (Defender), Malwarebytes, Bitdefender, or Kaspersky.
-
Perform a full scan (not quick scan) for maximum coverage.
If threats are detected, quarantine or delete them as recommended.
Step 5: Remove Suspicious Programs
Malware often disguises itself as legitimate software. Check your installed programs list.
-
On Windows: Control Panel → Programs & Features → Uninstall suspicious apps.
-
On Mac: Open Applications folder, drag unknown apps to Trash, then empty Trash.
Step 6: Check Browser Extensions & Settings
Malware frequently hijacks browsers with rogue extensions or search engines.
-
In Chrome/Edge/Firefox: Go to Extensions/Add-ons and remove anything unfamiliar.
-
Reset your homepage and search engine if they were changed.
Step 7: Update Your System & Software
Outdated operating systems and software are easy targets for malware.
-
Install the latest Windows Updates or macOS updates.
-
Update browsers, Java, Flash, and other plugins to patch vulnerabilities.
Step 8: Restore Your Files & System
If malware caused damage, you may need to restore files or settings.
-
Use System Restore (Windows) to roll back to a pre-infection state.
-
Restore files from a backup if they were corrupted or deleted.
Step 9: Change All Passwords
If your computer was infected, assume your credentials could be compromised.
-
Change passwords for email, banking, and social media — preferably on a clean device first.
-
Use strong, unique passwords or a password manager.
Step 10: Prevent Future Infections
Once clean, take steps to avoid repeat infections:
-
Install reliable antivirus and keep it updated.
-
Avoid downloading software from unknown sources.
-
Be cautious with email attachments and links.
-
Back up your data regularly to an external drive or secure cloud storage.
Before You Go
Removing a virus from your computer may seem daunting, but following these steps methodically can eliminate most infections. For stubborn cases where malware keeps coming back, professional help may be the safest option.
Protecting your PC is about being proactive: update regularly, scan often, and stay cautious online. A little vigilance goes a long way in keeping your computer safe and running smoothly.
Related to this article are the following:
- Search Engine Optimisation (SEO)
- Securing User Experience with the Permissions-Policy Picture-in-Picture Directive
- Enhancing Web Security with the Permissions-Policy Fullscreen Directive
- Why You Must Secure Your Website's Permissions-Policy Accelerometer Directive
- Progressive Web Apps (PWAs): Making Your Website More Accessible