Coordinate Grid Calculator

Enter your grid dimensions, origin point, and spacing to generate a complete coordinate grid in 2D space. Set the number of rows and columns, define your X and Y origin, and choose your step size — the calculator outputs all grid coordinate points in a structured table, plus a visual breakdown of your grid layout.

How many columns (X positions) in the grid

How many rows (Y positions) in the grid

X coordinate of the starting (top-left) point

Y coordinate of the starting (top-left) point

Distance between each column along the X axis

Distance between each row along the Y axis

Choose whether Y values increase going down (screen) or up (math standard)

Results

Total Grid Points

--

Grid Width (X span)

--

Grid Height (Y span)

--

Max X Coordinate

--

Max Y Coordinate

--

Points Per Row

Results Table

Frequently Asked Questions

What is a coordinate grid?

A coordinate grid is a two-dimensional arrangement of points defined by X and Y positions. Each point on the grid is uniquely identified by its (X, Y) pair, making it useful for mapping, targeting, design layouts, and scientific experiments.

How are the grid coordinates calculated?

Each point is calculated by starting at the origin (X₀, Y₀) and adding multiples of the step sizes. For column c and row r, the coordinate is: X = origin_x + (c × step_x) and Y = origin_y ± (r × step_y), depending on the Y-axis direction you select.

What does the Y-axis direction setting do?

In screen/display coordinates, Y typically increases downward (row 0 at top, row N at bottom). In standard mathematical coordinates, Y increases upward. This setting lets you match the convention used by your application or experiment.

How do I calculate coordinates of targets in a grid?

Enter the number of rows and columns, set your origin point (the top-left or center reference), and define the spacing between targets. The calculator then generates every (X, Y) coordinate pair in the grid, which you can read from the table below the result.

What is the maximum grid size supported?

This calculator supports up to 20 columns and 20 rows, producing a maximum of 400 coordinate points. For larger grids, you can adjust the step size to cover more physical or virtual space within those bounds.

Can I use non-integer step sizes?

Yes. Both X and Y step sizes support decimal values (e.g. 0.5, 1.25, 33.33). This is useful for real-world measurements where spacing is not a whole number, such as centimeters, degrees, or pixels.

What is the difference between grid width and grid height?

Grid width is the total span along the X axis, calculated as (columns − 1) × step_x. Grid height is the total span along the Y axis, calculated as (rows − 1) × step_y. These values represent the distance from the first to the last point in each direction, not the total number of units covered.

How can I use this calculator for eye-tracking or stimulus grids?

Set the origin to the top-left corner of your display or region of interest, enter the screen resolution or physical dimensions as your step sizes, and define how many targets you want in each direction. The output table gives you the precise (X, Y) coordinates for each target location.

More Math Tools