[ AdSense leaderboard ]
Tutorial

Sky Replacement in Photoshop

5 min read · Intermediate · Updated 2026-10-20

A flat overcast sky can sink an otherwise great landscape photo. Photoshop has shipped with a built-in Sky Replacement feature since 2020, and it works well for 80% of cases. For the other 20% (mismatched lighting, complex foregrounds, dramatic edits), the manual method gives you full control.

This tutorial covers both. Start with Method 1 because it is fast. If the result does not match your vision, fall back to Method 2.

Method 1: Edit > Sky Replacement (the fast path)

The screenshots in this tutorial were taken in Photopea, a free browser-based editor whose tools and shortcuts work much like Photoshop's. Demo photos by Andrew Ridley and Nicholas Swanson on Unsplash.

Step 1: Open your image and run Sky Replacement

Photopea Edit menu, which has no Sky Replacement command

Open your photo. Go to Edit > Sky Replacement. Photoshop opens a dialog with a default sky preset already applied so you can see the effect immediately.

Using Photopea? There is no Sky Replacement command, as its Edit menu above shows, so use Method 2 below. The screenshots for Steps 2 to 5 show the Photopea equivalent of each setting.

Step 2: Pick a sky preset that matches your scene

A blue sky photo placed as a new layer below the masked hillside, with Free Transform handles for resizing

Click the sky thumbnail at the top of the dialog to open the preset picker. Adobe ships three categories: Blue Skies, Spectacular, and Sunsets. Pick a preset that roughly matches the time of day in your foreground. Match the direction of the original light if possible.

Using Photopea? There is no preset gallery. Place your own sky photo (File > Open & Place), move it below the foreground, and press Ctrl + T to size and position it.

Partner

Want a structured Photoshop course?

Tutorials like this one cover individual techniques. A complete Udemy course walks you from selections and layers through retouching and compositing in one structured path. Often on sale from $14.99.

Browse Photoshop courses on Udemy
Premium assets

Want premium sky packs?

Envato Market has high-resolution sky photo packs and replacement-ready PSDs from professional photographers. Useful when Photoshop's built-in skies do not match the lighting in your foreground.

Browse premium sky packs

Step 3: Tune the edge with Shift Edge and Fade Edge

Select, Modify submenu with Border, Smooth, Expand, Contract and Feather for adjusting the edge of the sky selection

Shift Edge moves the boundary between sky and foreground inward or outward. Use a small negative value to pull the edge slightly into the sky and avoid haloing on tree branches. Fade Edge softens the transition. Both sliders default to zero, which is rarely correct. Spend 10 seconds adjusting.

Using Photopea? There are no Shift Edge or Fade Edge sliders. Before you add the mask, Select > Modify > Contract does the job of a negative Shift Edge, and Feather does the job of Fade Edge.

Step 4: Match foreground lighting with Color Adjustment

Photo Filter adjustment in a cool blue at 30 percent density, clipped to the Foreground layer to match the new sky

The most common Sky Replacement giveaway is a foreground that does not match the new sky's color temperature. Drag the Color Adjustment slider up to about 50%. Photoshop tints the foreground to pick up the dominant hue from the new sky. A blue sky cools the foreground. A sunset warms it.

Using Photopea? There is no Color Adjustment slider. Add a Photo Filter adjustment layer in the color of the new sky, clip it to the foreground (right-click it and choose Clipping Mask) and set Density to around 20 to 40%.

Step 5: Output to a new layer group

Finished sky swap with the new sky, the masked foreground and the clipped Photo Filter on separate layers

Set Output To at the bottom of the dialog to New Layers. Click OK. Photoshop drops a layer group called "Sky Replacement Group" containing the sky, a foreground luminance adjustment, and a foreground color adjustment, each on its own layer with its own mask.

This is the trick. Because every adjustment lives on its own layer, you can fine-tune any one of them independently after the dialog closes.

Using Photopea? Working by hand, you already have separate layers: the sky, the masked foreground and the clipped color adjustment, as shown above.

Method 2: Manual sky replacement (full control)

Use this when the built-in feature picks a bad mask edge or when you want a custom sky photo.

Step 6: Select the sky with Select > Sky

Color Range dialog sampling the overcast sky, with the selection preview showing the sky in white

Run Select > Sky. Photoshop's machine learning model creates a marching-ants selection of just the sky pixels. This is usually 90% of the way there.

Using Photopea? Select > Sky does not exist. Select > Color Range, shown above, works well on plain skies: click the sky, then use + to add more of it. Select > Magic Cut is an alternative for busier skies.

Step 7: Refine the selection in Select and Mask

Refine Edge workspace with white, gray and black brushes and a live preview of the sky selection

Click Select and Mask in the top options bar. Use the Refine Edge brush to repaint over treelines, hair, and any thin foreground details. Output to a layer mask on the original photo's layer.

Using Photopea? There is no Select and Mask workspace. Select > Refine Edge, shown above, works differently: paint white over what to keep selected, gray over the edge zone and black over what to drop. Set the output to Selection, then invert the selection and add a layer mask to keep the foreground.

Step 8: Drop your replacement sky underneath

New Sky layer placed below the masked Foreground layer, leaving a transparent strip at the top to fill by resizing

