Download Sample Images
Download Assets
This tutorial includes sample images and a PDF guide. Downloads are free with a PHLEARN account.
- Free sample files with every tutorial on PHLEARN
- New tutorials published every week
- Unlimited downloads with your free PHLEARN account
Description
2020 Edition
This lesson is from the original 30 Days of Photoshop. Photoshop has changed a great deal since — there is an updated version of this lesson in the 2025 Edition: How to Replace a Sky in Photoshop, Day 27.
Nothing is worse than a landscape photoshoot when the weather doesn’t cooperate. But if you end up with a sky that’s gray and dreary, you can swap it with one full of color and detail in Photoshop! Learn how to make a selection of a landscape, bring in a new sky, and then match the color and lighting to tie it all together. Picture-perfect landscapes, every time!
This is Day 30 of our 30 Days of Photoshop series. Follow along with all 30 episodes as we explore the the magic of Photoshop together!
Continue Watching 30 Days of Photoshop
Enjoying This Free Tutorial?
We publish a new free tutorial every week, each one with sample images and PSDs you can download and follow along with. Sign up and they land straight in your inbox, along with early word on sales, events and subscriber-only offers.


How to Replace a Sky in Photoshop
A dramatic sky can transform a landscape, and Photoshop makes swapping one in surprisingly manageable when both photos start as RAW files. In this final lesson of the series you will process two RAW images in Adobe Camera Raw, bring them into Photoshop as Smart Objects, select and mask the sky, refine the edge with Select and Mask, and then, most importantly, match the light and color of the new sky to the foreground so the composite looks real.
The two sample images were shot at the same location with a similar focal length, one before sunrise for the sky and one shortly after for the sunlit mountains. Matching perspective like that makes the swap far more convincing.
Process Both RAW Files
-
Open Both DNGs in Camera Raw
Open the two DNG files together; they launch directly into Adobe Camera Raw. Shift-click to select both, go to Lens Corrections and check Enable Profile Corrections.
-
Edit the Sky Image
Select just the sky image. Raise Vibrance, nudge Exposure up, and balance Highlights and Shadows to taste. Add a Graduated Filter from the top down, zero its settings, then lower Exposure slightly and cool the temperature a touch to even out the top of the sky.
-
Edit the Foreground Image
Select the mountain image and lift the Shadows a little. It needs very little else.
-
Set the Workflow Options
Click the workflow link at the bottom of the window. Choose Adobe RGB (1998), 16 Bits/Channel, and check Open in Photoshop as Smart Objects. Select both images and click Open Objects.
Combine the Images and Select the Sky
-
Stack the Sky Over the Foreground
With the Move Tool (V), drag the sky Smart Object into the foreground document and close the original. Lower the sky layer’s opacity temporarily so you can position it: the new sky should fill the frame and its horizon should sit below the tops of the foreground mountains. Return opacity to 100 percent.
-
Select the Original Sky With the Magic Wand
Hide the new sky layer, select the foreground layer and press W for the Magic Wand. Hold Shift and click several times across the sky. Always select the simpler element; a plain sky is much easier than a jagged mountain range.
-
Load the Selection as a Mask
Turn the new sky layer back on, select it and click the Add Layer Mask button. The new sky now shows only where the old one was.
-
Clean Up the Mask
Alt/Option-click the mask thumbnail to view it. Use the Marquee or Lasso tools to select any missed patches and press Shift + Delete to fill with white (reveal sky) or black (reveal mountains). Zoom in and check the entire edge; small peaks the wand skipped can be traced with the Lasso and filled with black.
Refine the Edge With Select and Mask
-
Open Select and Mask
Click the layer mask and go to Select > Select and Mask. Set the View to On Layers so you can judge the edge against the real composite.
-
Feather, Contrast and Shift Edge
Add a little Feather to soften the hard wand edge, raise Contrast to keep it defined, and use Shift Edge to pull the mask in or out until the fringe along the ridgeline disappears. Too much feather loses the detail that makes the edge look real, so keep it modest.
-
Output and Repeat if Needed
Set Output To Layer Mask and click OK. If part of the edge still needs help, run Select and Mask again with small adjustments. This same process works for trees and other complex edges.
Match the Light and Color
The sky lights everything beneath it, so a dark blue sky over a warm, sunlit foreground will never look right. Because both layers are Smart Objects, you can keep returning to Camera Raw until they agree.
-
Brighten and Warm the Sky
Double-click the sky Smart Object thumbnail to reopen Camera Raw. Raise Exposure, then add Graduated Filters to brighten the lower sky where the sun would be. In the HSL panel lower the saturation of the blues. Warm the Temperature until the clouds pick up reds and yellows that echo the sunlit peaks, then raise Vibrance and Saturation to match the foreground’s intensity. Click OK after each round and judge the composite.
-
Reposition the Sky Independently
Click the chain icon between the sky layer and its mask to unlink them, then press Ctrl/Cmd + T to move or stretch the sky itself while the mask stays put. Skies allow a fair amount of leeway here.
-
Darken the Top of the Sky
Back in Camera Raw, add a Graduated Filter from the top with lowered Exposure and Contrast so the upper sky has the same weight and definition as the original, which helps the mountains sit naturally against it.
-
Warm the Mountains to Match
Double-click the foreground Smart Object, choose the Adjustment Brush, zero its settings, and paint over the peaks and ridges nearest the sky. Raise Temperature and a little Exposure so the warm light from the new sky appears to fall on the land. Repeat on other faces of the mountains as needed. You are effectively painting light.
-
Final Edge Pass
If the ridgeline still looks slightly cut out, open Select and Mask once more and add a hint of feather. Toggle the sky layer off and on to compare before and after.
Key Takeaways
- Choose a replacement sky shot from a similar location, angle and focal length.
- Open both RAW files as 16-bit Smart Objects so you can revisit Camera Raw at any time.
- Select the simpler element (the sky) with the Magic Wand and load it into a layer mask.
- Refine the ridgeline with Select and Mask using Feather, Contrast and Shift Edge.
- Matching brightness, color temperature and saturation between sky and land is what sells the composite.
Related Tutorials
Enjoying This Free Tutorial? Go Further with PRO.
200+ PRO courses. 1,000+ practice files. One membership.
Unlimited access to every PRO course
New PRO courses every month
Layered PSDs and RAW files to follow along
100+ Lightroom Presets, LUTs, Actions and Brushes
Stream in up to 4K, with captions and chapters
Watch on any device: desktop, tablet or phone
4.93 average from 3,900+ reviews · 2M+ students