The fastest way to add a background depends on what you're starting with

If you have a photo with a subject you want to keep and a background you want to replace, Photoshop can do this in minutes or hours depending on how clean the edge is. If you're starting with an empty canvas and want to add a solid color, gradient, or image as a background layer, that takes seconds. The method you choose depends on whether you're working with an existing photo that needs the background removed first, or building a new composition from scratch.

The most common scenario is removing an unwanted background and replacing it with something else. Photoshop offers several tools for this: the Quick Selection tool for photos with clear edges, the Select Subject feature for portraits, or the Eraser tool for simpler jobs. Once the background is gone, you add a new layer beneath it and fill that layer with color, a pattern, or an image.

Key Takeaways

  • Use Select Subject (Select menu) for portraits and people, or Quick Selection tool for objects with defined edges, to separate your subject from the background.
  • Delete the background by selecting it and pressing Delete, then add a new layer beneath your subject layer to hold the replacement background.
  • Fill a new layer with solid color (Edit > Fill), a gradient (Gradient tool), or paste an image, depending on what background you want.
  • For straightforward backgrounds or when precision doesn't matter, the Eraser tool works faster than selection tools, though it's less precise.
  • Save your work as a PSD file to keep layers separate, then export as JPG or PNG depending on whether you need transparency.

Using Select Subject for portraits and people

The Select Subject feature is the fastest route when your image contains a person or animal. Open your photo in Photoshop, then go to Select > Select Subject. Photoshop analyzes the image and automatically selects the main subject, usually leaving the background unselected.

Once the selection is active, you'll see marching ants (animated dashed lines) around your subject. Go to Select > Inverse to flip the selection so the background is now selected instead. Press Delete to remove the background. If Photoshop deleted your subject instead, undo (Ctrl+Z or Cmd+Z) and skip the Inverse step — your original selection was correct.

The selection won't be perfect at the edges. Use the Refine Edge Brush tool (in the Select and Mask workspace) to clean up stray pixels. Click Select and Mask in the options bar, then paint along the edges where the selection needs adjustment. When you're satisfied, click OK to explore the refined selection, then Delete again.

Using Quick Selection for objects with clear edges

The Quick Selection tool works well when your subject has a defined edge against a different-colored background — a product photo on white, a person against a solid wall, or an object on a textured surface. Find the Quick Selection tool in the toolbar (it looks like a magic wand with a plus sign), or press W.

Click and drag across the background you want to remove. Photoshop selects similar colors as you paint. If it selects too much or too little, hold Alt (or Option on Mac) and paint to subtract from the selection, or paint normally to add to it. Adjust the tool size with the bracket keys: [ to shrink, ] to grow.

Once the background is selected, press Delete to remove it. If the edges are rough, use Select > Modify > Feather (set to 2–5 pixels) before deleting to soften the transition. This prevents a hard, artificial-looking edge.

Adding a solid color or gradient background

After you've removed the original background, create a new layer beneath your subject layer. Go to Layer > New > Layer, or click the new layer icon in the Layers panel. Drag this new layer below your subject in the Layers panel so it sits behind.

To fill it with a solid color, select the new layer, then go to Edit > Fill. Choose Foreground Color, Background Color, or a specific color from the dropdown. Click OK. The entire layer fills with that color.

To create a gradient instead, select the Gradient tool (press G), choose a gradient style from the options bar, then click and drag across the layer from one corner to another. The gradient flows in the direction you drag. You can adjust the gradient before releasing the mouse to change its angle and spread.

Using an image as your new background

If you want to replace the background with another photo or image, open that image in Photoshop as well. Select all of it (Ctrl+A or Cmd+A), copy it (Ctrl+C or Cmd+C), then switch back to your main document. Create a new layer and paste the image (Ctrl+V or Cmd+V). Photoshop creates a floating selection.

Drag this floating selection below your subject layer in the Layers panel. If the background image is smaller than your canvas, use Edit > Free Transform (Ctrl+T or Cmd+T) to resize and position it. Hold Shift while dragging a corner to keep the proportions correct. Press Enter to confirm.

If the background image is larger than your canvas and you want to crop it to fit, right-click the layer and choose Rasterize Layer, then use the Crop tool to trim it. Alternatively, go to Image > Canvas Size and adjust the canvas to match the background layer's size.

Using the Eraser tool for quick, straightforward backgrounds

For images where precision doesn't matter — a casual social media post, a rough mockup, or a photo where the background is already mostly separated — the Eraser tool is faster than selection tools. Press E to select it, choose a brush size from the options bar, and paint over the background you want to remove.

Adjust the hardness of the eraser with the Hardness slider: 0% for a soft, feathered edge, 100% for a sharp edge. Lower hardness looks more natural. You can undo strokes with Ctrl+Z or Cmd+Z if you erase too much. Once you've erased the background, add a new layer beneath and fill it as described above.

The Eraser tool is less precise than selection tools because you're removing pixels by hand, but it's useful when your subject has messy edges (like hair) and you want to preserve some texture rather than create a hard cutout.

Saving your work in layers and exporting the final image

Always save your Photoshop file as a PSD (File > Save As, choose Photoshop format). This preserves all your layers so you can edit the background later without starting over. Name the file something descriptive like "product-photo-bg-removed.psd".

When you're ready to share or print the image, export it as JPG or PNG. Go to File > Export As. Choose PNG if you want to keep the transparent background (the checkerboard pattern Photoshop shows where there's no content). Choose JPG if you want a solid background or if the file needs to be smaller — JPG compresses more than PNG but doesn't support transparency. Set the quality to 80–90% for JPG to balance file size and image sharpness.

Frequently Asked Questions

What if Select Subject doesn't work well on my image?

Select Subject works best on portraits and clear subjects against straightforward backgrounds. If it selects the wrong thing, try the Quick Selection tool instead, or use the Lasso tool (press L) to manually draw around your subject. For very complex images, you might need to combine multiple selection methods or use layer masks instead of deleting the background.

Can I undo a background deletion if I made a mistake?

Yes, as long as you haven't closed the file. Press Ctrl+Z (or Cmd+Z on Mac) to undo the last action. You can undo multiple steps by pressing it repeatedly or by clicking earlier states in the History panel (Window > History). Once you close and reopen the file, undo is no longer available unless you saved a PSD version first.

How do I make the edge between my subject and new background look natural?

Use the Refine Edge Brush tool after making your selection to clean up stray pixels. Feather your selection by 2–5 pixels before deleting (Select > Modify > Feather). If the edge still looks hard, use a soft eraser to manually blend it. For hair or fur, lower the eraser hardness to 0% and paint gently along the edge to create a softer transition.

What's the difference between transparency and a solid background?

Transparency is the checkerboard pattern you see in Photoshop — it means there's nothing there, and whatever is behind the image (a webpage, another layer) will show through. A solid background is a color or image you've added to a layer beneath your subject. Export as PNG to keep transparency, or as JPG to flatten it to a solid color.

Can I add a background to multiple photos at once?

Photoshop doesn't have a batch background replacement feature, but you can create an action to automate the steps. Record yourself removing a background and adding a new one (Edit > Actions > Record), then play that action on other similar photos (File > Batch). This works best when all photos have the same lighting and composition.