Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Axial Hex Grid Distance

Count shortest unobstructed moves between two axial hex coordinates.

Gaming workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaSteps = (Math.abs(q2-q1)+Math.abs(r2-r1)+Math.abs(q2-q1+r2-r1))/2
Sources and model references

Made for real tasks

  • Count shortest unobstructed moves between two axial hex coordinates.
  • Compare two scenarios by changing the inputs and rerunning the tool.
Explore step-by-step workflows →

Worked example

Inputs

Q1
0 hexes
R1
0 hexes
Q2
3 hexes
R2
-2 hexes

Expected results

Steps
3 moves

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter q1, r1, q2, r2.
  2. Use consistent units shown beside each input. Run the calculation and review the assumptions below.

Try this example

{
  "q1": 0,
  "r1": 0,
  "q2": 3,
  "r2": -2
}

Accuracy and scope

Axial hex coordinates only; ignores obstacles, elevation and terrain costs.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.