Download Assets
Sample assets are included with this tutorial. Downloads are free with a PHLEARN account.
- Download the sample images and PSDs from every free tutorial on PHLEARN
- New free tutorials published every week
- One free account — sign up once, then download anything
description
A building photographed at even a slight angle ends up with vertical lines that lean rather than stand straight, and the eye picks it up immediately. This covers building and customizing a grid in Photoshop to analyze crooked architectural lines, using rulers and guides to see what is actually off, and then straightening two ways — manually with the Transform tool, and automatically with the Camera Raw Filter’s own Transform controls.
Enjoying This Free Tutorial?
We publish a new free tutorial every week, each one with sample images and PSDs you can download and follow along with. Sign up and they land straight in your inbox, along with early word on sales, events and subscriber-only offers.


How to Straighten Buildings with Grids in Photoshop
This tutorial covers how to build and customize a grid in Photoshop to analyze crooked architectural lines, then straighten them using both a manual Transform-based approach and an automatic Camera Raw Filter option. The sample image is available as a free download on PHLEARN.com.
Why Straight Lines Matter in Architectural Photos
A building photographed at even a slight angle often ends up with vertical lines that lean rather than stand perfectly straight, which is usually distracting in architectural photography. Getting those lines as close to perfectly vertical and horizontal as possible, even if not always mathematically perfect, is the goal, and a visible reference grid makes it much easier to judge exactly how far off a line actually is.
Using Rulers and Guides to Analyze Lines
Press Command/Ctrl+R to toggle rulers on along the top and left edges of the canvas. With rulers visible, click and drag from either ruler into the image to place a guide, a straight reference line that can be dragged into position anywhere useful, then compared visually against a building edge to judge how far it’s leaning.
Hiding Guides Without Deleting Them
Press Command/Ctrl+H to temporarily hide guides (the first time this shortcut is used, Photoshop asks whether to hide Photoshop itself or hide extras, choose Hide Extras), then press the same shortcut again to bring them back, which is a convenient way to check a straightened image without permanently removing the reference guides.
Setting Up a Custom Grid
For a more comprehensive reference across the whole image, go to View, then Show, then Grid, to enable Photoshop’s built-in grid. The default grid spacing tends to be far too dense to be useful, so go to Photoshop’s Preferences, then Guides, Grid & Slices, and set the grid to a specific pixel spacing, for example one gridline every 10 pixels, adjusting the Subdivisions value down to 1 so each grid cell doesn’t get subdivided further into smaller, more cluttered squares. A larger image generally needs a larger pixel spacing to keep the grid from feeling overwhelming, so this value is worth tuning to the specific image being worked on.
Choosing Grid Color and Style for Visibility
The same Preferences dialog also offers a Custom color option and a choice between solid Lines or a lighter Dots style, both worth adjusting so the grid stays visible enough to be useful without becoming so bright or dense that it distracts from actually judging the image underneath it.
Straightening with the Transform Tool
With a grid or guides in place to judge against, duplicate the background layer to preserve the original, then press Command/Ctrl+T to enter Free Transform, right-click, and choose Perspective. Dragging any one of the corner handles in Perspective mode reshapes the entire image’s perspective at once, and often only a small adjustment is needed to bring a leaning building line back close to vertical. Bringing the cursor just outside a corner handle instead allows rotating the image slightly if the horizon itself is tilted, and holding Command/Ctrl while dragging an individual corner handle (after first entering Free Transform) allows a more freeform, independent distortion of just that one corner, useful for correcting a more heavily skewed photo that a simple perspective shift alone can’t fully fix.
Straightening Automatically with Camera Raw’s Transform Tool
For a faster, more automated correction, duplicate the background layer again, select that duplicate, and go to Filter, then Camera Raw Filter. Inside Camera Raw, select the Transform tool, which offers Vertical, Horizontal, Rotate, Scale, Aspect, and Offset controls, along with its own reference grid to double-check the result. Clicking the Auto option (the “A” button) analyzes the image and applies a perspective correction automatically in most cases, and a Level option is also available to force both horizontal and vertical lines toward true level and vertical alignment, prioritizing horizontal correction when the two would otherwise conflict.
When to Use Manual vs. Automatic Correction
Auto works well for the majority of typical architectural shots and is worth trying first since it’s fast and usually gets very close to a finished result, sometimes needing only a bit of cropping afterward to clean up any resulting edge distortion. The manual Free Transform approach from before remains useful for images Auto doesn’t handle well, or for a photographer who wants full manual control over exactly how the correction is applied.
More Free Photoshop Tutorials
- Select Subject and Refine Edges in Photoshop
- Three Ways to Use Blend If
- Curves vs Levels: Learn the Difference
Why a Grid Makes This So Much Easier
Trying to judge whether a building’s lines are actually straight just by eye is unreliable, especially on a subtle lean, which is exactly why a customizable grid or a set of guides is worth setting up before attempting any perspective correction at all. Once that reference is in place, both the manual Transform approach and Camera Raw’s automatic Transform tool become much easier to judge and fine-tune.
Final Thoughts
Straightening architectural photos in Photoshop comes down to two things: a reliable visual reference, whether that’s simple guides or a customized grid, and a correction method that fits the situation, a quick Auto pass in the Camera Raw Filter’s Transform tool for most shots, or manual Free Transform control for anything more heavily skewed. Building the habit of checking against a grid before and after any correction is what turns a rough guess into a genuinely straight result.
Enjoying This Free Tutorial? Go Further with PRO.
Unlock Full Sample Files, PSDs, and Hundreds of Masterclasses!
Download full project assets, original PSDs, and RAW images for every lesson
Unlimited access to our complete library of PRO Photoshop & Lightroom courses
Instant 4K Ultra HD streaming on all devices, anytime, anywhere
Full access to our entire library of Photoshop Actions, Presets, and LUTs
Flexible monthly and annual membership plans
Cancel anytime with zero hassle or commitments