Sub topic 2
Opacity versus Fill
This chapter assumes you can create layers, add layer styles such as Drop Shadow, and read the blend mode menu. Photoshop's Layers panel has two sliders that look almost identical: Opacity and Fill. For a plain Normal layer with no effects they give the same result. The difference shows up when a layer has layer styles, or when its blend mode is one of the high-contrast modes. This chapter explains what each slider scales, where they diverge, and which one to pick.
What each slider controls
Both sliders go from 0% to 100%. Each one scales how strongly the layer is mixed into what lies beneath it.
- Opacity scales the whole layer as it is finally rendered. That includes the pixels you painted and every layer style applied to them (Drop Shadow, Stroke, Outer Glow, Color Overlay, and so on).
- Fill scales only the layer's own pixels. Layer styles keep their full strength.
Photoshop calculates the layer's pixels first, then applies the styles, then applies Opacity to the combined result. Fill acts on the first step only.
The same slider values give different numbers in each position, so it helps to see the numbers.
A numeric model
The mixing step is a weighted average. For one channel, with values from 0 (black) to 1 (white):
result = base × (1 − alpha) + layer × alpha
Here alpha is how much of the layer shows. The following script models a layer that has a light gray fill (0.9) and a black drop shadow that is 50% strong at full settings. It checks one pixel inside the filled area and one pixel in the shadow area.
def composite(base, color, alpha):
"""Mix one channel of a layer color over the base."""
return base * (1 - alpha) + color * alpha
def render(base, opacity=1.0, fill=1.0):
content_color = 0.9
shadow_color = 0.0
shadow_strength = 0.5
# Pixel inside the filled shape: Fill and Opacity both scale it.
inside = composite(base, content_color, fill * opacity)
# Pixel in the shadow area: only Opacity scales the style.
in_shadow = composite(base, shadow_color, shadow_strength * opacity)
return round(inside, 3), round(in_shadow, 3)
base = 0.6
print("full: ", render(base))
print("opacity 50:", render(base, opacity=0.5))
print("fill 50: ", render(base, fill=0.5))
print("fill 0: ", render(base, fill=0.0))The output is:
full: (0.9, 0.3)
opacity 50: (0.75, 0.45)
fill 50: (0.75, 0.3)
fill 0: (0.6, 0.3)Inside the shape, Opacity 50% and Fill 50% give the same value, 0.75. In the shadow area, Opacity fades the shadow from 0.3 to 0.45, while Fill leaves it at 0.3. At Fill 0 the shape vanishes (0.6 is the untouched base), but the shadow remains.
Fill 0 as a tool
Setting Fill to 0% while keeping the layer styles is a common technique. The layer's pixels become invisible, and only the effects remain visible. Typical uses:
- Outline text or shapes. Set Fill to 0%, add a Stroke style, and you get a hollow outline that stays editable.
- Glass and ghost effects. Combine Fill 0% with Inner Shadow, Inner Glow, or Bevel & Emboss to create a see-through object with highlights and edges.
- Light-only layers. Add Outer Glow or Drop Shadow to a shape whose pixels you do not want to see.
- Style-only adjustments. Use Color Overlay or Gradient Overlay with their own blend modes while the layer's original colors drop out.
If you turn Opacity to 0% instead, everything disappears, effects included.
Where Fill and Opacity differ for blend modes
For many blend modes, Opacity and Fill give the same result on a layer with no styles. Photoshop treats a few modes differently. With these modes, lowering Fill does not fade the effect in a straight line the way Opacity does:
- Color Burn
- Linear Burn
- Color Dodge
- Linear Dodge (Add)
- Vivid Light
- Linear Light
- Hard Mix
With these modes, Fill 50% usually produces a stronger, more contrasty look than Opacity 50%. Hard Mix shows the effect most clearly. At Fill 100% it posterizes the image to pure primary colors. Lowering Fill brings back tonal detail and acts as a contrast control, whereas lowering Opacity just crossfades the posterized result with the original.
The practical rule: if a layer set to one of these modes looks too strong, try Fill and Opacity both and keep whichever looks better. Do not assume they match. For the other modes (Multiply, Screen, Overlay, Soft Light, and so on) and plain Normal layers, they match, apart from layer styles.
The table below summarizes the behavior.
| Situation | Opacity | Fill |
|---|---|---|
| Normal layer, no styles | Fades the layer | Same result |
| Layer with Drop Shadow or Stroke | Fades pixels and effects | Fades pixels only; effects stay |
| Multiply, Screen, Overlay, Soft Light | Fades the blend effect | Same as Opacity (without styles) |
| Color Dodge, Linear Light, Vivid Light, Hard Mix and similar | Fades the blend result in a straight crossfade | Gives a different, often stronger result |
| Value 0% | Layer fully hidden | Pixels hidden, styles visible |
Layer groups
Groups have both sliders as well. Group Opacity scales the whole group's composite. Group Fill acts on the pixels of the layers inside, leaving their layer styles at full strength. A group's blend mode (Pass Through versus Normal) changes how the group interacts with layers below, which a later chapter covers. For now, remember that these two sliders behave on groups the way they do on single layers.
Blending interior effects and clipped layers
Two options in Layer Style > Blending Options > Advanced Blending change how Fill interacts with effects:
- Blend Interior Effects as Group. Effects that sit inside the shape (Inner Glow, Satin, and the Color, Gradient, and Pattern Overlays) normally take the layer's blend mode on their own. Turning this option on blends them with the layer's pixels first, and then the combined result takes the layer's blend mode. This changes how those effects combine with the Fill.
- Blend Clipped Layers as Group. When other layers are clipped to this one, this option (on by default) makes the base layer's blend mode apply to the clipped stack as a whole. Turning it off lets each clipped layer use its own blend mode.
The Advanced Blending panel also has its own Fill Opacity slider, which is the same control as the Fill slider in the Layers panel.
Choosing between the two
- Use Opacity when you want the whole layer, effects included, to be lighter. This is the default choice for retouching layers, texture overlays, and any layer without styles.
- Use Fill when a layer has styles you want to keep at full strength while the underlying pixels fade. Typical cases are outline text, glass effects, and glows.
- Try both on Color Dodge, Linear Dodge, Color Burn, Linear Burn, Vivid Light, Linear Light, and Hard Mix, because they do not give identical results.
- Use the per-effect opacity in Layer Style when only one effect needs adjusting.
Common mistakes
- Fading a layer with Fill and expecting the shadow to fade too. The shadow stays. Use Opacity or lower the shadow's own opacity.
- Setting Fill to 0% and forgetting about it. A layer that looks empty may still be doing work through its styles. Look at the fx icon next to the layer name.
- Assuming a copied layer style carries the same Fill. Fill is a layer property, not part of the style. When you copy a style to another layer, check that layer's Fill separately.
- Using Opacity on a Hard Mix layer and wondering why the effect looks harsh. Opacity crossfades the harsh result. Lowering Fill instead softens the posterization.
Exercise
A text layer has a white Stroke style and a Drop Shadow. You want the text to look like a hollow outline with the shadow still visible. Which slider do you change, to what value, and why does the other slider not work?
Show answer
Set Fill to 0%. Fill scales only the layer's own pixels, so the letter fill disappears while the Stroke and Drop Shadow stay at full strength. Setting Opacity to 0% would hide the whole layer, including the stroke and shadow.
Exercise
Using the formula result = base × (1 − alpha) + layer × alpha with base 0.6 and a layer color of 0.9, what is the result at Opacity 50% and Fill 100%, and at Opacity 100% and Fill 50% (no layer styles, Normal mode)?
Show answer
Both give 0.6 × 0.5 + 0.9 × 0.5 = 0.75. Without layer styles in Normal mode, the two sliders multiply into the same alpha of 0.5.
Exercise
You set a layer to Linear Light and it looks too strong. Opacity 50% still looks harsh. What should you try next, and why might it behave differently?
Show answer
Try lowering Fill instead. Photoshop treats Fill differently from Opacity for Linear Light and similar modes (Color Dodge, Linear Dodge, Color Burn, Linear Burn, Vivid Light, Hard Mix), so Fill does not simply crossfade with the base and can give a different result.