How to clean an espresso machine portafilter
A daily wipe, a weekly soak, and a quarterly deep clean. The exact portafilter cleaning routine that prevents stale-tasting shots.
What you'll need
- Cafiza (or equivalent espresso machine cleaner) : Sodium percarbonate-based powder. Cafiza is the standard; Urnex, Pulycaff, and JoeGlo are interchangeable. Don't substitute dish soap for a deep clean.
- A soft brush : A group head brush works for the basket too. Stiff plastic bristles, not metal. Metal scratches the chrome and over time exposes the brass underneath.
- Microfiber cloth : Dedicated to the machine. Coffee oils stain, and you don't want detergent residue from the kitchen rag in your portafilter.
- A blind (blank) basket : Only if your machine supports backflushing (E61 groups, most prosumer pump machines). Bambinos and most thermoblocks can't be backflushed.
TL;DR
After every shot: knock the puck, wipe the basket with a dry cloth, rinse under hot water. Once a week: pull the basket out, soak both the basket and portafilter (handle out of the water) in hot water plus a teaspoon of Cafiza for 15 minutes, scrub, rinse. Once a quarter: replace the shower screen and group gasket if shots are leaking around the edge. Skip vinegar. Skip the dishwasher. The whole routine takes 90 seconds a day and 10 minutes a week.
The three cleaning levels
If your shots have started tasting muddy or stale and you’re not sure whether it’s a cleaning problem or something else, the troubleshooting decision tree walks through the diagnosis. Cleaning is one of the most common silent culprits, but not the only one.
Portafilter cleaning is not one task. It’s three, on three different schedules, and most people only do the first one and wonder why their shots taste muddy by month two. It’s one piece of the full espresso machine cleaning schedule; this guide zooms in on just the portafilter.
Daily (after every shot): mechanical removal of the spent puck and visible grounds. Takes 30 seconds.
Weekly (deep clean): chemical removal of coffee oils that have soaked into the basket holes and the inside of the spout. Takes 10 minutes, mostly unattended soaking.
Quarterly (full service): replace consumables (shower screen, group gasket, sometimes the basket itself) and inspect the portafilter spring. Takes 20 minutes.
If you skip the weekly, the daily stops working. Oils build up faster than rinsing removes them, and within a month you’re tasting last week’s coffee on top of this morning’s.
The daily routine
After you pull a shot:
- Knock the puck out into a knock box. One firm tap. If the puck sticks, it’s usually because the basket is nearly dry; a quick rinse first loosens it. Don’t bang the portafilter on the rim of a sink or the trash can: the impact bends the basket lip and warps the spouts.
- Wipe the basket dry with a microfiber cloth. You want to remove the thin film of grounds clinging to the walls before they dry into a crust. Five seconds.
- Flush the group head for 2 to 3 seconds with the portafilter out. This rinses the shower screen, which catches as much oil as the basket does.
- Rinse the basket and spouts under hot tap water. Run water through the basket from the top so it exits the spouts; this clears any grounds that migrated into the spout tubes.
- Lock the portafilter back into the group (or set it on a towel, your call on gasket life vs. thermal mass; see the FAQ).
What it looks like when you skip this: the next shot sputters and sprays from the bottom of the basket because dried grounds in the spouts disrupt the flow. People often blame this on grind or distribution. It’s a dirty spout.
The weekly deep clean
This is the one most people skip, and it’s the one that matters most for taste.
You need: Cafiza (or Urnex, Pulycaff, JoeGlo; same chemistry), a heatproof container (a Pyrex measuring cup works), hot water, and 15 minutes.
The process:
- Pop the basket out of the portafilter. Most baskets are held in by a c-clip spring. Pry the basket out with a butter knife at the top edge. If yours has never come out, it’ll be stiff the first time; that’s normal.
- Fill the container with hot tap water, around 1 to 1.5 cups. Add half a teaspoon of Cafiza. The water should be hot to the touch but not boiling; boiling water can warp some plastic handle inserts.
- Submerge the basket fully. Submerge the metal head of the portafilter, but keep the wooden or plastic handle out of the water. Cafiza-soaked water will swell wooden handles and dull plastic ones over a few cycles. Lean the portafilter against the side of the container so the handle stays dry.
- Wait 15 minutes. The water will turn brown within the first minute. That brown is dissolved coffee oil. If it doesn’t turn brown, your Cafiza is old or you didn’t use enough.
- Scrub the basket with a soft brush, paying attention to the underside (where the holes are) and the inside walls. Scrub the inside of the spouts with a small bottle brush if you have one.
- Rinse thoroughly under running water. Cafiza residue is alkaline and tastes soapy if you don’t rinse it all out. Run water through the basket for at least 20 seconds.
- Reassemble and pull a throwaway shot of water through the empty portafilter to flush the group and the spouts.
If your machine supports backflushing, do it on the same day, with the same Cafiza, using a blind basket. Backflush 5 cycles of 10 seconds on, 10 seconds off, then 5 cycles with plain water to rinse. E61 groups, Linea Minis, most prosumer pump machines support this. Bambinos, Barista Express, and most thermoblock single-boiler machines do not. Backflushing one of those will damage the three-way valve or send cleaner into the boiler. Check your manual.
The quarterly service
Every three to six months, depending on use, the portafilter system has wear parts that need attention. This is also when you descale the machine, the boiler-side half of quarterly maintenance.
Shower screen. The metal disc inside the group head, held by a single screw. Unscrew it, soak it in Cafiza alongside the basket, scrub. Replace it (around $10) once a year, or sooner if it’s visibly pitted. A clogged shower screen causes uneven extraction across the puck face.
Group gasket. The rubber ring the portafilter seals against. Lifespan is 12 to 18 months on a daily-use home machine. Symptom of a worn gasket: water leaks from the sides of the portafilter during a shot, or the portafilter handle creeps past 6 o’clock when you lock it in. Replacement is $5 and requires a gasket pick to lever the old one out.
Basket. Baskets wear out. The holes enlarge unevenly over years of use, which destroys extraction consistency. If your dialed-in shots have started gushing for no reason and a Cafiza soak didn’t fix it, replace the basket. A precision basket (IMS, VST) is $30 and a noticeable upgrade over the stock basket on most machines anyway.
Spring inside the portafilter. The c-clip that holds the basket. If your basket falls out when you knock the puck, the spring has lost tension. Replace it ($3) rather than fighting it.
Common mistakes
Using dish soap as a substitute for Cafiza. Dish soap is designed to cut grease through emulsification, not dissolve baked-on coffee oils, and the surfactants leave a residue that taints the next several shots. Cafiza is sodium percarbonate plus alkaline builders; it chemically breaks down the oils. They’re not interchangeable.
Soaking the wooden handle. Wood swells, the threaded insert loosens, and eventually the handle wobbles or splits at the ferrule. Once a wooden handle has been waterlogged, you can’t undo it. Keep the handle dry.
Scrubbing with a metal brush or scouring pad. Portafilters are chrome-plated brass. Scratching the chrome exposes the brass, which then corrodes and can leach into your shot. Soft plastic bristles only.
Backflushing a machine that can’t be backflushed. This is the most expensive cleaning mistake on this list. Pressurizing the closed group on a thermoblock machine drives Cafiza past the three-way valve into places it shouldn’t go. If your machine doesn’t have a three-way solenoid valve, you cannot backflush. When in doubt, don’t.
Leaving the puck in for hours. A wet puck against a hot group breeds bacteria and bakes the grounds onto the basket walls. Knock it out within a few minutes of pulling. If you forget overnight, the basket needs a Cafiza soak before its next shot, not just a rinse.
Troubleshooting
My shots have started tasting muddy or “old,” but I clean every day. You’re skipping the weekly soak. Daily wiping doesn’t remove oil from the holes in the basket; only an alkaline cleaner does. Do one Cafiza soak and taste the next shot. If that fixed it, the weekly is now a permanent part of your routine.
The basket is stuck in the portafilter; I can’t get it out. First-time removal is often stiff because of years of compressed coffee residue. Soak the whole portafilter (handle out of the water) in Cafiza for 30 minutes first. The residue softens and the basket pops out with a butter knife at the top edge. Don’t pry from the bottom; you’ll bend the spouts.
Water leaks from the side of the portafilter during a shot. Group gasket is worn or your basket is over-dosed and the puck is hitting the screen. Try a smaller dose first (down 1 g). If it still leaks, replace the gasket. Don’t ignore it; the leak gets worse, and a fully blown gasket can spray hot water sideways.
The basket holes look fine but extraction is uneven. Hold the basket up to a strong light and look at the underside. If the light pattern through the holes isn’t symmetric, the holes have worn unevenly and the basket is done. New basket. This is more common than people think on stock baskets after 18+ months of daily use.
Cafiza residue is making my shots taste soapy. You didn’t rinse enough. Run water through the empty portafilter for 30 seconds, then pull two throwaway water-only shots through the group with the basket and portafilter installed. Taste should return to normal by the third real shot. If not, the residue is in the group; pull water-only shots until it clears.
Frequently asked
How often do I really need to deep clean the portafilter?
Once a week for daily users, once every two weeks for weekend-only users. The puck residue you can't see (oil baked into the basket holes) is what stales your shots, and it accumulates whether you wipe or not.
Can I put the portafilter in the dishwasher?
No. Dishwasher detergent is harsh enough to pit chrome plating and dull the wooden or plastic handle. Heat cycles also loosen the handle over time. Hand wash, always.
Why does my basket smell rancid even after rinsing?
Coffee oils oxidize and go rancid in the basket holes. Water rinses surface grounds but doesn't dissolve oil. You need a Cafiza soak (15 minutes in hot water) to actually remove it. If the smell persists after a soak, replace the basket; some are too far gone.
Should I leave the portafilter locked in the group between shots?
Yes for thermal stability (the portafilter stays hot), no for gasket life (constant compression wears the group gasket faster). Most home users pull a few shots a day; lock it in. If you only pull one shot a day, leaving it out is fine.
Is vinegar okay for cleaning the portafilter?
No. Vinegar (acetic acid) reacts with brass and can leach metal into anything brewed afterward. It also doesn't dissolve coffee oils, which are the actual problem. Use Cafiza or an equivalent alkaline coffee cleaner; that's what these powders are formulated for.