Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 37 ยท Layers and Selections

Layers Basics

Learn how Photoshop layers work: the Layers panel, pixel, type, shape and adjustment layers, stacking order, opacity, linking, locking and naming.

Layers are the single most important idea in Photoshop. Think of a stack of transparent sheets: you paint on one sheet, put a photo on another, write text on a third, and then look down through the whole stack. Because every sheet is separate, you can move, hide, resize, blend or delete one without disturbing the others. Learn layers well and most of the rest of the program becomes easy.

Photoshop does not run on this site, so these are instructions for your own copy. The stand-in code builds a tiny layer stack so you can see exactly what "compositing" means numerically.

The Layers panel

Open Window > Layers (F7). Layers are listed top to bottom in stacking order: the top layer is in front. Each row shows:

  • an eye icon to hide or show the layer,
  • a thumbnail of its contents (transparent areas show as a checkerboard),
  • the layer name (double-click to rename),
  • a lock icon if the layer is protected, and a chain if layers are linked.

At the top of the panel are the blend mode menu, Opacity, Fill, and lock buttons. At the bottom are the buttons you will use constantly: Link layers, Add a layer style (fx), Add layer mask, Create new fill or adjustment layer, Create a new group, Create a new layer and Delete layer.

Creating a layer: click the new layer button, or Layer > New > Layer (Ctrl/Cmd + Shift + N), which asks for a name. Ctrl/Cmd + J duplicates the active layer (or, with a selection, copies the selected pixels to a new layer, a very common trick).

Layer types

  • Background layer: the locked bottom layer created when you open a photo or make a document with a coloured background. You can't move it or make it transparent until you unlock it (click the lock, or double-click and press OK, which turns it into "Layer 0").
  • Pixel (regular) layers: hold raster pixels you paint or paste.
  • Type layers (T icon): live editable text (see the text chapter).
  • Shape layers: vector shapes with fill and stroke that stay sharp at any size.
  • Smart Objects: a container that protects the original content, see Smart Objects and Layer Groups.
  • Adjustment layers: hold a colour or tone adjustment (such as Curves) that applies to the layers below, without changing their pixels. See Adjustment Layers.
  • Fill layers: solid colour, gradient or pattern.
  • Groups: folders that hold other layers.
  • Frame and artboard layers for placeholders and multi-size designs.

A stack of sheets

Top is in front Order decides what covers what.
Eye icon Hide a layer without deleting it.
Opacity Fade a layer from 0 to 100 percent.
Locks Protect pixels, position or all.

Each layer can be edited alone.

1 / 2

Selecting and moving layers

Click a layer in the panel to make it active; the tool you use then affects only that layer. With the Move tool (V), turn on Auto-Select: Layer in the options bar to select by clicking the picture, or leave it off and hold Ctrl/Cmd while clicking to pick the layer under the cursor. Shift-click in the panel selects a range; Ctrl/Cmd-click selects several separate layers. Right-click a pixel in the image with the Move tool and choose from the list to pick a layer that is hidden below others.

Reorder layers by dragging them in the panel, or with Ctrl/Cmd + [ (down one) and Ctrl/Cmd + ] (up one). Ctrl/Cmd + Shift + ] moves a layer to the top, and Ctrl/Cmd + Shift + [ to the bottom.

Opacity, fill and locking

  • Opacity (0-100%) fades the whole layer, including its layer styles such as shadows.
  • Fill (0-100%) fades only the layer's pixels and leaves styles (strokes, shadows) at full strength. Setting Fill to 0 on a layer with a stroke leaves a hollow outline.
  • Lock transparent pixels keeps painting limited to areas that already have pixels, useful for recolouring a shape. Lock image pixels forbids painting. Lock position stops moves. Lock all does everything.

Tap number keys with the Move tool active to set opacity quickly (5 for 50%).

Naming, colouring and organising

Default names like "Layer 14" become a mess quickly. Double-click to rename, right-click for colour labels, and group related layers with Ctrl/Cmd + G. A tidy file is faster to work in and easier for a colleague (or you in six months) to understand. Use the filter bar at the top of the panel to search layers by name, kind (pixel, adjustment, type, shape, smart object) or colour.

Name layers as you create them, not at the end. A file with forty layers called "Layer 1" to "Layer 40" is nearly impossible to edit.

What compositing really does

A stack of layers is flattened for display by blending from the bottom up. For ordinary layers ("Normal" blend mode) the maths is a weighted average, controlled by the layer's opacity. This stand-in composites three layers of grey values over a background, which is the same rule Photoshop applies per colour channel. It is a stand-in, not Photoshop's own code.

JS Stand-in: stacking layers

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Hiding the Shadow layer brightens the result because the shadow no longer darkens what lies beneath. Raising Highlight's opacity to 100% makes it cover everything under it, so the output equals its own value, 220. That is exactly how a fully opaque layer behaves in Photoshop.

Reordering matters

The next stand-in swaps the order of the same two layers to show why order changes the result. Blending is not commutative when opacities are below 100%.

JS Stand-in: order changes the result

Press Run (or Ctrl + Enter) to see the console output here.

No output.

You will see two different numbers. In Photoshop the same thing happens when you drag a layer above or below another: the picture changes, which is why the Layers panel's order is part of your design.

Common mistakes

  • Painting on the wrong layer. Look at which layer is highlighted before you paint. Many people mask or paint on the adjustment layer's mask by accident.
  • Flattening too early. Flatten (Layer > Flatten Image) only for final output on a copy.
  • Working only on the Background layer. Copy it with Ctrl/Cmd + J first, so the original pixels stay available.
  • Forgetting hidden layers that still add to the file size and may export unexpectedly.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. In the Layers panel, which layer appears in front?

    Layers stack from bottom to top; the top layer is in front.
  2. 2. Which shortcut duplicates the active layer (or copies a selection to a new layer)?

    Ctrl/Cmd + J is Layer via Copy.
  3. 3. What is the difference between Opacity and Fill?

    Opacity affects pixels and effects together; Fill affects the pixels only.
  4. 4. Why should you avoid working only on the Background layer?

    Duplicate the Background layer (Ctrl/Cmd + J) so you keep the original pixels.

Summary

  • Layers are separate sheets in a stack; the top is in front.
  • Use pixel, type, shape, adjustment, fill and Smart Object layers for different jobs; the Background layer is locked until you unlock it.
  • Opacity fades pixels and styles; Fill fades only pixels.
  • Name, colour and group layers as you go.
  • Ctrl/Cmd + J duplicates; bracket keys reorder.

Next: Blend Modes and Opacity