How to tell if your computer has a virus (Windows and Mac)
You can tell if your computer has a virus by watching for a few specific signs, then running a scan with the protection already built into it. On Windows that is the Windows Security app with Microsoft Defender. On a Mac it is XProtect, which works in the background and alerts you if it finds known malware.
The checks below are free and use only tools from Microsoft and Apple. Start with the first section, because a scary virus warning in your browser is often not on your computer at all.
First, rule out a fake virus warning
If a website suddenly fills your screen with a warning that your computer is infected, plays an alarm and shows a phone number, that is almost certainly a scam, not a real detection. Microsoft's page on online scams and attacks is direct about it: "Microsoft error and warning messages never include a phone number."
What Microsoft says to do:
- Do not call the number.
- Close the browser. If the mouse does not work, try Alt+F4.
- Restart the computer if you need to.
The FTC gives the same rule in its malware guide: never call a phone number that appears in a pop-up window. If you already called, paid or let someone connect to your computer, skip to "If you let a scammer onto your computer" below.
Signs your computer has a virus
The FTC lists these signs that a device may have malware:
- It slows down, freezes or crashes
- Your browser's home page changes, or it redirects you to sites you did not mean to visit
- New browser toolbars or add-ons appear
- You get a lot of pop-up ads, including on sites where you would not expect them
- You get repeated error messages from the operating system
- Task Manager on Windows or Activity Monitor on Mac will not open
- Your email or social accounts send messages you did not write
One sign alone is not proof. Computers slow down for ordinary reasons too. Treat any of these as a reason to run the checks below.
How to check for a virus on Windows 11 and Windows 10
Windows comes with the Windows Security app, which includes Microsoft Defender Antivirus. Microsoft's Windows Security overview says it scans your device in real time, so you do not need to buy anything to start.
- Search for Windows Security in the Start menu and open it.
- Select Virus & threat protection.
- Under Current threats, look at what has been found already, when the last scan ran, and anything that was quarantined.
- Select Quick scan. Microsoft says to do this right away if you suspect malware.
- If the quick scan is clean but you are still worried, open Scan options and choose Full scan, which checks every file and program on the device.
To check a single download, right-click it in File Explorer and choose Scan with Microsoft Defender. On Windows 11 you may need to select Show more options first.
Run the offline scan if a normal scan is not enough
In Scan options there is also Microsoft Defender Antivirus (offline scan). Microsoft's virus and threat protection page explains that it runs after a restart without loading Windows, so persistent malware has a harder time hiding. Save your open files first, because the computer restarts. When it is done, open Windows Security and check Protection history for the results.
Three settings worth a look
- Allowed threats. This lists anything Windows Security flagged that someone chose to allow. If you do not recognize an item, select it and choose Don't allow.
- Protection updates. Under Virus & threat protection, select Protection updates, then Check for updates so the next scan uses current definitions.
- Another antivirus. If you installed a compatible non-Microsoft antivirus, Microsoft says Defender turns itself off. In that case, run the scan from that program instead.
How to check for a virus on a Mac
macOS works differently. Apple's platform security guide describes XProtect, built-in antivirus that checks an app when it is first opened, when it changes, and when new signatures arrive. Apple says macOS checks for those signature updates daily by default, and if XProtect finds known malware, it moves it to the Trash and alerts you.
So on a Mac, checking means making sure those protections are current and switched on:
- Update macOS. Choose Apple menu > System Settings > General > Software Update, per Apple's update guide. Install anything waiting, and consider turning on automatic updates there.
- Check where apps can come from. Go to System Settings > Privacy & Security and scroll to Security. Under Allow apps downloaded from, Apple's Mac malware guide calls App Store the most secure setting. App Store and identified developers is the other option.
- Look for exceptions you did not make. Apple's page on opening apps safely explains that clicking Open Anyway saves an app as an exception to your security settings. If you remember overriding a warning for an app you are now unsure about, delete that app.
- Take alerts seriously. If your Mac says an app "will damage your computer" or can't be opened because it contains malware, do not override it.
If you see the FTC signs above on a Mac, especially new browser extensions or a changed home page, remove extensions you did not add in your browser's settings.
What to do if you find a virus
The FTC's order of steps:
- Stop signing in to accounts like banking or shopping on that computer until it is clean.
- Update your security software, or turn it on if it is off.
- Run a scan and let it remove what it finds.
- Change your passwords from a device you trust, and turn on two-factor authentication.
Start with your email password. Whoever controls your inbox can reset almost everything else. Our guide on how to tell if your email has been hacked shows where to check sign-ins and forwarding rules.
If you let a scammer onto your computer
Microsoft's steps for people who called a fake support number or allowed remote access:
- Remove any apps the scammer asked you to install
- Run a full scan with Windows Security and install available security updates
- Change any passwords you shared or that may have been exposed
- Consider resetting the device if the scammer had remote access
- If you paid, contact your card provider and ask about disputing the charge
Keep your next sign-ups separate
A lot of malware arrives by email: an attachment, a link or a fake invoice. If you use Secria Mail, you can give each site its own alias, so you can see which site leaked your address and delete the alias for good. Tracking pixels are removed automatically and senders never see your IP address. Sign-up is a name, the address you want and a password, with no phone number. Create a free account if that helps.
Frequently asked questions
How can I check if my computer has a virus for free?
On Windows, open Windows Security and run a quick scan, then a full scan if needed. On a Mac, keep macOS updated so XProtect has current signatures, and check Privacy & Security settings. Both are built in.
Does a Mac need antivirus?
Apple builds XProtect, Gatekeeper and notarization into macOS, and they work automatically. Keeping macOS updated and sticking to the App Store or identified developers is what Apple recommends.
Is a pop-up saying my computer is infected real?
If it includes a phone number, treat it as a scam. Microsoft says its warnings never include one. Close the browser and do not call.
How do I know if Windows Security is on?
Open Windows Security and select Virus & threat protection. You will see the last scan and the real-time protection setting under Manage settings. If another antivirus is installed, Defender may be off by design.
Can clicking a link give my computer a virus?
It can lead you to a harmful download or a fake sign-in page. Our guide on what to do if you clicked a phishing link walks through it.
If a scan comes back clean and the signs go away, keep automatic updates on and move on. If the signs keep coming back after a full scan, the offline scan on Windows is the next step.
Secria fact-checks every post against primary sources. Spotted something wrong or out of date? Email hq@secria.me and we will correct it.