There is a horizontal ruler guide set somewhere in the middle of an existing Photoshop CS5 document. How to get its exact position (number of pixels from the top) so I can create another guide 100px away from it?

5 Answers 5


In the menu choose "View > New Guide...", this will ask you for Horizontal or Vertical Orientation of the line you will make. Position being the location of the line on the paper (4th geometrical quadrant)

New Guide

  • 1
    The answers above is less more effective than this one.
    – onetdev
    May 31, 2013 at 7:40
  • 1
    The question is how to determine the value to specify as the location of the line.
    – martineau
    Oct 18, 2013 at 10:36
  • 3
    Bad because it doesn't answer the question, good because it solved the problem I ended up here trying to solve (placing a guide in a particular location). Voted up because I bet most people would be happy to just put the guide where they want it, and the real answer is lame (hover and watch info).
    – jerclarke
    Jan 8, 2015 at 21:33
  • 1
    This answer is how to create a new guideline, not how to get the position of an existing guideline!
    – Goowik
    Oct 18, 2016 at 12:36
  • 1
    Sorry @Goowik, I was answering the second part of his question, about setting it 100px away once he knows the position he wants, rather than move it by hand and missing by a few pixels. I don't like to edit my answer after it has been read, so I left it as is, sorry if it confuses you.
    – BillyNair
    Oct 18, 2016 at 23:53

I only have the CS4 version. In it the way I would try to determine this would be to use the cursor X & Y position displayed in the INFO tab of the Info window (F8 key). This displays the current location of the mouse cursor measured relative to the active document's top-left corner. With that visible all you need to do is move the mouse cursor so it's on top of the ruler guide and look at the X or Y value displayed. Zooming in on the image can make positioning the cursor precisely easier, so can enabling the Precise option in Cursor Preferences (not shown in screenshot below).

Alternatively, you may be able to read the position off the regular horizontal or vertical ruler that can be made to display (Ctrl-R or Cmd-R) on the edges of an image's window.

Below you can see there's a ruler guide (the light blue vertical line) with the mouse cursor directly on top of it. As you can also see, "950" is what is being displayed for the X coordinate in the INFO pane of the floating window over on the right -- which is exactly the position specified when the guide line was created for use in this example.

screenshot of Photoshop application window


Make sure the Info panel is visible, then start moving the old guide (Ctrl or Cmd and drag).

You should see something like this:

Mathematica graphics

  • The ΔX: and ΔY: fields (upper right) will show the offset from the original position.

  • The X: and Y: fields (lower left) will show the absolute position.

Drag back until the offset is zero, which means the guide is in its original position, then read the absolute position off of the corresponding X: or Y: field. If you wish to read the position in pixels you will need to set that measurement section of the Info panel to pixels, which is done by clicking the + symbol at the left side. Once you have read the position you can press Esc to cancel the move, which will make sure that you don't accidentally move the guide by a pixel or two as you release.

By the way you may find use in the GuideGuide plugin.


This script will get you a list of all guides in the active document:

function getGuides(doc) {
    var i, l;
    var g, d;
    var guides = [[],[]];

    for (i=0,l=doc.guides.length; i<l; i++) {
        g = doc.guides[i];
        d = (g.direction === Direction.HORIZONTAL) ? 0 : 1;
    return guides;

function listGuides(doc) {
    var report = "Guides in " + doc.name;

    var guides = getGuides(doc);
    var directions = ["Horizontal", "Vertical"];
    var units = (doc.guides.length) ?  doc.guides[0].coordinate.toString().split(" ")[1] : "px";

    var i, j, l;
    var d;

    for (d=0; d<2; d++) {
        report += "\n\n" + directions[d] + ":\n";
        if (guides[d].length) {
            guides[d].sort(function(a,b){return a-b;});
            for (i=0,l=guides[d].length; i<l; i++) {
                report += "\n" + (i+1) + ") " + guides[d][i] + " " + units;
        } else {
            report += "\nNone";
    return report;

if (BridgeTalk.appName === "photoshop") {
  • Very useful! To run this, save it as a .js file then use File > Scripts > Browse... to select the file. Oct 29, 2017 at 5:33
  • I just tried to use this script and got the following errors: Script Alert: undefined, followed by Error 21: undefined is not an object. Line 6 -> for (i=0,I=doc.guides.length; i<I; i++){ (Windows 10, Photoshop CS2). Any suggestions? Jul 10, 2023 at 3:59

on Adobe Creative Cloud (2017), when you drag and make the ruler guide, don't let go the left mouse button. It will show the current coordination of x-axis or y-axis.

  • 1
    Where the current coordinate will be shown? As a tooltip? Or at bottom where the status bar is?
    – Vylix
    Dec 5, 2017 at 6:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .