Start with the basics: shutting down and unplugging

Before you touch anything inside your computer, turn it off completely and unplug the power cable from the back. Wait at least 30 seconds — this drains residual electricity and protects both you and the hardware. If your computer has a removable battery, take it out as well. Never clean a computer while it is powered on or in sleep mode.

Once unplugged, let the machine sit for a few minutes if it has been running. The inside can be hot enough to burn your fingers. You can test the metal case with your hand — if it feels warm, wait longer. This is especially important for laptops, which retain heat longer than desktops.

Key Takeaways

  • Always power off and unplug your computer before cleaning any part of it, then wait 30 seconds to discharge static electricity.
  • Use compressed air to blow dust out of vents and fans rather than wiping, which can push debris deeper into the machine.
  • Clean the keyboard by turning it upside down and tapping it gently, then use a slightly damp cloth on the keys themselves — never pour liquid into it.
  • Wipe the screen with a microfiber cloth and distilled water only; alcohol and commercial cleaners can damage the coating.
  • Ground yourself by touching a metal part of the case before handling internal components to avoid static discharge that can destroy circuits.

Cleaning the exterior and keyboard

The outside of your computer collects dust, fingerprints, and grime. Use a soft, lint-free cloth — microfiber cloths work best — slightly dampened with distilled water. Wipe the case, back panel, and any vents on the outside. Do not spray liquid directly on the computer; spray it on the cloth first, then wipe. This prevents water from seeping into openings.

For the keyboard, turn it upside down over a trash can and tap the back gently with your hand or a soft brush. Loose crumbs and dust will fall out. Then use a slightly damp cloth to wipe the tops of the keys. If keys are sticky, dip a cotton swab in distilled water, squeeze out the excess, and clean around the edges of each problem key. Let everything air-dry before turning the computer back on.

Removing dust from vents and fans

Dust buildup inside your computer blocks airflow and causes overheating. The easiest and safest way to remove it is with compressed air — a can with a thin straw attachment that you can buy at any hardware or office supply store for $5 to $15. Hold the can upright, attach the straw, and use short bursts to blow air into the vents on the back and sides of your computer case.

Aim the air at the fan blades and let the dust blow out the other side. Do not hold the can upside down or shake it, as this sprays liquid instead of air. If you have a desktop computer, you can open the side panel (usually held by two or three thumbscrews) and blow air directly at the internal fans and heatsinks. Hold each fan blade still with your finger so it does not spin — a fan spinning freely from compressed air can damage the bearings. For laptops, blow air into the vents along the sides and bottom, holding the can a few inches away.

Cleaning the monitor or screen

Your screen collects fingerprints and dust. Use only a microfiber cloth and distilled water — tap water contains minerals that leave streaks, and alcohol or commercial screen cleaners can strip the protective coating on modern displays. Spray distilled water lightly on the cloth, not on the screen itself, and wipe gently in circular motions. Do not press hard or scrub.

For stubborn smudges, let the damp cloth sit on the spot for a few seconds to soften it, then wipe again. If you use a laptop, close it before cleaning the screen so you do not accidentally press keys. Never use paper towels, tissues, or your shirt — these scratch the surface. If your screen has a matte finish rather than glossy, be extra gentle, as the coating is more delicate.

Opening the case and cleaning internal components

If you feel comfortable opening your computer case, you can clean the inside more thoroughly. Before you do, ground yourself by touching a metal part of the case with your bare hand — this removes static electricity that can destroy circuit boards. Wear an anti-static wrist strap if you have one, clipping it to the case while you work.

Remove the side panel by unscrewing the thumbscrews or release latches. Take a photo of the inside with your phone before you touch anything — this helps you remember where cables go if you accidentally disconnect one. Use compressed air to blow dust off the motherboard, power supply, and RAM sticks. Blow from the top down so dust falls out the bottom. Do not touch the components themselves unless you have to, and never use a vacuum cleaner inside the case, as the static it generates can fry circuits.

If you see dust caked on a heatsink (the metal fins attached to the CPU or GPU), use a soft brush or old toothbrush to gently loosen it, then blow it away with compressed air. Reattach the side panel, screw it down, and plug the computer back in. If anything does not power on or behaves strangely, unplug it when ready and check that all cables are seated properly.

Cleaning a laptop keyboard and trackpad

Laptop keyboards are harder to clean because the keys do not come off easily on most models. Turn the laptop upside down and tap it gently over a trash can to dislodge loose debris. Use a can of compressed air to blow between the keys, holding the can upright and using short bursts. Angle the laptop so air blows the dust out rather than deeper into the machine.

For the trackpad, use a slightly damp microfiber cloth to wipe it down. If the trackpad is sticky or unresponsive, a cotton swab dampened with distilled water can clean the edges. Never pour liquid into the keyboard or trackpad. If a key sticks or stops working after cleaning, and you are comfortable with it, you may be able to pop off the key cap on some laptops by gently prying with a thin plastic tool — check your laptop's manual first, as some models have keys that cannot be removed without damage.

How often to clean and what to avoid

Clean the exterior and keyboard every month or two, depending on how much you use the computer and how dusty your environment is. Clean the internal components every six months to a year, or sooner if you notice the fan running constantly or the computer feeling hot. If you live in a dusty area or have pets, clean more frequently.

Never use a vacuum cleaner inside your computer — the static it generates can destroy components. Do not use rubbing alcohol, acetone, or harsh chemical cleaners on any part of the computer. Do not spray water directly on the machine or submerge any component. Do not touch the CPU, GPU, or RAM unless you have removed them intentionally. Do not force any cable or component — if something does not slide out easily, it is probably not meant to come out, and forcing it can break the connector.

Frequently Asked Questions

Can I clean my computer while it is in sleep mode?

No. Sleep mode leaves power running through the circuits, which means static electricity or accidental contact can damage components. Always shut down completely and unplug the power cable before cleaning anything inside the computer.

What should I do if I spilled liquid on my keyboard?

Turn off and unplug the computer when ready. If it is a laptop, remove the battery if possible. Let it sit upside down or at an angle for 24 to 48 hours so the liquid drains out. Do not try to turn it on until it is completely dry. If the keyboard still does not work after drying, you may need to replace it, but waiting gives the best chance of the circuitry surviving.

Is it safe to use a hair dryer to blow dust out of my computer?

No. Hair dryers generate static electricity and can also push hot air that damages components. Compressed air is the only safe tool for blowing dust out of a computer. It is inexpensive and designed specifically for this task.

Do I need to replace the thermal paste on my CPU after cleaning?

Only if you removed the heatsink from the CPU itself. If you straightforward blew dust off the heatsink while it was still attached, the thermal paste underneath is undisturbed and does not need to be replaced. Removing and reattaching a heatsink requires new thermal paste, which is a more advanced task.

My computer is still running hot after I cleaned it. What else could be wrong?

Dust buildup is the most common cause, but if cleaning did not help, the thermal paste between the CPU and heatsink may have dried out, or a fan may be failing. Check that all fans are spinning when the computer is on. If a fan is not moving or is very slow, it may need to be replaced. If you are not comfortable diagnosing this, take the computer to a repair shop.