- Category:
- Background Removal
- Summary:
- Master the eraser tool in Photoshop—all three types (Basic, Background, Magic Eraser)—with settings, shortcuts, fixes for problems like the eraser-paints bug
At a glance The Eraser tool in Photoshop appears in three variants: the basic Eraser (with Brush, Pencil, and Block modes), the Background Eraser (destructive colour‑based removal), and the Magic Eraser (one‑click colour erase). On a Background layer, erased areas fill with the background colour; on an unlocked layer, they become transparent. This guide covers every mode, essential settings, keyboard shortcuts, and fixes for the most common problems — including the “eraser paints instead of erasing” bug.
The Three Photoshop Eraser Tools Serve Different Purposes
When you press E or click the eraser icon in the toolbar, you are actually choosing from three distinct tools grouped together. Each one behaves differently, and knowing which to reach for saves time and prevents accidental data loss.
Basic Eraser — Three sub‑modes (Brush, Pencil, Block). Destructive on unlocked layers — pixels become transparent. On a Background layer, fills with the background colour. Best for quick touch‑ups on separate layers.
Background Eraser — Samples colours under a crosshair and removes similar pixels as you drag. Destructive — pixels are permanently deleted. Three sampling modes: Continuous, Once, Background Swatch.
Magic Eraser — One‑click removal of contiguous (or all) pixels within a colour range. Acts like the Magic Wand but erases instead of selecting. Works well on uniform backgrounds.
Adobe also offers a separate online Photo Eraser that uses AI for quick object removal without opening the desktop app. It accepts files up to 40 MB and 8 000 × 8 000 px. For most precision work inside Photoshop, however, the three built‑in tools covered here are what you will use.

The three eraser variants live under a single icon in the toolbar. Right‑click or long‑press to switch between them.
Note: If you searched for “eraser tool not working” or “eraser paints instead of erasing”, jump ahead to the Troubleshooting section — those fixes are collected in one place.
Basic Eraser Tool — Brush, Pencil, and Block Modes
The basic Eraser is the one most users encounter first. Its behaviour changes depending on which mode you select in the Options bar and whether the active layer is a Background layer or a normal unlocked layer.
The Three Modes and When to Use Each
In the Options bar (visible when the Eraser is active) you can choose from three modes:
- Brush — the most flexible. You can adjust size, hardness, opacity, and flow. Use it whenever you need soft, feathered edges or partial erasing.
- Pencil — creates hard, aliased edges with no opacity variation. Ideal for pixel‑art, linework, or any situation that demands a crisp, single‑pixel boundary.
- Block — a fixed‑size square with no opacity control. A legacy mode from early Photoshop versions; still useful for retro pixel work or when you need a perfectly uniform hard edge.

