White lighthouse tower against a partly cloudy blue sky, from a Photoshop tutorial on using the sky replacement tool and picking the right sky.
  • How to Use the Sky Replacement Tool in Photoshop (and Pick the Right Sky)

  • Aaron Nace
    by Aaron Nace
    October 20, 2020
  • Add to
    favorites

Download Sample Images

Download Assets

This tutorial includes 1 sample image, 1 sample PSD and 1 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
Download

Free PDF Guide · 5 Pages

This Tutorial as a Step-by-Step PDF

The 5-page guide walks through reading the shadows to find the sun, Edit > Sky Replacement, Fade Edge and Shift Edge, the brush in the dialog, Brightness, Temperature, Foreground Adjustments and Output To New Layers, then cleaning the Sky mask with an Overlay brush and matching saturation with a clipped Hue/Saturation layer. Keep it next to your keyboard.

Download the PDF Guide · 0.4 MB

description

Sky replacements were once tricky business. You either had to go through the process manually which could take a lot of time and require a lot of surprisingly detailed compositing. Or you could have simplified the process using a third-party plug-in, but that still required you to find tools that exist outside of Photoshop. But luckily, times have changed and sky replacements are now easier than ever!

Learn all about Photoshop’s new automated Sky Replacement Tool which allows you to quickly swap a sky while adjusting things like exposure and color temperature to get a seamless composite. We even take it step further, showing you how to analyze the lighting in a photo so that you can choose a sky that will fit realistically into the scene.

Artist Credit

Image sources from Pexels.

A white lighthouse atop a rocky cliff under a muted, hazy sky, with visitors walking the path below
The same lighthouse view with a vivid blue sky and scattered white clouds replacing the hazy original
AfterBefore

The Sky Lights the Ground — Which Is Why Most Sky Replacements Fail

Photoshop’s built-in Sky Replacement is genuinely excellent. It finds the horizon, masks around fine detail, relights the foreground and outputs the whole thing as editable layers. The technical problem is essentially solved.

Which leaves the part no tool can do for you: choosing a sky whose light agrees with the photograph you’re putting it into. Get that wrong and a technically flawless composite still looks wrong, and you won’t be able to say why.

A lighthouse photograph before its sky is replaced in Photoshop

Read the Shadows Before You Open the Tool

Analysing the direction of shadows in a photograph to determine where the sun is

Shadows tell you two things, and both constrain your choice of sky.

Direction

Find a shadow with a clear edge and note which side of the object it falls on. A shadow on the right means light from the left. Then look at several shadows together — a railing, a building edge, a post — and notice they all run at the same angle. Trace that angle back and you have the sun’s position, even when the sun is outside the frame.

In the example, the shadows fall right and run at a consistent angle, placing the sun off-camera to the upper left. Any replacement sky has to put its brightest area in roughly that position. A beautifully composited sky with the sun on the wrong side reads as fake no matter how perfect the mask is.

Quality

Hard-edged shadows mean a small, bright, direct source — a clear sunny day. Soft, diffuse shadows mean a broad source — overcast cloud.

This rules things out immediately. A photograph with crisp shadows cannot take a heavy overcast sky, because an overcast sky physically cannot produce those shadows. And a sunset sky is wrong for a scene whose shadows are short and steep, because short shadows mean a high sun and a sunset means a low one.

Sky replacement is compositing, and compositing is a lighting problem before it is a masking problem.

Running the Sky Replacement Tool

The Sky Replacement dialog in Photoshop with the built-in sky presets

  1. Duplicate the background layer

    Cmd/Ctrl + J. Aaron recommends working on a copy.

  2. Edit › Sky Replacement

    Note it’s under Edit, not Filter — which is where most people look first.

  3. Click through the bundled skies

    Three folders: Blue Skies, Sunsets and Spectacular. You can load your own. The defaults are good enough that clicking through is often all it takes.

  4. Judge each against your shadow analysis

    Look at where the highlights fall on the clouds. A sky lit from its upper left belongs in a scene lit from the upper left.

A blue sky option applied to the lighthouse image, matching the original light direction

