A Mac cursor that moves on its own is unsettling, but it’s rarely a sign that you've been hacked. It's far more often caused by a dirty trackpad, a faulty external device, a software conflict, or a swollen battery pressing up against the trackpad from below.

This guide will help you diagnose the cause in under ten minutes and walk you through six fixes that resolve most cases. If you're worried about remote access, we'll cover how to rule that out first.

Is a Mac cursor moving on its own a sign of remote control?

Mac cursor moving on its own is indeed a troubling sign that raises an alarming question: Am I being hacked? While you shouldn’t rule out the remote intruders, the majority of these cases on Macs are actually caused by "ghost touching" — a simple hardware or software glitch.

To check if this activity is random or purposeful, watch out for these signs:

  • Movement pattern: Hardware malfunction causes cursor behavior to be erratic or jittery, while remote access involves smooth movements toward specific icons and menus.
  • Interactivity: If someone gained remote access to your Mac, they would usually open folders, search for files, or attempt to override security settings.
  • Typing: With ghost touching, you won’t see your Mac typing meaningful words or commands into terminals or search bars.
  • Offline test: Pointer drift will most likely persist even with Wi-Fi and Bluetooth turned off, while remote access stops immediately when your Mac isn’t connected to the internet.

What to do if you suspect remote access

If you're still concerned that malware might be causing the cursor behavior, you might need to perform a deep scan of your Mac for threats. Remote Access Trojans (RATs), such as Overlord, MiniRAT, and GolangGhost, may gain full control of a Mac, allowing attackers to steal files, capture keystrokes, and access webcams. These RATs are rare, but they're real, and a generic check won't always catch them.

CleanMyMac’s Protection tool is built specifically to protect against macOS threats. Its database is continuously updated to recognize the latest trojans, adware, spyware, stalkerware, and browser hijackers most likely to cause unexplained system behavior. CleanMyMac also finds hidden background processes and login items, which can sometimes be the actual cause of erratic Mac activity. Over the past 12 months, the tool has removed more than 452.2K from over 140,000 Macs. 

What CleanMyMac does:

    • Scans for malware and monitors threats in the background
    • Uninstalls apps cleanly, including leftover files most uninstallers miss
    • Clears system junk, caches, and duplicate files
    • Manages cloud storage helping you clear unneeded files

Try CleanMyMac for free and run a full malware scan.

How to diagnose a Mac cursor moving on its own

When we ruled out the remote control possibility, let’s diagnose what exactly may be causing the jumping cursor.

Step 1. Disconnect your external mouse

Unplug any wired mouse and turn off any wireless mice or trackpads in System Settings > Bluetooth. If the cursor stops misbehaving, your external device is the culprit.

Step 2. Turn off the built-in trackpad

If you have both a built-in trackpad and an external mouse connected, they can conflict, causing erratic behavior. To check, go to System Settings > Accessibility > Pointer Control. Turn on “Ignore built-in trackpad when mouse or wireless trackpad is present.”

Step 3. Log in to a different user account

If you don’t experience cursor problems in the other account, something in your profile, such as a login item, a third-party app, or a corrupted preference file, may be causing the issue.

How to stop cursor from moving on its own

If you’ve asking, “Why does my cursor move on its own?” and have noticed that it started to exhibit troubling symptoms, such as ghost clicks or a slow horizontal drift, it’s time to investigate and find the root of the issue.

Reasons why your cursor malfunctions may range from pointing devices interfering with one another or corrupted files damaging hardware to physical issues like a damaged trackpad or a swollen battery. To uncover and eliminate the issue that’s causing the MacBook cursor erratic behavior, you need to complete a thorough checkup.

1. Reset all pointing devices

Having multiple pointing devices connected at once can sometimes cause interference. Your computer may try to jump from one to another while you’re working, which could result in bizarre cursor movement.

Bluetooth or USB, test your pointing devices individually. But before that, make sure all devices are fully charged and have fresh batteries. If, when switching from one device to another, you notice the Mac cursor moving on its own — you’ve just found the problem. Try to resolve interference by unplugging and reinstalling your mouse or resetting your Bluetooth pointing device:

  1. Open Bluetooth in System Settings.
  2. Click the "i" icon > Forget This Device.

In addition, uninstall and reinstall USB-pointing devices:

  1. With the device unplugged, search for your device using the Finder.
  2. Open your device’s application folder and run the uninstaller. If your device has no folder, just drag the icon to Trash.
  3. Restart your Mac, plug the device in, and follow the steps to reinstall.
Personal tip💡

If you’ve connected a game controller like PS5 DualSense to your Mac, check if it is disconnected while you do not use it. It may be controlling your cursor because of button drift, especially if it is old. So, disconnect it in System Settings > Bluetooth.

2. Reset the Bluetooth module

If the cursor issue is caused by Bluetooth pointing device conflicts, try a complete reset of the Bluetooth module. This will remove all Bluetooth connections and configuration, so you’ll need to reconnect your wireless devices afterward.

  1. Open Finder > Applications > Utilities > Terminal.
  2. Type this command and press Enter: sudo pkill bluetoothd
  3. Enter your password when prompted.
  4. Restart your Mac from the main Apple Menu.