The Eraser tool in action on a normal layer. The checkerboard pattern indicates transparent areas.
How Eraser Behaves on Different Layers
This is the source of a great deal of confusion. According to Adobe’s official documentation:
- On a Background layer (the default locked layer named “Background”), erased areas fill with the current background colour — typically white. If your foreground colour is black and the layer is locked, the eraser will appear to “paint” black.
- On a normal unlocked layer, erased pixels become transparent, shown as a checkerboard pattern.
Common mistake The “eraser paints black” problem is the most reported user issue in Adobe Community threads. The fix: unlock the layer (Layer → New → Layer from Background) or reset your colour swatches to white. More details in the Troubleshooting section.
Key Settings — Opacity, Flow, Hardness, Size
The Eraser tool shares many settings with the Brush tool. Here is how the most important ones behave:
- Opacity — sets a hard limit per stroke. Releasing the mouse and starting a new stroke resets to the opacity value. A stroke at 50 % opacity will never erase more than 50 % of the pixels, even if you pass over the same area multiple times without releasing.
- Flow — controls how much erasure is applied per brush dab. With flow below 100 %, holding the mouse down and painting over the same spot accumulates erasure, eventually reaching full transparency. This distinction is clearly demonstrated in Michael Brig’s tutorial.
- Hardness — 0 % produces a soft, feathered edge; 100 % produces a hard edge. Adjust it in the Options bar or use the shortcut described below.
- Size — changed with the
[and]bracket keys (source).
To adjust hardness rapidly: Alt + right‑click drag left/right (Windows) or Option + right‑click drag (macOS). This works for the Eraser tool just as it does for the Brush tool.
All Keyboard Shortcuts for the Eraser Tool
| Keyboard shortcut | Description |
|---|---|
E |
Activate Eraser tool |
Shift+E |
Cycle through eraser variants |
[ / ] |
Decrease / increase brush size |
0–9 |
Set opacity in 10 % increments |
Alt+right‑click drag |
Adjust hardness |
Alt / Option + drag |
Erase to History |
Erase to History restores erased pixels to a previous saved state. Hold Alt (Win) or Option (Mac) while dragging over an area that was previously erased, and it will reappear — provided the history state is still available (Adobe HelpX).
Background Eraser Tool — Destructive Background Removal
The Background Eraser is a specialised tool that samples colour from the image and deletes pixels that match within a tolerance range. It is powerful for simple backgrounds but permanently removes pixels — there is no “undo” once the file is saved.
How the Background Eraser Works
A crosshair appears at the centre of the brush. As you drag, the tool samples the colour under the crosshair and erases all pixels within the brush radius that fall inside the set tolerance. The tutorial by Brendan Williams explains the mechanics in detail. Because the tool deletes pixels, it is considered destructive — unlike a layer mask, it cannot be reversed later.
Sampling Modes — Continuous, Once, Background Swatch
The Options bar offers three sampling modes that control when the tool “reads” the colour to erase:
- Continuous — samples a new colour every time the crosshair moves. Use this for backgrounds with multiple colours or gradients.
- Once — samples the colour at the first click only. Ideal for a uniform background that stays the same colour across the image.
- Background Swatch — erases only the colour currently set as the background swatch in the toolbar. Useful when you have a specific colour you want to target and nothing else.
![]()
Selecting the Background Eraser from the tool group. The crosshair in the brush circle is the sampling point.
Why Professionals Often Avoid This Tool
On a Quora thread, an experienced photographer states they “never use any eraser tools” and prefer Select and Mask, the Pen Tool, and layer masks for precise work. Another user describes the Background Eraser as “very flawed, imprecise, and even difficult to use.” The tool works reasonably well on simple, high‑contrast edges — but for fine detail like hair or glass, a non‑destructive approach (layer mask + Refine Edge) produces cleaner, editable results.
When it still makes sense Use the Background Eraser for quick one‑off removals on a separate duplicate layer when the background is a single, solid colour and you do not need to revisit the edit. Just be certain — because it is destructive.
Magic Eraser Tool — One‑Click Colour Removal
The Magic Eraser works like the Magic Wand tool but erases instead of selecting. A single click removes all contiguous pixels within a colour range, turning them transparent (or filling with the background colour on a Background layer).
How It Works
When you click a pixel, the tool evaluates the colour of that pixel and erases all neighbouring pixels that fall within the Tolerance setting. The Adobe Magic Eraser documentation describes it as a time‑saver for removing solid backgrounds — for example, a white backdrop behind a logo.
Tolerance and Contiguous Options
- Tolerance — a low value (10–20) erases only pixels very similar to the clicked colour. A high value (80–100) erases a broader range. Start with 30 and adjust.
- Contiguous — when checked, only pixels that are adjacent to the clicked point are erased. When unchecked, all matching pixels across the entire image are erased. Use contiguous for most tasks to avoid erasing parts of the subject that share the same colour.
Common Problems and Safe Workarounds
The biggest risk with the Magic Eraser is that it can eat into the edges of your subject if the background colour bleeds into the subject’s outline. A safe workflow:
- Duplicate the layer (
Ctrl+J/Cmd+J) so you have a backup. - Apply the Magic Eraser on the duplicate.
- If the result is too aggressive, add a layer mask and paint back any lost areas with a white brush.
For complex subjects with fine edges, avoid the Magic Eraser entirely and use Select and Mask with a layer mask.
Layer Masks vs Eraser — Why the Pros Say “Don’t Erase”
The single most important distinction in this article: the Eraser tool deletes pixels permanently; a layer mask hides them. A mask can be edited, inverted, softened, or discarded at any time — the original image data remains intact.
The Fundamental Difference
Imagine you have erased the sky from a landscape photo, then later realise you need to adjust the horizon. With the Eraser tool, those pixels are gone — you would need to start over. With a layer mask, you simply paint white over the mask to reveal the sky again. An Adobe Community thread from a CS5 user highlights exactly this frustration: the recommended solution was to use a layer mask instead of the Eraser.
When to Use Eraser vs Layer Mask
| Criteria | Eraser tool | Layer mask |
|---|---|---|
| Re‑editability | None — pixels are permanently deleted | Full — paint black/white to hide/reveal |
| Edge softness | Adjustable via brush hardness | Adjustable via brush + mask properties |
| Workflow speed | Fast for simple, one‑time removals | Slightly slower initial setup, but faster overall for revisions |
| File size impact | Reduces file size (pixels removed) | Minimal increase (mask data) |
| Best for | Final export touch‑ups, pixel art, quick masks on duplicate layers | Composites, hair extraction, gradient fades, any work needing revision |
How to Start Using Layer Masks Right Now
- Select the area you want to keep (use any selection tool — Quick Selection, Magic Wand, Pen Tool).
- Click the Add layer mask icon at the bottom of the Layers panel (a circle inside a rectangle).
- A white mask appears next to your layer thumbnail. White areas are visible; black areas are hidden.
- Fine‑tune by painting on the mask with a black (hide) or white (reveal) brush. Use a soft brush for smooth transitions.
For complex subjects — hair, smoke, reflections — use Select and Mask to refine the selection before adding the mask. This produces a much cleaner edge than any eraser tool can achieve.
Pro tip When you need to do a quick cutout and export without losing the original layer, a dedicated Photoshop plugin like Layerbench can run subject selection, create a mask, trim to bounds, and export a transparent PNG in one step — preserving the full PSD for later edits.
Troubleshooting — Why Your Eraser Tool Isn’t Behaving
Based on Adobe Community threads and user reports, these five problems account for nearly all eraser‑tool frustration. Each fix below is tested and concrete.
“Eraser paints instead of erasing”
Cause: The layer is a Background layer (locked) and the foreground colour is set to black (or any colour). The eraser fills with the background colour, which appears to “paint.”
Fix: Unlock the layer (Layer → New → Layer from Background) or set both foreground and background swatches to white (press D then X if needed). Source
“Eraser tool not erasing at all”
Check these in order:
- Is the layer locked? Unlock it in the Layers panel.
- Is transparency locked? Look for the lock icon in the Layers panel — it may be set to “Lock transparent pixels.”
- Is the document in Indexed Color or Bitmap mode? Switch to RGB (Image → Mode → RGB Color).
- Is the tool set to Block mode with zero opacity? Increase opacity in the Options bar.
- Are Opacity or Flow at 0 %? Raise them.
“Eraser tool is grayed out / missing”
Grayed out: The document is in a colour mode that does not support erasing — most commonly Grayscale or Indexed Color. Change to RGB.
Missing from toolbar: The Eraser icon may be hidden under the Background Eraser or Magic Eraser. Right‑click the icon in the toolbar and choose the correct variant. If the entire toolbar is reset, go to Window → Workspace → Reset Essentials.
“Why does my eraser leave black or white marks?”
Same root cause as the “painting” bug. On a Background layer, the eraser replaces erased pixels with the background colour. If that colour is black, you get black marks. Fix: Unlock the layer or change the background colour swatch to white. Quick test: press D to reset colours to default (black foreground, white background), then erase on an unlocked layer — you should see transparency.
“How do I restore accidentally erased areas?”
If you have not closed the file, use Ctrl+Z / Cmd+Z repeatedly to step backward through the History panel. You can also use Erase to History mode (hold Alt/Option while dragging) — but this only works if the history state is still available. To prevent this problem in the future, always work on a duplicate layer or use a layer mask.