Cmd/Ctrl + + zooms in and the spacebar pans, so you can inspect edges without leaving the dialog. The preview toggle shows before and after.

The Settings Worth Understanding

The edge, brightness and temperature controls in Photoshop's Sky Replacement dialog

Shift Edge and Fade Edge

Two sliders controlling where the mask sits and how softly it transitions. Shift Edge moves the boundary in or out — useful when a halo of old sky survives around a rooftop. Fade Edge softens it.

The Sky Brush

The brush built into the dialog (Aaron calls it the refine edge brush). Paint to add sky where the automatic mask missed; hold Alt/Option to remove it where it went too far. Handy for gaps between railings and similar detail.

Brightness and Temperature

These matter more than they look. A dark sky above a brightly lit building is instantly wrong — the highlights don’t agree. Match the sky’s brightness to the highlights already in your scene, then use Temperature to bring its warmth in line with the original.

Flip

Mirrors the sky horizontally. This is often the fastest fix for a sky that’s right in every way except that its brightest area is on the wrong side.

Foreground Adjustments — open this section

It’s collapsed by default and it’s where the relighting lives. Lighting Mode offers Screen or Multiply: the tool takes a copy of the background and places it over the sky. Aaron’s advice is to use whichever one looks better; it is different for every image, and on this photo it was Screen. Below that, Lighting Adjustment and Color Adjustment set how strongly the sky’s light and color carry into the scene.

Skipping this section is the most common reason a technically clean replacement still looks pasted on.

Output as New Layers

The Sky Replacement output shown as an editable group of layers and masks in Photoshop

At the bottom of the dialog, Output To offers New Layers or Duplicate Layer. Aaron chooses New Layers. That’s his preference.

You get a Sky Replacement group containing the sky itself, a sky temperature adjustment, foreground lighting and foreground color — each as a real adjustment layer with its own mask. Every decision you made in the dialog remains editable afterwards.

So if the sky came out too dark, you don’t reopen the tool — you adjust the brightness layer. If a mask edge is rough, you paint on that mask. This is exactly how an automated tool should behave, and it’s what makes this better than most alternatives.

Cleaning Up the Mask with an Overlay Brush

Painting on a layer mask with the brush blend mode set to Overlay to refine edges

An automatic mask will never be perfect. There’s a technique that cleans edges far better than ordinary brushing.

  1. Alt or Option-click the mask thumbnail

    Shows the mask itself, so you can see the fuzzy areas.

  2. Take a large soft brush and set its blend mode to Overlay

    The brush’s blend mode, not the layer’s. It’s in the options bar at the top.

  3. Paint white to push light areas to pure white

    Overlay makes lights lighter and darks darker while leaving the opposite alone — so painting white on a mostly-white area cleans it to solid white without bleeding across the boundary into the black.

  4. Switch to black and do the same on the dark areas

    The edge tightens from both sides while staying in the right place.

  5. Set the brush blend mode back to Normal

    Do this immediately. Leaving it on Overlay and then wondering later why the brush appears to do nothing on a new layer is a genuinely common and very confusing mistake.

Matching Saturation with a Clipped Adjustment

A clipped Hue Saturation adjustment layer matching the new sky to the original photo

Turn the Sky Replacement group off and on and you can see the original sky wasn’t very saturated, so a vivid new sky above it gives the game away.

Add a Hue/Saturation adjustment layer above the sky and clip it — click the clipping icon in the Properties panel and a small down-arrow appears, meaning it now affects only the layer beneath it.

Then bring Saturation down to match the original image rather than up to make the sky impressive. You can nudge Hue as well — a little cyan often integrates a blue sky better than the stock version.

Where Sky Replacements Fail

Light coming from the wrong side

The one that ruins otherwise perfect work. Read the shadows first, choose the sky second.

Mismatched shadow quality

Hard shadows need a clear sky; soft shadows need cloud. The shadows already in your photo tell you which.

A sunset over a high-sun scene

Short shadows mean a high sun. A sunset sky contradicts them.

Leaving Foreground Adjustments collapsed

The relighting lives there, and it’s closed by default. Open it every time.

