The fastest way to change a background in Photoshop
Open your image in Photoshop, then use the Select Subject tool to isolate the person or object you want to keep. Photoshop will automatically detect the edges and select everything except the background. Once the subject is selected, delete the background layer and replace it with a new image, solid color, or transparent layer. The whole process takes about two minutes for a clean photo.
If Select Subject does not work cleanly on your image — which happens with complex backgrounds or soft edges like hair — you can use the Quick Selection Tool or Magic Wand to manually select the background instead, then delete it the same way. For the most control, the Pen Tool lets you draw around the subject by hand, though this takes longer.
Key Takeaways
- Select Subject is the fastest method for most photos and works by automatically detecting the edges of your main subject.
- You must delete the original background layer before adding a new one, or the new background will sit behind the old one.
- If your subject has soft edges like hair or fur, use the Refine Edge option after selecting to smooth out the cutout.
- A new background can be another image, a solid color, or transparency — each requires a different layer type.
Using Select Subject for automatic background removal
Open your image in Photoshop and go to the Select menu at the top. Click Subject. Photoshop will analyze the image and draw a selection around the main subject — usually a person, animal, or object in the foreground. The selection appears as a moving dotted line (called marching ants) around the edges.
Once the subject is selected, invert the selection so you are selecting the background instead of the subject. Go to Select > Inverse. Now the marching ants surround the background. Press Delete to remove it. If you see a checkerboard pattern where the background was, that means the layer is now transparent — which is what you want.
If the selection includes parts of your subject or misses parts of the background, use the Refine Edge option before deleting. Go to Select > Refine Edge and adjust the sliders to smooth the edges and remove stray pixels. This step matters most when your subject has hair, fur, or other soft edges that Select Subject often cuts off too sharply.
Manually selecting the background with Quick Selection or Magic Wand
If Select Subject does not work well on your image, use the Quick Selection Tool instead. Find it in the toolbox on the left side of the screen — it looks like a brush with a dotted circle. Click on the background area and drag slightly. Photoshop will expand the selection to fill similar colors. Keep clicking different parts of the background until the entire background is selected.
The Magic Wand Tool (also called Select by Color) works similarly but selects all pixels of the same color with one click. Use it when your background is a solid color or has large areas of uniform color. Both tools have a Tolerance setting at the top — raise it if the selection is too small, lower it if it selects too much of your subject.
Once the background is selected, press Delete to remove it. If you see rough edges or stray pixels around your subject, use Select > Refine Edge to clean them up before deleting. This prevents the jagged, unnatural look that happens when you cut out a subject too quickly.
Replacing the background with a new image
After you delete the original background, you need to add a new one. Open the image you want to use as the new background. Go to File > Open as Layers and select the background image. Photoshop will add it as a new layer in your original document.
In the Layers panel on the right side, drag the new background layer below the layer containing your subject. The subject should now appear on top of the new background. If the new background is the wrong size, select it and go to Image > Scale Image to resize it to match your original image dimensions.
If the new background does not fit perfectly, use the Move Tool (keyboard shortcut V) to reposition it. You can also use Edit > Free Transform to rotate or stretch the background layer until it looks right. Flatten the image when you are done by going to Image > Flatten Image, which merges all layers into one.
Using a solid color or gradient as the new background
Instead of another image, you can fill the background with a solid color. After deleting the original background, create a new layer by going to Layer > New > Layer. In the dialog that appears, set the Fill with option to the color you want — white, black, or foreground color. Click OK.
Drag this new layer below your subject layer in the Layers panel. The solid color will now appear behind your subject. If you want to change the color later, double-click the layer and choose a different color from the picker that appears.
For a gradient background, create a new layer and select the Gradient Tool from the toolbox. Choose your gradient style from the options at the top, then click and drag across the layer to apply it. Gradients let you blend two or more colors smoothly, which often looks more polished than a flat color.
Keeping the background transparent for other uses
If you delete the background and do not add a new layer, Photoshop leaves the area transparent — shown as a checkerboard pattern. This is useful if you plan to place your subject on different backgrounds later or use it in a design where the background will be added by someone else.
To keep transparency when you save, use File > Export As and save as PNG format. PNG preserves transparency, while JPEG does not. If you save as JPEG, Photoshop will automatically fill transparent areas with white, which defeats the purpose.
Before exporting, make sure you have flattened the image only if you want a final version. If you might need to edit the background again later, save the file as a PSD (Photoshop format) instead, which preserves all layers and transparency.
Fixing rough edges and halos around your subject
When you cut out a subject, you often see a thin halo of the old background color clinging to the edges, or the edges look too sharp and unnatural. Fix this with the Refine Edge tool. Go to Select > Refine Edge while your subject is still selected (before you delete the background).
In the Refine Edge dialog, adjust the Feather slider to soften the edges slightly — usually 1 to 3 pixels is enough. Use Shift Edge to shrink the selection inward slightly, which removes the halo. The Decontaminate Colors option removes color fringing from the old background. Preview the changes in real time by clicking different view options at the top of the dialog.
If you already deleted the background and now see rough edges, you can fix them by hand using the Eraser Tool with a soft brush. Set the brush hardness to 0 and the opacity to 50 percent, then gently erase the rough edges. This takes more time but gives you precise control over which pixels to remove.
Frequently Asked Questions
What if Select Subject does not work on my image?
Select Subject works best on photos where the subject is clearly separated from the background. If it fails, use the Quick Selection Tool or Magic Wand instead. For very complex backgrounds or subjects with fine details like hair, the Pen Tool gives you the most control — you draw around the subject by hand, which is slower but more accurate.
Can I undo a background change if I do not like it?
Yes, as long as you have not closed the file. Use Edit > Undo or press Ctrl+Z (Windows) or Command+Z (Mac) to step backward through your changes. If you have closed and reopened the file, the undo history is gone. Always save a backup copy of your original image before making major edits.
Why does my new background look pixelated or blurry?
This usually means the new background image is a different size than your original. Use Image > Scale Image to resize the background to match your original dimensions. If the background is much smaller than your original, scaling it up will make it look blurry — use a larger source image instead.
How do I save my work so I can edit it again later?
Save as PSD format, which is Photoshop's native format and preserves all layers. Go to File > Save As and choose Photoshop (*.psd) from the format dropdown. This lets you come back later and adjust the background, subject selection, or anything else without starting over.
Can I change the background on a photo with multiple people?
Yes, but Select Subject will select all of them as one group. If you need to separate them or keep only some people, use the Quick Selection Tool to manually select the background around each person. For very precise work, the Pen Tool lets you draw separate selections around each person, though this takes longer.