Your laptop suddenly opening strange tabs, showing virus warnings, or running much slower than usual? That can feel alarming, but one odd pop-up or slow day doesn't prove there's a virus. Some warnings are just webpages trying to scare you into calling a fake support number or downloading a “cleaner.”

If you're searching for how to remove a virus from a laptop, start with the built-in security tools. They give you a sensible first check without paying for a random app or wiping your files.

How to check if your laptop has a virus

A warning inside one browser tab may be a scare pop-up, not a scan result. Don't click its buttons, call its number, download anything it suggests, or enter a password. Close the tab or browser window. On Windows, press Ctrl + W to close the tab or Alt + F4 to close the window if needed. Those shortcuts close the page; they don't scan or clean the laptop. There is no universal Run command that removes every virus, so avoid copying commands from random sites.

A few clues worth checking:

  • Ads or redirects keep appearing, even after you close the original page.
  • You see an app or browser extension you don't remember installing.
  • Your browser homepage or search engine changed without you changing it.
  • Your security software reports a detection.
  • The problem began soon after you installed or opened a file.

A loud fan, a warm laptop, or slow startup on its own isn't enough to confirm malware. Run a scan before assuming the worst.

If files suddenly become locked or renamed and a ransom message appears, stop here. Turn off Wi-Fi and unplug the network cable if there is one. Don't connect a backup drive or reset the laptop. Contact your workplace IT team or a trusted computer technician. CISA's ransomware response guide (opens in a new tab) recommends disconnecting affected devices from the network.

How to remove a virus from a Windows laptop

These steps work on Windows 10 and 11, though a few menu names can differ.

1. Run a Windows Security scan

You can start without paying for another security app: Windows 10 and 11 include Microsoft Defender. Open Start, type Windows Security, and select Virus & threat protection. Choose Quick scan to check common hiding places. If you still suspect malware, open Scan options and choose Full scan. A full scan checks more files and can take a while, so plug in your laptop and let it finish.

If it finds a threat, follow the suggested action to remove or quarantine it. Don't choose Allow unless you know the file is safe. Microsoft's scan instructions (opens in a new tab) explain the available options.

2. Use the offline scan if malware returns

If the same warning or infection comes back after a scan, use Microsoft Defender Offline. In Windows Security > Virus & threat protection > Scan options, select Microsoft Defender Offline scan, then choose Scan now. Save any open work first. The laptop will restart and scan before Windows loads, which can help with threats that are difficult to remove while Windows is running.

3. Remove apps or extensions you don't trust

Think about what changed just before the problem began. In Settings > Apps > Installed apps, check recent installs and uninstall anything you know you didn't choose or no longer need. Don't delete a Windows system file or remove an app just because its name looks unfamiliar. Search the name first if you're unsure.

Also review your browser extensions and website notification permissions. Remove extensions you don't recognize, and block notifications from sites you don't trust. If the warning appeared in Microsoft Edge, Microsoft's scareware guidance (opens in a new tab) explains why full-screen virus warnings and fake support numbers can be scams.

4. Install updates

On Windows 11, open Settings > Windows Update and install available updates. On Windows 10, open Settings > Update & Security > Windows Update. Update your browser and other apps too.

One detail matters if you're using an older laptop: Windows 10 standard support ended on October 14, 2025, and Windows 7 reached end of support earlier. A scan can remove detected malware, but it can't provide missing security updates. Eligible Windows 10 devices enrolled in Microsoft's Extended Security Updates programme can continue to receive qualifying security updates; check your device's enrolment and support status rather than assuming a scan restores support. Check Microsoft's Windows support information (opens in a new tab) and plan to move to a supported version if your laptop can run one.

If you use a Mac

Install available updates from Apple menu > System Settings > General > Software Update. If macOS warns that a downloaded app contains malware, don't override the warning. Delete the app or file instead. Apple's Mac safety guidance (opens in a new tab) explains how to handle unexpected apps and updates.

If the warning appears only on a webpage, close the tab and remove that site's notification permission in your browser. Don't install a “Mac cleaner” because an advertisement says your computer is infected.

If you entered a password or payment details

Use another device you trust to change the password you entered. Turn on two-step verification and check for sign-ins you don't recognize. If you shared card or banking information, contact your bank through its official app or the number on your card.

Do you need to reset the laptop?

A factory reset erases files and settings, so don't make it your first move. Try the scan, remove unwanted apps, and install updates first. If the problem continues, ask a trusted technician or your workplace IT team whether a reset or clean reinstall makes sense. Back up personal files you still need, but don't copy suspicious installers or unknown programs.

The quick version

  • Close browser warnings without clicking or calling the number shown.
  • On Windows, scan with Windows Security, then use Defender Offline if the problem returns.
  • Remove only apps and extensions you know you don't trust.
  • On Mac, update macOS and delete an app it flags as malware.
  • If files are locked with a ransom message, disconnect from the network and get help before resetting.

The safest way to remove a virus from a laptop is to identify where the problem is coming from, scan with the tools built into your system, and reset only if the issue won't go away.

Frequently asked questions

Can I scan a Windows laptop without buying antivirus software?

Windows includes Microsoft Defender Antivirus through Windows Security. Open Virus & threat protection for a quick scan, or use Scan options for a full scan. If another antivirus product manages the laptop, check its status first; Defender may not be the active provider.

When should I use Microsoft Defender Offline?

Consider it when a suspected infection keeps returning after an ordinary scan. Save your work, then choose Microsoft Defender Offline scan under Scan options in Windows Security. The computer restarts to run the check outside the normal Windows session, so allow time for that restart.

Should I reset a laptop that shows a ransom message?

Disconnect it from WiFi and unplug any network cable first. Do not connect a backup drive or rush to reset it. Contact your workplace IT team or a trusted technician, because restoring access and preserving useful evidence may need a more careful recovery plan.