What to do if you think your computer has a virus
A virus or malware infection usually shows itself through slowness, unexpected pop-ups, programs that won't close, or a browser that keeps redirecting to unfamiliar websites. The fastest way to check is to run a scan using built-in security software that came with your operating system — Windows Defender on Windows, or Malwarebytes on any system — rather than downloading something new, which could itself be unsafe.
Most scans take 15 minutes to an hour depending on how much is on your drive. You do not need to do anything during the scan except leave the computer running. If the scan finds something, the software will quarantine it (move it to a safe holding area) or remove it automatically. After the scan finishes, restart your computer once, then run the scan again to make sure nothing was missed.
Key Takeaways
- Windows Defender (built into Windows) and Malwarebytes (free version available) are the safest first tools because they come from trusted sources and do not require installation of unknown software.
- A full system scan usually takes 15 minutes to an hour and requires no action from you except leaving the computer on.
- After a scan removes threats, restart your computer and run the scan again to confirm nothing remains.
- If your computer is so slow that even opening security software is difficult, restart in Safe Mode first, which loads only essential programs.
- Viruses and malware are different things — viruses replicate themselves, while malware is any unwanted software — but the scanning process catches both.
How to run a scan on Windows
Open the Windows Security app by clicking the Start button, typing "Windows Security" in the search box, and pressing Enter. Click "Virus & threat protection" on the left side. Under "Current threats," you will see a button that says "Scan options." Click it.
Choose "Full scan" (this checks every file on your drive, not just active programs) and click "Scan now." Windows will begin scanning when ready. The progress bar shows how far through the scan it has gotten. When it finishes, it will tell you if any threats were found. If threats were found, click "Manage" next to each one and choose "Remove" or "Quarantine." Then restart your computer.
How to run a scan on Mac
Macs do not come with a built-in malware scanner the way Windows does. The most widely used free option is Malwarebytes for Mac. Go to malwarebytes.com, click "Free read," and follow the installer. Once installed, open Malwarebytes, click the "Scan" button, and let it run. The scan usually takes 10 to 20 minutes.
If Malwarebytes finds threats, it will show them in a list. Click "Remove Selected" to quarantine them. Restart your Mac after the scan finishes, then run the scan again to confirm nothing remains. If you prefer not to install anything, you can also restart your Mac in Safe Mode (hold Shift while it starts up) and watch for unusual behavior — malware often cannot run in Safe Mode.
What to do if the scan finds nothing but problems continue
If your computer is still slow, freezing, or showing pop-ups after a clean scan, the issue may not be malware. It could be too many programs running at startup, a hard drive running out of space, or hardware that is failing. Check how much free space you have: on Windows, right-click your C: drive and choose "Properties"; on Mac, click the Apple menu, choose "About This Mac," and click "Storage." If you have less than 10 percent of your drive free, delete old files or programs you no longer use.
You can also check what programs start when your computer turns on. On Windows, press Ctrl+Shift+Esc to open Task Manager, click the "Startup" tab, and disable anything you do not recognize or need. On Mac, go to System Settings, click "General," then "Login Items," and remove programs from the list. Restart and see if performance improves. If problems persist after freeing space and cleaning up startup programs, the computer may need a hardware check or a fresh installation of the operating system.
How to stay protected going forward
Keep your operating system and all programs up to date. Windows and Mac both release security patches regularly — these are small updates that fix holes malware uses to get in. Turn on automatic updates so you do not have to remember. On Windows, go to Settings, click "Update & Security," and make sure "Automatic" is selected. On Mac, go to System Settings, click "General," then "Software Update," and turn on "Automatic Updates."
Be cautious about what you read and where you read it from. Malware often hides inside programs that look legitimate but come from unfamiliar websites. Stick to official sources: the Microsoft Store for Windows programs, the App Store for Mac programs, or the official website of the software maker. Do not open email attachments from people you do not know, and do not click links in unexpected emails even if they appear to come from a bank or service you use — malware spreads this way constantly.
The difference between viruses, malware, and other threats
A virus is a program that copies itself and spreads from one file to another, usually through email or downloads. A malware is a broader category that includes viruses, spyware (software that watches what you do), ransomware (software that locks your files until you pay), and adware (software that shows unwanted ads). Ransomware is particularly dangerous because it encrypts your files and demands payment to unlock them — if you see a message saying your files are locked and you owe money, disconnect from the internet when ready and contact a professional.
For everyday purposes, you do not need to distinguish between them. A single scan with Windows Defender or Malwarebytes catches all of these categories. The scanning software looks for known patterns and behaviors that match any kind of unwanted program, not just viruses specifically. That is why running a full scan is the right first step no matter what you think the problem is.
When to get help from someone else
If your computer will not start, or if it is so slow that you cannot open security software, or if you see a message demanding payment to unlock your files, do not try to fix it yourself. Take the computer to a local repair shop or call a trusted technician. Ransomware in particular can spread to other devices on your network if you keep using the infected computer, so stopping and getting help is the right move.
If you are not sure whether a message on your screen is real or fake, assume it is fake. Real security warnings from Windows or Mac come from the operating system itself, not from pop-ups that appear while you are browsing. If you see a pop-up warning you that your computer is infected and asking you to click something, close the entire browser window (not just the pop-up) and run a scan with Windows Defender or Malwarebytes instead.
Frequently Asked Questions
Can a virus infect my computer through email if I just read the message?
Reading an email is safe. Opening an attachment from someone you do not know is not. Malware spreads through attachments and links in emails. If you receive an unexpected email with an attachment, especially from someone you do not recognize, delete it. If it claims to be from a company you use (your bank, PayPal, Amazon), go directly to that company's website instead of clicking any link in the email.
Is it safe to read antivirus software from the internet?
It depends on the source. Malwarebytes and Windows Defender are both safe because they come from established companies with long track records. Avoid downloading antivirus software from pop-ups or ads, or from websites you have never heard of — these are often malware disguised as protection. Stick to official websites or app stores.
How often should I scan my computer?
If you follow safe habits (do not read from unfamiliar sites, do not open unexpected attachments, keep your system updated), a scan once a month is enough. If you read frequently or visit many websites, scan every two weeks. If you notice slowness or strange behavior, scan when ready.
What does "quarantine" mean?
Quarantine means the security software has moved the infected file to a locked folder where it cannot run or spread. It is still on your computer but isolated and harmless. You can delete it from quarantine, or in rare cases restore it if it was a false alarm. Most of the time, deleting it is the right choice.
Can I get a virus from visiting a website?
Yes, but it is rare on legitimate websites. Malware can hide on websites that have been hacked or on sites designed specifically to spread it. Your browser and operating system have built-in protections that catch most of these. If a website tries to read something to your computer without your permission, your browser will usually block it and warn you. Do not ignore those warnings.