3. Turn off Tap to Click 

Sometimes, these are System Settings that cause the MacBook cursor jumping around issue. To find out if that is the case, turn off Tap to click: 

  1. From the main Apple menu, navigate to System Settings. 
  2. Select Trackpad. 
  3. Make sure that Tap to Click is turned off by toggling the switcher. 
Turn off Tap to Click to fix Mac cursor moving on its own

If it helped, most probably, you touched the trackpad while typing, and it is what was behind the MacBook cursor erratic behavior. If the issue persists, let’s proceed with other fixes. 

4. Restart your Mac in safe mode

Safe mode boots macOS without third-party login items, kernel extensions, or font caches loading at startup, and it runs a check on your startup disk along the way. If your cursor behaves normally in safe mode, the cause is probably software loading at startup, usually a recently installed app, a login item, or a system extension. 

To start your Intel-based Mac in safe mode:

  1. Restart your computer as usual from the Apple menu but hold the Shift key.
  2. Release Shift when you see the login window.
Boot into safe mode on an Intel-based Mac

For a Mac with Apple silicon:

  1. Shut down your Mac and wait 10 seconds.
  2. Press and hold the power button until the startup options window shows up.
  3. Select a startup disk.
  4. Press the Shift key and click Continue in Safe Mode.
  5. Release the Shift key.
Boot into safe mode on a Mac with Apple silicon

In addition to safe mode, try going fully offline. Turn off your Wi-Fi, unplug your Ethernet, and shut off Bluetooth. If you suspect you have a “cursor moving on its own Mac virus” even after scanning your Mac with antimalware software, and the issue still persists while disconnected in safe mode, you can be sure that it’s not malware, adware, or other intrusive programs that are disrupting your cursor.

5. Reconfigure SMC, NVRAM, and PRAM

The SMC (System Management Controller) controls your computer’s thermal, power, and battery recharging operations. Resetting the SMC will allow it to refresh any corrupted file paths that may be preventing pointing devices from working correctly.

To quickly reset your SMC on an Intel-based Mac:

  1. Select Shut Down from the Apple menu.
  2. After your Mac shuts down, hold Shift-Control-Option-Power button for 10 seconds.
  3. Release all held keys.
  4. Power on normally.
Reset SMC

For a Mac with Apple silicon, simply restart it.

Additionally, as your NVRAM (nonvolatile random-access memory) and PRAM (Parameter RAM) perform quick access memory tasks related to the devices you use every day, resetting them will help cure corrupted file paths.

To reset your NVRAM and PRAM on an Intel-based Mac:

  1. Select Shut Down from the Apple menu.
  2. Once your Mac shuts down, press the power button, followed quickly by Command-Option-P-R.
  3. Hold Command-Option-P-R until your Mac restarts,
  4. Once you hear the startup chord, release the buttons and allow the Mac to start up.
Reset PRAM

A Mac with Apple silicon will automatically reset NVRAM/PRAM.

6. Check for a swollen battery

If you’ve used your Mac for a couple of years, check your battery for swelling. Users on Apple Discussions report that a swollen battery beneath your trackpad can press against it, causing your cursor to move on its own. Although it is rare, do not ignore this step. Check your battery condition in System Settings > Battery, and if Battery Health is anything but Normal, take your Mac to an Apple-authorized repair center.

Quick recap 

If you just want to troubleshoot the problem, work through these five steps. Most cursor issues are resolved before you reach the end of the list.

  1. Clean the trackpad and disconnect extras. Wipe with a damp, lint-free cloth. Unplug wired mice; turn off Bluetooth devices.
  2. Disable Tap to Click. System Settings > Trackpad > turn off "Tap to click." Also check if “Ignore built-in trackpad when mouse or wireless trackpad is present" is on in System Settings > Accessibility > Pointer Control.
  3. Boot in safe mode. Hold Shift on Intel Macs, or press the power button on Macs with Apple Silicon. If the cursor stops drifting, the cause is startup software.
  4. Reset NVRAM and SMC. Helps resolve uncommon issues related to system settings and hardware behavior. 

Frequently Asked Questions

How do I stop my cursor from moving on its own?

If you experience cursor jitter and ghost clicks, start with the simple: clean the trackpad, disconnect any extra devices, and turn off “Tap to Click” in System Settings > Trackpad.

Is a moving cursor a sign of a virus?

It can be a sign of malware, but you have to pay attention to other signals, such as movement pattern (erratic = random cursor glitches, smooth = remote access), interactivity (chaotic jittering or purposeful activity), and typing (random or meaningful). Random cursor activity most likely continues when you’re offline, while remote access stops immediately.

Can a swollen battery cause cursor problems?

A battery that is starting to inflate can press up against the underside of your Mac trackpad, causing erratic cursor movement, ghost clicks, or a trackpad that won't click evenly. This often happens on older MacBooks, particularly those several years old or that have been unused for long periods.