Place your replacement sky on a layer below the masked foreground. Resize and position it. Add a Hue/Saturation adjustment layer clipped to the sky to dial in the color temperature. Add a Curves adjustment clipped to the foreground to nudge its tones to match.

Pro tip: light direction is everything

The fastest way to spot a fake sky is mismatched light direction. If the original sun lit your subject from the left, your replacement sky must also have its light source on the left. Rotating the sky horizontally with Edit > Transform > Flip Horizontal often saves a replacement that otherwise looks off.

Common gotchas

Do not use Sky Replacement on photos with reflective surfaces (water, wet streets, glass). The sky in the reflection still shows the original sky and the disconnect is jarring. For those photos, you have to manually paint the reflection too, which is a much longer process.

If your photo was shot with a polarizer, the original sky is darkest at 90 degrees from the sun. Your replacement sky needs the same darkness gradient or it looks fake.

When sky replacement actually improves a photo

Replacing a sky is the right move when the original sky is the only weak element of an otherwise strong photo. A great architectural shot ruined by flat white overcast. A travel photo of a landmark you will never visit again, taken on the one cloudy day of the trip. A drone shot where the light on the ground is perfect but the sky reads as featureless gray. In each case, the rest of the image earns the replacement.

It is the wrong move when the photo is honest documentation, when the sky is meaningfully part of the scene (a storm photo, a sunrise where the colors are the subject, a snowstorm landscape), or when the lighting in the foreground is so specific to the original sky that no replacement will match. Real estate, travel marketing, and stylized landscape work are the genres where sky replacement consistently pays off.

Common mistakes that produce obvious fakes

The most damaging mistake is light direction that does not match the foreground. If your original sun lit the subject from the upper right, your replacement sky needs its brightest section in the upper right too. Otherwise the shadows in the foreground point one way and the light in the sky points another, and any viewer notices instantly even if they cannot articulate why. Use Edit > Transform > Flip Horizontal on the sky layer if the brightest area is on the wrong side.

The second mistake is skipping color cast matching. A sunset sky bathes the entire landscape in warm light in real life. Drop a replacement sunset sky in without warming the foreground and the image reads as a composite. The Color Adjustment slider in the built-in dialog handles this when you set it to around 50%; if you work manually, add a Curves or Photo Filter adjustment layer clipped to the foreground.

The third mistake is ignoring polarizer patterns. Photos shot with a circular polarizer have a darkest zone at 90 degrees from the sun, often producing an uneven blue. If you replace that sky with a clean even sky, the eye expects the original polarizer pattern to still be there and the replacement reads as wrong. Either pick a replacement sky with similar variation or apply a subtle radial gradient over the sky to mimic the polarizer.

The fourth mistake is using the same replacement sky across an entire project. Viewers absorb visual style faster than designers expect. If five photos in a row use the same dramatic cloud formation, the whole set reads as fake. Vary the skies, even if subtly.

Adapting the method to specific photo types

For real estate photography: keep the replacement sky understated. Buyers want to imagine themselves in the house, not in a movie set. A clean blue sky with light clouds reads as "nice day," which is exactly what real estate wants. Save the dramatic sunsets for editorial or fine art.

For drone shots: the high altitude means more atmospheric haze in the original, and the replacement needs to match. Add a slight blue tint and a faint Gaussian blur to the lowest portion of the replacement sky so it dissolves into the horizon naturally rather than presenting a sharp edge.

For low-angle shots with foreground silhouettes: the foreground is usually pure black, which means there is no color contamination to match. The sky replacement is dead easy. Use the technique freely. These shots benefit most from dramatic skies.

For batch work across an entire shoot: build a small library of 8-10 replacement skies that you reuse across projects, organized by time of day and weather. When you need a sky, you grab from a known-good set rather than searching stock photography mid-edit. After a year, the library becomes your visual signature.

Frequently asked questions

Is Photoshop's built-in Sky Replacement good enough, or should I always do it manually?

For most photos, the built-in feature is good enough, and the time saving is significant. Reach for the manual method when the automated mask edge is wrong (common around treelines, hair, or thin foreground elements) or when you want a sky photo Adobe does not ship.

Where do I get good replacement skies?

Adobe ships a reasonable starter set. Beyond that, the best source is your own camera. Every time you see a great sky, photograph it (just the sky, exposed for the sky) and add it to your library. Stock sites like Unsplash, Pexels, and the paid Envato Market all have sky packs of varying quality. Buying a curated pack pays off if you do this work often.

Can I do sky replacement on mobile?

Only partly. Lightroom mobile can select the sky and adjust it with a mask, but it cannot swap in a new sky, and Snapseed has no sky replacement. Some third-party mobile editors offer one-tap sky swaps with limited control. For a real replacement, use desktop Photoshop, or the manual method on a computer in any editor with layers and masks.

How do I avoid the haloing along treelines?

Two settings together usually fix it: Shift Edge at -2 to -5 and Fade Edge at 5-10. If the halo persists, switch to manual masking with Select > Sky, refine the tree edges in Select and Mask using the Refine Edge brush, and turn on Decontaminate Colors in its Output Settings. Five extra minutes there saves the photo.

Related tutorials

[ AdSense leaderboard ]
Free Download

Get the Photoshop shortcuts cheat sheet

Every shortcut you'll actually use, on a single printable page.