Skipping the Output To choice

New Layers gives you editable adjustment layers with their masks, so you can change any setting later. It’s Aaron’s preference.

Forgetting to reset the brush blend mode

Overlay left on will quietly break your next twenty minutes of brushwork.

The Tool Is the Easy Part

Adobe has made the mechanical side of this close to effortless — the masking, the relighting, the layered output are all better than they have any right to be.

What remains yours is the judgement: spend thirty seconds reading the shadows before you open the dialog, and you’ll pick a sky that works on the first attempt instead of cycling through forty that don’t.

Quick Reference: Keys, Menus and Settings

  • Copy the photoCmd/Ctrl + J duplicates the Background layer
  • Open the toolEdit > Sky Replacement; skies in Blue Skies, Sunsets and Spectacular
  • Check the edgesCmd/Ctrl + + zooms in, hold Space to move; Fade Edge and Shift Edge
  • Paint sky in or outThe brush in the dialog adds sky; Alt/Option and paint to remove it
  • Relight and outputBrightness, Temperature, Foreground Adjustments > Lighting Mode: Screen here; Output To: New Layers
  • Clean the maskAlt/Option-click the Sky mask, B, brush Mode: Overlay, white then black, then Mode back to Normal
  • Match saturationHue/Saturation clipped to the sky: Saturation down, Hue a little left toward cyan
Page 1 of the free Sky Replacement Tool in Photoshop PDF guide

Free Downloads

Follow Along on the Same Photo

Get the lighthouse photo, a sample PSD and the 5-page PDF guide, so you can read the shadows and replace the sky step by step. Free with a PHLEARN account.

Sky Replacement in Photoshop: Common Questions

Where is the Sky Replacement tool in Photoshop?

Go to Edit > Sky Replacement. Duplicate your Background layer first with Cmd/Ctrl + J so you work on a copy.

How do I choose a sky that looks real?

Read the shadows first. The side they fall on and the angle they run at point back to the sun, and hard shadows mean a sunny day. Pick a sky whose clouds are lit from that same side.

Why does a sunset sky look fake on my photo?

In this photo the sun is high and the shadows are well defined, so the light in a sunset sky comes from a completely different direction. The tool blends it nicely, but it will not look realistic.

How do I fix the edges inside the dialog?

Press Cmd/Ctrl + + to zoom in and hold the Spacebar to move around. Use the Fade Edge and Shift Edge sliders, and paint with the brush built into the dialog to add sky, or hold Alt/Option to remove it.

Why does my new sky look pasted on?

Check Brightness and Temperature. When the sky is too dark its highlights do not match the highlights on the building, so match the brightness, then go a little warmer or cooler. Also open Foreground Adjustments, which is closed by default.

Should I use Screen or Multiply for Lighting Mode?

Whichever one looks better. Aaron says it is different for every image; on this photo it was Screen. Then set Lighting Adjustment and Color Adjustment so the foreground matches the new sky.

Should I output to New Layers or Duplicate Layer?

Aaron chooses New Layers. You get a Sky Replacement group with the sky, its brightness and temperature, foreground lighting and foreground color as layers with masks, so you can turn them off and on or change them later.

How do I clean up the sky mask after the tool?

Alt/Option-click the Sky layer’s mask to see it. Take a large soft brush (B), set the brush Mode to Overlay in the options bar, paint white over the light areas, then black over the dark areas.

My new sky is more colorful than the photo. How do I match it?

Add a Hue/Saturation adjustment layer above the sky and click the clipping icon so it only affects the sky. Bring Saturation down to match the original, and pull Hue a little to the left for more cyan.

Are the sample files free?

Yes, with a free PHLEARN account. You get 1 sample image, 1 sample PSD and 1 PDF guide: the lighthouse photo, a PSD and the 5-page step-by-step guide.

Master Photoshop, Lightroom and Photography

Join PHLEARN PRO for $12.99 a month, or $99.99 a year (save 36%). Cancel anytime, with a 100% money-back guarantee.

As featured in
  • 500px
  • Adobe
  • Fstoppers
  • HuffPost
  • Inc.
  • PetaPixel