Skip to content
Tutorials Center
My learning

Topics

Lesson 13 of 37 ยท Layers and Selections

Selection Tools: Marquee, Lasso and Magic Wand

Learn how selections work in Photoshop, use the Marquee, Lasso and Magic Wand tools, combine and modify selections, and feather, save and reuse them.

A selection tells Photoshop where to apply the next edit. Everything inside the selection changes, and everything outside is protected. Whether you are brightening just the sky, cutting a person out of a background or filling a shape, you start by selecting. The marching ants (the moving dashed outline) show where the selection edge is.

Photoshop is not available on this site, so the steps are for your own copy. The stand-ins model how selections behave: tolerance, feathering and combining.

What a selection really is

A selection is more than an outline. Internally it is a greyscale mask: each pixel has a value from 0 (not selected) to 255 (fully selected). A soft edge simply means the edge pixels have in-between values, so an edit is applied partially there. You can see the real mask by pressing Q to enter Quick Mask mode (red overlay on unselected areas) or by saving the selection to a channel (Select > Save Selection). This idea links selections and layer masks, which you will meet in the masks chapter.

The Marquee tools (M)

The Rectangular Marquee and Elliptical Marquee drag out geometric selections. Useful behaviours:

  • Hold Shift while dragging for a perfect square or circle.
  • Hold Alt/Option to draw from the centre. Combine both for a centred square or circle.
  • Hold Space while still dragging to move the selection as you draw, then release it to continue sizing.
  • In the options bar, set Style: Fixed Ratio or Fixed Size (for example 1080 x 1080 px), and Feather to soften the edge before you draw.
  • The Single Row and Single Column marquees select a one-pixel line.

After the selection exists, drag it with a selection tool to reposition just the outline. Use Ctrl/Cmd + D to deselect and Ctrl/Cmd + Shift + D to reselect the last selection.

The Lasso tools (L)

  • Lasso: freehand. Drag around the shape and close it by releasing the mouse near the start. Hard to be accurate with a mouse; fine with a stylus.
  • Polygonal Lasso: click points to build straight segments. Double-click or click the start point to close. Hold Shift for 45-degree steps. Pressing Backspace deletes the last point. Great for buildings and boxes.
  • Magnetic Lasso: click once, then move along an edge. Photoshop snaps a line to detected contrast and drops anchor points automatically. Options such as Width, Contrast and Frequency control sensitivity. Click manually to add anchors where it wanders, and press Esc to cancel.

Press Alt/Option during a Lasso drag to switch temporarily between freehand and polygonal modes.

Which tool for which shape?

Marquee Rectangles and ellipses.
Lasso Freehand and polygon outlines.
Magnetic Snaps to a clear edge.
Magic Wand Picks similar colours.

Try the quickest tool first.

1 / 2

The Magic Wand

The Magic Wand (W, nested with Quick Selection and Object Selection) selects pixels by colour similarity with one click. Its options bar settings control everything:

  • Tolerance (0-255): how different a colour may be and still be included. Low values pick near-identical pixels, high values spread further. The default is 32.
  • Contiguous: when ticked, only touching pixels of similar colour are selected. Untick it to select similar colours everywhere in the image.
  • Anti-alias: smooths the edge. Keep it on.
  • Sample Size: Point Sample reads one pixel; 3 by 3 average reads the average of nine, which handles noisy photos better.
  • Sample All Layers: reads the combined picture instead of just the active layer.

The wand works very well on flat, uniform areas such as a plain studio backdrop or a logo on a solid colour. It struggles on gradients and textures, where a high tolerance leaks into the subject and a low one leaves holes. For those, use the tools in Quick Selection, Select Subject and Refine Edge.

Tolerance in code

This stand-in does a Magic Wand-style flood fill on a small greyscale grid. It is not Photoshop's implementation, but the logic (compare each neighbour to the clicked colour within a tolerance) is the same idea.

JS Stand-in: magic wand tolerance

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

No output.

At tolerance 5 only the darkest corner is chosen. At 20 more of the dark area joins, at 80 the mid-grey 90s are included, and at 200 the selection "leaks" into the bright region and everything is selected. The same thing happens in a photo if your tolerance is too high.

Combining and modifying selections

Four modes appear as icons at the left of the options bar:

  • New selection replaces the existing one.
  • Add to selection (hold Shift): union.
  • Subtract from selection (hold Alt/Option): remove a region.
  • Intersect with selection (hold Shift + Alt/Option): keep only the overlap.

Then refine the result using the Select menu:

  • Select > Inverse (Ctrl/Cmd + Shift + I) flips the selection. Select a plain background with the wand, then invert to get the subject.
  • Select > Modify > Border, Smooth, Expand, Contract, Feather: change the edge by a number of pixels.
  • Select > Feather (Shift + F6) blurs the edge, so edits blend softly. A feather of 0 gives a hard edge.
  • Select > Grow and Similar extend the selection to neighbouring or all similar colours.
  • Select > Transform Selection scales or rotates only the outline.
  • Select > Save Selection stores it in the Channels panel, and Load Selection brings it back; Ctrl/Cmd-click a layer's thumbnail loads its pixels as a selection.

Feathering in code

A feathered edge is a gradual change from 0 to 1 across a distance. The stand-in below applies a simple linear ramp feather to a hard 1-D selection so you can see the partial values at the boundary.

JS Stand-in: feathering a selection edge

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

No output.

The in-between values (0.33, 0.67 and so on) mean the edit applies at one-third or two-thirds strength at those pixels. Feather before filling a selection to avoid the cut-out look.

If a selection's marching ants are too distracting, Ctrl/Cmd + H hides the selection edges without deselecting. Don't forget it is still active!

Common mistakes

  • A leftover selection silently restricts later edits. If a tool "does nothing", press Ctrl/Cmd + D.
  • Wrong feather value: it also applies to the next marquee you draw, not just the current one.
  • Selecting on the wrong layer: the Magic Wand reads the active layer unless Sample All Layers is on.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How do you draw a perfect circle with the Elliptical Marquee?

    Shift constrains the shape to a square or circle; Alt/Option draws from the centre.
  2. 2. A Magic Wand click selects too much of the surrounding area. What should you try?

    Lower tolerance includes only colours closer to the one you clicked.
  3. 3. What does a feathered edge mean?

    Feathering blurs the selection mask so edits blend in gradually.
  4. 4. Which shortcut deselects?

    Ctrl/Cmd + D deselects; Ctrl/Cmd + Shift + D reselects.

Summary

  • A selection is a grey mask: edits apply fully where it is white, partially where it is grey.
  • Use the Marquee for shapes, the Lasso family for outlines and the Magic Wand for flat colour areas.
  • Shift adds, Alt/Option subtracts, Shift + Alt/Option intersects; Select > Inverse flips.
  • Feather and Modify (Border, Smooth, Expand, Contract) soften and adjust edges.
  • Save selections to channels and reload them later.

Next: Quick Selection, Select Subject and Refine Edge