First, rule out an old bug
This is worth saying plainly because it's a real, documented case: for a period, Photoshop had a confirmed bug where Sky Replacement's Fade Edge default value produced genuine stairstepping on hard edges, independent of anything the user did. Adobe engineering acknowledged it and shipped a fix in Photoshop 23.4 (June 2022). If you're running an older, un-updated version, that's a real possibility worth ruling out first: update Photoshop and redo the sky replacement on the same file before troubleshooting anything else. Updating won't retroactively fix a result you already exported, you have to regenerate it on the current version.
On a current version, it comes down to two sliders
Sky Replacement generates its initial mask automatically through its own edge detection, so you're not building anything by hand. But that automatic mask still passes through two controls in the same dialog (Edit → Sky Replacement), and they're not one-size-fits-all: Fade Edge controls how much the transition between the original sky edge and the new sky is softened, and Shift Edge grows or shrinks that edge inward or outward.
Set Fade Edge too low on a photo with fine detail, tree branches, hair, grass against the sky, and the mask can't follow that detail, producing a hard, stairstepped cutout. Set it too high on a photo with a hard, straight edge, a roofline, a clean horizon, and you get visible softening exactly where you wanted a crisp line, which can itself read as messy or jagged where it interacts with contrast along that edge.
Match the settings to the edge type
For hard, architectural edges like rooflines or a clean horizon, lower Fade Edge, since a hard edge needs a mask that stays hard. For fine, organic detail like branches, hair or grass, raise Fade Edge so the transition can actually follow that detail instead of stairstepping across it. There's no universal correct value: it depends entirely on which kind of edge dominates your specific photo, which is exactly why a setting that looked perfect on a demo image can look wrong on yours.
When it's not the sliders at all
Occasionally the real problem is upstream of both settings: the original photo has genuinely low contrast between the subject and the sky, a hazy overcast sky nearly the same tone as a light-colored building, for example. Sky Replacement's own edge detection struggles to find a clean line there regardless of how Fade Edge or Shift Edge are set. When that's the case, the fix isn't in the Sky Replacement dialog at all, it's the same manual edge-refinement toolkit you'd use on any rough mask: Select and Mask with Decontaminate Colors, a Minimum filter pass, or painting out the specific problem spot by hand.
Quick answers to a few related questions
Do I need to rebuild the sky mask from scratch if the edges look bad?
Usually not. The Sky Replacement dialog stays live while you adjust Shift Edge and Fade Edge, so you can tune the existing mask without starting over.
Is there a single best Fade Edge value I can just always use?
No. It depends entirely on the edge type in the specific photo, which is exactly why one universal setting will always look wrong on some fraction of your images.
Does updating Photoshop fix jagged-edge sky replacements I already made in an old version?
No. The bug affected results generated while running the buggy version. You need to redo the Sky Replacement on the same source file after updating to get a clean result.
EN
IT