Tutorials like this one from Michael Brig walk through the Opacity vs Flow distinction and other key settings.
How to Choose the Right Tool for Your Task
Every eraser tool has a place. The key is matching the tool to the task — and knowing when to step away from erasers altogether and use a layer mask.
Decision Table
| If you need… | Use this… |
|---|---|
| Quick removal of a small area on an unlocked layer | Basic Eraser (Brush mode) |
| Hard‑edge pixel erasing (e.g. pixel art) | Basic Eraser (Pencil or Block) |
| Remove a solid‑colour background (e.g. white behind a logo) | Magic Eraser (with careful tolerance) |
| Remove a varied background around a simple subject | Background Eraser (Continuous mode) |
| Remove a background with hair or complex edges | Layer Mask + Select and Mask (avoid eraser entirely) |
| Free online alternative without installing Photoshop | Adobe’s online Photo Eraser — limited to 40 MB, 8 000 px |
| Automated cutout and export | Dedicated plugins (e.g. Layerbench for subject selection, mask creation, and edge cleanup) |
Quick‑Reference Workflow Matrix
- For repeated edits (composites, client revisions): always use layer masks. The few extra seconds save hours of rework.
- For one‑time final export (a single image that will not be revisited): the Eraser tool is perfectly acceptable. Just duplicate the layer first.
- When in doubt: duplicate the layer before any erasing. A hidden copy costs you nothing and can save a restart.
Final Pro Tip
In the same Quora discussion, a professional photographer noted that they “never use any eraser tools” — because their work involves complex composites where non‑destructive flexibility is essential. That does not mean the Eraser tool is worthless. For simple touch‑ups, rough masks on separate layers, or pixel art, it is often the fastest path to a clean result. Know your use case, and choose accordingly.
Your go‑to default If you only remember one thing from this guide: use a layer mask when you might change your mind; use the Eraser when you are certain. That single habit will eliminate most of the frustration that drives users to search “how to undo eraser tool” in the first place.