How to use this test
- Put the mouse down and let go. Take your hand off completely. Any contact at all, including resting a finger on a button, registers as movement.
- Press start and wait ten seconds. The test watches for reported movement while you are not touching anything.
- Do not bump the desk. Desk vibration transmits to the sensor. A heavy footstep nearby can produce a few events on a sensitive mouse.
- Read the verdict. We separate sustained drift in one direction from jitter that trembles in place, because they have different causes and different fixes.
Why does my mouse cursor move on its own?
A modern mouse sensor is a very small, very fast camera. It photographs the surface beneath it thousands of times per second, compares each image with the last, and calculates how far the pattern shifted. That shift becomes your cursor movement.
This design has one important consequence: the sensor cannot tell the difference between the surface moving and itself moving. If anything inside the optical path changes — a dust particle drifting across the lens, a hair casting a moving shadow, a reflection shifting as ambient light changes — the comparison produces a non-zero result, and the mouse dutifully reports movement that never happened.
That is why the overwhelming majority of self-moving cursors are a cleaning problem rather than a failed sensor, and why it is worth ruling out the cheap causes before assuming the hardware is finished.
The three patterns, and what each one means
| Pattern | What it looks like | Most likely cause |
|---|---|---|
| Drift | Cursor walks steadily in one direction | Obstruction on the lens, or a surface the sensor cannot track |
| Jitter | Cursor trembles in place, no net movement | Surface texture, dust, or a sensor at the edge of its tracking ability |
| Jumping | Cursor teleports rather than sliding | Connection fault — intermittent USB contact, a failing cable, or a wireless link dropping |
This test separates drift from jitter by comparing total distance travelled against net displacement. If nearly all the movement went the same way, the ratio approaches one and it is drift. If movement cancelled itself out, the ratio is near zero and it is jitter. A large peak step value with few events is the signature of jumping, which points at the connection rather than the sensor.
How to fix mouse drift
Work through these in order. The first three cost nothing.
- Look at the lens. Turn the mouse over and inspect the sensor opening under good light. A single hair across it is the most common cause of drift and the easiest thing in the world to miss. Remove debris with a dry cotton swab or compressed air — never liquid into the opening, and nothing abrasive on the lens.
- Change the surface. Move to a plain cloth mousepad. This resolves a large share of apparent sensor faults on its own, particularly on glass and gloss desks, because those give the sensor nothing to track.
- Unplug every game controller. If the test shows nothing but your cursor still wanders, this is your answer far more often than not. A worn analogue stick continuously reports movement, and the controller is frequently forgotten in a drawer or plugged in behind the desk.
- Re-seat a wireless receiver. Move it to a front port or a USB extension, away from USB 3 devices — they emit interference right in the 2.4 GHz band wireless mice use.
- Lower your DPI temporarily. Sensor noise scales with DPI. If dropping to 800 makes the problem disappear, the sensor is struggling rather than broken, and the surface is the thing to fix.
- Disable the touchpad on a laptop. Palm and sleeve contact registers as movement and is indistinguishable from drift unless you turn the touchpad off and re-test.
Why does my cursor jump around randomly?
Jumping is a different fault from drift, and the distinction matters because the fixes do not overlap. A drifting cursor slides; a jumping cursor teleports.
Teleporting almost always points at the connection rather than the sensor:
- A failing cable. Fraying near the strain relief where the cable leaves the mouse and flexes constantly. Movement of the cable itself often triggers it.
- Intermittent USB contact. Front-panel ports and unpowered hubs are the usual offenders. Plug directly into a rear motherboard port.
- A wireless link dropping and re-acquiring. The cursor lands wherever the first report after reconnection places it.
- USB power management. Windows selective suspend can put a port to sleep mid-use. Disable it for that device in Device Manager.
The polling rate test is the better tool for confirming this — an unstable stability figure is exactly what a failing connection produces.
If the test comes back clean
A clean result means your mouse is not reporting movement while stationary, so anything you are still seeing is coming from somewhere else. In rough order of likelihood: a game controller with a drifting stick, a laptop touchpad still enabled, remote-desktop or accessibility software injecting pointer input, or a second pointing device you have forgotten about.
If the sensor is clean but the mouse still feels wrong in use, the polling rate test will reveal unstable reporting from a failing cable or wireless link, and the button test confirms nothing is stuck down.
Frequently asked questions
Why does my mouse cursor move on its own?
The usual cause is the optical sensor picking up something it should not. A hair or speck of dust across the lens creates a moving shadow the sensor reads as motion. Reflective, glossy, or very dark uniform surfaces confuse it a different way, producing erratic readings because there is no texture to track. Wireless mice can also report spurious movement from radio interference. Genuine sensor hardware failure is real but comparatively rare, which is why cleaning is worth trying first.
How do I fix mouse drift?
Look at the sensor lens first — a single hair lying across it is the most common cause and is easy to miss. Clean it with a dry cotton swab or compressed air, never liquid directly into the opening. Then change surface: glass, gloss and plain dark desks defeat optical sensors, and a basic cloth mousepad eliminates a surprising number of apparent faults. On wireless, re-seat the receiver away from USB 3 ports. If it persists on a clean lens and a proper pad, the sensor is failing.
My cursor moves by itself but this test shows nothing. What else could it be?
A connected game controller with a worn analogue stick is by far the most common answer, and it catches people out constantly because the controller is often forgotten in a drawer or plugged in behind the desk. Unplug every controller and re-test. On laptops, an enabled touchpad registering palm or sleeve contact does the same thing. Some remote-desktop and accessibility software also injects pointer movement.
What is the difference between mouse drift and mouse jitter?
Drift is sustained movement in a consistent direction — the cursor walks steadily across the screen. It usually means the sensor is tracking something real that is not your hand, such as a lens obstruction. Jitter is many tiny movements with no overall direction, so the cursor trembles in place. That is usually surface texture the sensor is struggling to resolve, and it costs you precision without moving the cursor anywhere. This test separates the two by comparing total distance travelled against net displacement.
Why does my cursor jump around randomly?
Jumping is different again from drift or jitter, and it usually points at the connection rather than the sensor. Intermittent USB contact, a failing cable near the strain relief, or a wireless link dropping and re-acquiring all cause the cursor to teleport rather than slide. If this test shows a large peak step value, that is the signature. Try a rear USB port and a different cable, and check the polling rate test for unstable reporting.
How do I clean a mouse sensor?
Turn the mouse over and look into the lens opening under good light. Use a dry cotton swab or a puff of compressed air to remove debris. Never put liquid directly into the opening, and never use anything abrasive on the lens itself. A single hair lying across the lens is a remarkably common cause of drift and is invisible unless you look closely.
Does the surface I use really matter that much?
Yes, considerably. Optical sensors work by photographing the surface thousands of times per second and comparing successive images. Glass, gloss, mirror finishes and plain dark surfaces provide too little texture for that comparison to work, so the sensor either reports nothing or reports noise. A basic cloth mousepad eliminates a surprising number of apparent sensor faults.