
The Rectangular Marquee tool in Photoshop selects a rectangle or a square: you drag a box across the image, and everything inside the moving dashed outline is selected, ready to crop, copy, fill, adjust or protect. It is the fastest selection tool there is, and for anything with straight edges that line up with the sides of the photo it is also the most precise.
That last part matters. The tool can only draw boxes whose sides run parallel to the edges of the canvas. A door photographed square-on, a window, a print border, a band of sky above a flat sea: one drag. A tilted building or a horizon broken by trees: the wrong tool, and knowing that early saves a lot of fiddly repair. This page covers drawing the box, making exact shapes and sizes, combining boxes, softening their edges, and the jobs photographers most often use a rectangle selection for.
Where the Rectangular Marquee lives and what it selects
The tool sits near the top of the toolbar, with a dashed square for an icon. Press M to pick it. It shares its slot with the Elliptical Marquee, and Shift+M switches between the two. Click and hold the icon to see the rest of the group: the Single Row Marquee and Single Column Marquee, which select a line exactly one pixel tall or one pixel wide across the whole image. Those two are for design work such as drawing hairlines; you will rarely need them on a photo.
A selection is not a layer and not an edit. It is an instruction to Photoshop about where the next thing you do should happen. The outline (often called marching ants) shows it; whatever you do next, such as a fill, a delete or an adjustment, happens only inside it and only on the layer that is active in the Layers panel. Press Ctrl+D (Windows) or Cmd+D (Mac) to drop a selection, and Ctrl+Shift+D or Cmd+Shift+D to bring the last one back.
Because every side of a rectangle runs along a row or column of pixels, its edge is perfectly crisp. That is why the Anti-alias checkbox in the options bar, which smooths the stair steps on a curved edge, is greyed out for this tool and only switches on for the Elliptical Marquee.
Need a round or oval shape rather than a box? How to make a circle selection in Photoshop covers the Elliptical Marquee, its sister tool, with the same keys.
How to draw a rectangle selection, step by step
- Pick the layer. Click the layer you want to work on in the Layers panel. The selection itself does not belong to a layer, but your next action does.
- Check the options bar. The four small icons on the left should show New Selection, Feather should read 0 px unless you want a soft edge, and Style should read Normal.
- Drag diagonally. Click at one corner of the area you want and drag to the opposite corner. The Info panel (Window > Info) shows the width and height in pixels as you go.
- Hold Shift after you start dragging to lock the box to a perfect square.
- Hold Alt (Windows) or Option (Mac) after you start dragging to draw outward from the centre, so the first click becomes the middle of the box instead of a corner. Both keys together give a square drawn from its centre.
- Hold the Spacebar while still dragging to move the whole box, then let go of the Spacebar and carry on sizing it. This is how you line a box up with a door frame or a window edge without starting over.
- Release the mouse button first, then the keys. Letting go of Shift before the mouse turns your square back into a free rectangle.
The order of the keys is the one thing that trips everyone up. Shift or Alt pressed after you start dragging changes the shape. The same keys pressed before you click change the selection mode instead, which is the next section’s subject.
To line edges up with something exact, turn on rulers (Ctrl+R or Cmd+R), drag a guide out of the ruler, and make sure View > Snap is ticked. The marquee snaps to guides and to the edges of the canvas, so a box can start exactly on a guide or run exactly to the edge of the photo.
Exact shapes and sizes: Fixed Ratio and Fixed Size
The Style menu in the options bar has three settings:
- Normal: you drag freely, and Shift gives a square.
- Fixed Ratio: you type a width and a height as a ratio, and every box you drag keeps that shape at any size. Type 4 and 5 for a vertical 8 by 10 print, 1 and 1 for a square, 16 and 9 for a widescreen frame. The double arrow between the boxes swaps the two numbers, turning a vertical shape horizontal.
- Fixed Size: you type an exact width and height, for example 2400 px by 3000 px, and a single click drops a box of exactly that size. Keep the mouse button down after the click to slide it into place. You can type other units, such as “8 in” or “20 cm”, and Photoshop converts them using the image’s resolution.
Fixed Ratio is what makes the marquee useful for choosing a print crop. The diagram shows the most common ratios drawn to scale over a 24 megapixel photo, which is 6000 by 4000 pixels in the 3:2 shape most cameras shoot.
| Fixed Ratio | Common use | Largest crop from 6000 × 4000 | Pixels kept | Print size at 300 ppi |
|---|---|---|---|---|
| 3 : 2 | The camera’s own shape, 4 × 6 prints | 6000 × 4000 | 24 MP (100%) | 20 × 13.3 in |
| 16 : 9 | Screens, video frames | 6000 × 3375 | 20.3 MP (84%) | 20 × 11.25 in |
| 1 : 1 | Square | 4000 × 4000 | 16 MP (67%) | 13.3 × 13.3 in |
| 4 : 5 | 8 × 10 and 16 × 20 prints | 3200 × 4000 | 12.8 MP (53%) | 10.7 × 13.3 in |
| 5 : 7 | 5 × 7 prints | 2857 × 4000 | 11.4 MP (48%) | 9.5 × 13.3 in |
So an 8 by 10 inch print at 300 pixels per inch needs 2400 by 3000 pixels, and a 4:5 crop of this photo has 3200 by 4000 to give: room to spare. Set Style to Fixed Size and type 2400 px by 3000 px if you want to see exactly how much of the frame that print needs at full quality.
Photoshop remembers the Style you last used. If a box suddenly refuses to change shape, or a click drops a box you did not draw, the Style is still on Fixed Ratio or Fixed Size: set it back to Normal.
Not sure which shape suits the picture in the first place? Aspect ratio in photography looks at what each shape does to a composition, and square format photography goes deeper into the 1:1 frame.
Adding to, subtracting from and intersecting selections
One box is rarely the whole job. A window with a mullion, an L-shaped wall, two signs on one building: you build these from several rectangles. The four icons at the left of the options bar set what the next drag does, and each has a key you hold before you click.
- New Selection: each drag replaces the old selection.
- Add to Selection (hold Shift before you click): a small plus sign appears by the pointer, and the new box joins the old one.
- Subtract from Selection (hold Alt or Option before you click): a minus sign appears, and the new box is cut out of the old one. Draw a large box, then subtract a smaller one inside it, and you have a rectangular ring.
- Intersect with Selection (hold Shift and Alt, or Shift and Option, before you click): only the overlap of the old and new boxes stays selected.
The keys do double duty. To add a perfect square to an existing selection, press Shift, start the drag (the plus sign appears), then let go of Shift and press it again while dragging to lock the shape. Once you have learned that one move, the rest follows.
You can mix tools in the same selection. Start with a rectangle for the straight top of a doorway, then hold Shift and switch to the Elliptical Marquee for its arch, or to a lasso for a ragged edge.
Is the edge you need to follow curved or uneven, like a person or a tree line? The Magnetic Lasso tool snaps to edges as you trace them.
Moving, resizing and rotating the box
- Move the outline: with the marquee still active and the mode on New Selection, drag inside the box. Only the outline moves. The arrow keys nudge it 1 pixel at a time; Shift plus an arrow moves it 10.
- Resize or rotate it: choose Select > Transform Selection. Drag the side handles to change one dimension, the corners to change both, or drag just outside a corner to rotate. Rotating is the way to get a tilted rectangle, for a sign or a picture frame that was not photographed square-on. Type exact values in the options bar if you need them, then press Enter or Return.
- Grow or shrink it evenly: Select > Modify > Expand or Contract moves every side by the same number of pixels.
Watch which tool is active. With the Move Tool (V), dragging inside a selection moves the pixels themselves and leaves a hole, or the background colour, behind. Press Ctrl+Z or Cmd+Z if that happens.
Hard edges and soft edges: feather and rounded corners
A rectangle selection with Feather at 0 px stops dead at its edge, which is what you want for cropping, borders and anything graphic. Feather blurs the edge over a set distance so an edit fades out instead of stopping at a line. The bigger the photo, the bigger the feather has to be to look the same: 20 px is a gentle softening on a 6000 pixel wide image and a heavy blur on a 1000 pixel one.
There are two places to set it, and they behave differently. The Feather box in the options bar applies to the next box you draw and stays set until you change it. Select > Modify > Feather (Shift+F6) applies to the selection you already have. For the most control, use Select > Select and Mask, where you can drag the Feather slider and see the edge before you commit.
Feather also rounds the corners of a rectangle a little, because the blur spreads around them. For a box with properly rounded corners and a crisp edge, use Select > Modify > Smooth instead, and give it a sample radius in pixels: the larger the radius, the rounder the corners.
Five jobs for a rectangle selection
Crop to an exact shape
Draw the box with Fixed Ratio or Fixed Size, move it into place, then choose Image > Crop. The canvas is trimmed to the box. It is a quick, exact crop, but it is one-way and cannot straighten a tilted horizon. For a crop you can rotate, revisit or undo later, use the Crop Tool with Delete Cropped Pixels turned off; how to crop photos covers ratios, straightening and how much resolution a crop leaves you.
Add a border or frame
The cleanest border adds canvas around the photo: Image > Canvas Size, tick Relative, add the same amount to width and height (200 px adds a 100 px border on every side), and pick a colour. When you want the border inside the picture instead, use a selection:
- Make a new empty layer and press Ctrl+A or Cmd+A to select the whole image.
- Choose Select > Modify > Contract, type the border width, and tick Apply effect at canvas bounds. Without that tick Photoshop does not move the edges that touch the canvas, and nothing seems to happen.
- Choose Select > Inverse (Ctrl+Shift+I or Cmd+Shift+I), so only the band around the edge is selected.
- Choose Edit > Fill and fill the band with white, black or any colour on the new layer.
For a thin keyline around a selected area instead, use Edit > Stroke with Location set to Inside, which keeps square corners. Avoid Select > Modify > Border for this: it always softens the band it makes, so the frame comes out fuzzy.
Change one part of the photo through a mask
With a selection active, add an adjustment layer (the half-filled circle at the bottom of the Layers panel) and Photoshop turns the selection into that layer’s mask. The adjustment affects only the box, and you can repaint, soften or delete the mask later without touching the photo. A heavily feathered rectangle across the top third of a landscape, with a Curves layer pulling it down, darkens a bright sky above a flat horizon in a few seconds. A gradient on the mask gives a smoother version of the same thing.
Want edits like this to stay changeable forever? Layers and masks in Photoshop explains how a mask works and how to refine one, and global vs local adjustments helps decide when part of the photo needs its own edit.
Copy a piece onto its own layer, or paste into a box
Press Ctrl+J or Cmd+J to copy whatever is inside the box onto a new layer, ready to move, transform or adjust on its own. Going the other way, copy an image, draw a rectangle where it should appear (a picture frame on a wall, a screen, a window pane), then choose Edit > Paste Special > Paste Into. The pasted image lands on its own layer with your rectangle as its mask, so you can still move it around inside the box.
This is also where the rectangle shows its limits. Replacing a sky with a straight box only works when the horizon really is a straight, level line, and even then the light in the new sky rarely matches the land beneath it. Over trees, hills or buildings you need a selection that follows the real edge, and a colour match afterwards.
Swapping a sky for real? How to replace the sky in Photoshop covers the selection, the blend and matching the light.
Clean up a straight-edged area
Draw a box around a distraction with a straight edge near it, such as a sign on a plain wall or a sensor spot in an even sky, then choose Edit > Content-Aware Fill or press Shift+F5 and pick Content-Aware. A box a little larger than the object gives Photoshop clean surroundings to sample. How to remove objects in Photoshop covers when that works and what to do when it does not.
Rectangular Marquee shortcuts
| Action | Windows | Mac |
|---|---|---|
| Pick the marquee / switch rectangle and ellipse | M / Shift+M | M / Shift+M |
| Square (press after you start dragging) | Shift | Shift |
| Draw from the centre (after you start dragging) | Alt | Option |
| Move the box while drawing | Spacebar | Spacebar |
| Add to selection (press before you click) | Shift | Shift |
| Subtract from selection (before you click) | Alt | Option |
| Intersect with selection (before you click) | Shift+Alt | Shift+Option |
| Select all / deselect / reselect | Ctrl+A / Ctrl+D / Ctrl+Shift+D | Cmd+A / Cmd+D / Cmd+Shift+D |
| Invert the selection | Ctrl+Shift+I | Cmd+Shift+I |
| Feather the current selection | Shift+F6 | Shift+F6 |
| Copy the selection to a new layer | Ctrl+J | Cmd+J |
Want to make your own shortcuts, or record a border recipe you repeat on every print? Photoshop actions, automation and keyboard shortcuts shows how.
Common mistakes with the Rectangular Marquee
- Pressing Shift before clicking to get a square. That switches to Add to Selection. Start dragging first, then press Shift.
- Leaving Style on Fixed Ratio or Fixed Size. The next box comes out the wrong shape, or a click drops a box you did not mean. Set it back to Normal when the job is done.
- Forgetting a feather value in the options bar. Every box after that is soft-edged, and crops and borders come out blurred. Check that Feather reads 0 px before precise work.
- Working on the wrong layer. A fill or delete goes to whichever layer is active, often the photo itself. Make a new layer first for fills and borders, so you can change them later.
- Dragging with the Move Tool instead of the marquee. The pixels move and leave a hole behind.
- Using a straight box on a curved or broken edge. A rectangle cannot follow trees, hills or people. Use it for the straight part and add the rest with another tool, or pick a tool built for edges.
- Making a border with Select > Modify > Border. It always gives a soft band. Contract and Inverse, Stroke Inside, or Canvas Size all give crisp ones.
Try this: a 10 minute border and crop exercise
Open any photo of yours with a straight-edged subject in it: a door, a window, a framed picture, a building front.
- Draw a free rectangle around the subject, then hold the Spacebar mid-drag to line it up with the edges. Press Ctrl+J or Cmd+J to put it on its own layer, and hide the photo underneath to check the edges are clean.
- Show the photo again. Set Style to Fixed Ratio, 4 by 5, and draw the largest box the picture allows. Note the width and height in the Info panel and compare them with the 4:5 row in the table above for your camera’s pixel count.
- Choose Image > Crop. Then add a 3% white border inside the edge with the Contract, Inverse and Fill recipe (on a 3200 pixel wide crop, that is about 96 px).
- Set Style back to Normal.
Judge it at 100% zoom: the edges of the copied layer and the border should be perfectly sharp, with no soft fringe (if there is one, a feather value was left on), and the border should be the same width on all four sides (if there is no border at all, the Apply effect at canvas bounds box was not ticked).
Rectangular Marquee FAQ
Why can’t I make a square with Shift?
You are probably pressing Shift before you click, which switches to Add to Selection. Click and start dragging first, then hold Shift. If the box still will not change shape, Style in the options bar is set to Fixed Ratio or Fixed Size.
Why is Anti-alias greyed out?
Anti-alias only matters for curved or diagonal edges, which would otherwise show stair steps. A rectangle’s sides follow the pixel grid exactly, so there is nothing to smooth, and Photoshop offers the option only on the Elliptical Marquee.
How do I select an exact pixel size?
Set Style to Fixed Size, type the width and height (for example 2400 px by 3000 px), and click once on the image. Keep the button down to slide the box into place before you let go.
How do I make a rectangle selection with rounded corners?
Draw the rectangle, then choose Select > Modify > Smooth and enter a sample radius; a larger number gives rounder corners. For an exact corner radius, draw a Rectangle shape with rounded corners instead and load it as a selection by Ctrl-clicking or Cmd-clicking its layer thumbnail.
Can I draw a tilted rectangle?
Not directly: the marquee only draws boxes square to the canvas. Draw it straight, then use Select > Transform Selection and drag just outside a corner to rotate it to the angle you need, or click the four corners with the Polygonal Lasso.
Is there a rectangle selection in Lightroom?
Lightroom has no marquee, but its Linear Gradient and Brush masks do the jobs a feathered or hard rectangle does for local edits. Lightroom masking and selective adjustments covers them; for the rest of Photoshop’s toolbar, start from learn Adobe Photoshop basics.