The fastest way to replace a sky in Photoshop
Open your photo in Photoshop, then use the Select Subject tool to isolate the sky, or use Select and Mask to refine the edge where sky meets landscape. Once the sky is selected, delete it or add a new sky layer underneath. The whole process takes 5 to 15 minutes depending on how clean your horizon line is.
Photoshop has several ways to do this — some faster, some more precise. The method you choose depends on whether your photo has a sharp horizon (easier) or trees and buildings cutting into the sky (harder). This guide walks you through the most practical approach for each situation.
Key Takeaways
- The Select Subject tool works fastest on photos with a clear horizon line between sky and landscape.
- For complex edges like trees or buildings, use Select and Mask to refine the selection before you delete the old sky.
- You can delete the sky and add a new layer underneath, or use a sky image as a replacement layer directly.
- Feathering your selection by 2 to 5 pixels prevents a hard, unnatural edge where the new sky meets the landscape.
- If the new sky looks too bright or too dark, adjust its opacity or use a layer mask to blend it in gradually.
Selecting the sky with Select Subject
Start with your photo open in Photoshop. Go to the top menu and click Select, then choose Subject. Photoshop will automatically detect and select the main subject of your photo — usually the landscape or people in the foreground. This leaves the sky unselected, which is the opposite of what you want.
Once the subject is selected, go back to Select and click Inverse. This flips the selection so that the sky is now selected instead of the landscape. You should see the marching ants (the animated dotted line) around the edge of your sky.
If the selection includes parts of the landscape or misses parts of the sky, do not delete yet. Move to the next section to refine the edge. If the selection looks clean and accurate, you can proceed to delete the sky or add a new one.
Refining the edge with Select and Mask
With your sky still selected, go to Select and click Select and Mask. A new workspace opens where you can see your selection more clearly and adjust it. The view automatically switches to show the selected area (the sky) in white and the unselected area (the landscape) in black, though you can change this view using the buttons at the top right.
Use the Refine Edge Brush (the second tool in the left panel) to paint along the horizon line. Paint over any landscape that got included in the sky selection, or paint over any sky that was left out. The brush automatically adjusts the selection as you work. For a softer, more natural blend, increase the Feather slider to 2 to 5 pixels — this creates a gradual transition instead of a hard edge.
When the selection looks right, click OK to apply it. You are now back in the main Photoshop window with your refined sky selection active.
Deleting the old sky
With the sky selected, press Delete on your keyboard. The sky disappears, leaving a transparent layer (shown as a checkerboard pattern in Photoshop). If your image is a flat background layer instead of a layer with transparency, Photoshop will ask what color to fill the deleted area with — choose white or any neutral color, since you will cover it with a new sky anyway.
If you made a mistake and deleted the wrong area, press Ctrl+Z (Windows) or Command+Z (Mac) to undo, then try again. Make sure your selection is correct before you delete.
Adding a new sky layer
You now have two options: create a new sky from scratch, or use an existing sky image. For a new layer, click the New Layer button at the bottom of the Layers panel (it looks like a blank square). Drag this new layer below your landscape layer in the Layers panel so the landscape sits on top of the sky.
Fill this new layer with a sky color or gradient. Go to Edit, click Fill, and choose a color. For a more realistic sky, use the Gradient Tool from the left toolbar — select a blue-to-white gradient and drag it from the top of the canvas downward to create a sky that is darker at the top and lighter near the horizon.
If you want to use an existing sky photo, open it as a new layer instead. Go to File, click Open as Layers, and select your sky image. Resize it to fit your canvas using Edit > Free Transform, then drag it below your landscape layer.
Blending the new sky with the landscape
Once your new sky is in place, look at where it meets the landscape. If there is a visible hard line or color mismatch, you can soften it. Select your landscape layer (the one on top), then go to Layer and click Layer Mask > Reveal All. This adds a layer mask to your landscape layer.
Select the Gradient Tool from the left toolbar and make sure your foreground color is black and your background color is white. Drag the gradient from the horizon line upward across the top of your image. This creates a gradual fade so the new sky blends smoothly into the landscape instead of showing a hard edge.
If the new sky looks too bright or too dark compared to the landscape, select the sky layer and adjust its Opacity slider in the Layers panel. Lowering the opacity makes it more transparent and less dominant. You can also use Image > Adjustments > Brightness/Contrast to match the sky's tone to the rest of the photo.
Fixing common mistakes
If the new sky looks too sharp or unrealistic, go back to Select > Select and Mask on your landscape layer and increase the feather value to 8 to 12 pixels. This softens the transition. If the edge still looks wrong, use the Clone Tool or Healing Brush to manually blend any remaining hard lines.
If the new sky does not match the lighting of the landscape — for example, the landscape is lit from the left but the sky looks like it is lit from above — you may need to rotate or flip the sky layer. Select the sky layer and go to Edit > Transform to rotate, flip, or adjust it. You can also use Image > Adjustments > Hue/Saturation to shift the sky's color to match the overall tone of your photo.
If you see halos or fringing around trees or buildings, this usually means the feather value was too high. Undo the last few steps, reduce the feather to 1 to 3 pixels, and try again.
Frequently Asked Questions
Can I use a sky from a different photo?
Yes. Open the sky photo as a new layer using File > Open as Layers, then resize and position it below your landscape layer. You may need to adjust the brightness, contrast, or color to match the original photo's lighting.
What if my horizon line is not straight?
Use the Crop Tool before you start, or use Image > Image Rotation > Arbitrary to rotate the entire image slightly. Straighten the horizon first, then proceed with sky replacement.
How do I make the new sky look natural?
Match the brightness and color of the new sky to the landscape. If the landscape is warm-toned, add warmth to the sky using Image > Adjustments > Color Balance. Feather the edge by 2 to 5 pixels and lower the sky layer's opacity slightly if it looks too solid.
Can I undo the sky replacement after I save?
Only if you save as a Photoshop file (.psd) with layers intact. Once you flatten the image or export as .jpg, the original sky is gone. Always keep a layered .psd version as a backup before you flatten.
What if Select Subject does not work on my photo?
Try the Quick Selection Tool instead. Click and drag along the horizon line to manually select the sky, then refine the edge using Select and Mask. For very complex edges, use the Pen Tool to draw a precise path around the landscape.