Does there exist software for Linux that will allow me to measure distances between two pixels? Possibly with a zoom feature.

  • Are the 2 pixels on the same line vertically or horizontally?
    – Nicolas Raoul
    Jul 14 '14 at 1:38
  • @NicolasRaoul They don't need to be, but usually, yeah. Jul 14 '14 at 4:31
  • Then you should state it in your question, and check whether the answer you accepted actually works in oblique.
    – Nicolas Raoul
    Jul 14 '14 at 7:56
  • @NicolasRaoul I hope you understand that measuring "diagonal" distances also involves specifying a metric, such as the Manhattan metric, ... and that would be too involved for this kind of question, I think. Jul 14 '14 at 10:14
  • Without a metric, it could just say "The distance between the two pixels is 249 pixels vertically, 1263 pixels horizontally". If you keep the current answer as accepted, better add "vertically or horizontally" to your question. Cheers :-)
    – Nicolas Raoul
    Jul 14 '14 at 11:15

There's screenruler for Gnome/GTK desktop environments, and kruler for KDE.

You can install either from most repositories:

sudo aptitude install screenruler
sudo aptitude install kruler


sudo yum install screenruler
sudo yum install kruler

I'm on KDE at the moment, so here's a screenshot for kruler:


Or if you want to take a rectangle selection measurement, there's xmeasure.

It runs from the terminal and needs compiling first. You can do that by running:

gcc -o xmeasure xmeasure.c -L/usr/X11R6/lib -lX11

In the same directory as where you've saved the xmeasure.c file, then run:


Here's a screenshot of the output (and compilation):


  • screenruler can only measure horizontal or vertical, not oblique.
    – Nicolas Raoul
    Jul 14 '14 at 8:01
  • No zoom in kruler Nov 25 '21 at 11:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.