GSD Calculator – Ground Sample Distance

Ground Sample Distance Calculator

Estimate ground sample distance for aerial imagery, or leave one quantity blank to solve for the altitude, focal length, image width, sensor width, or GSD required by the same camera-geometry relationship.

GSD 4.500 cm/px Altitude 120.00 m Mode Equation check

Excel workbook ready for the demonstration values.

Camera and flight inputs

Use a dot for decimals; commas may separate thousands.

Height of the camera above the mapped ground or object.

Use the actual focal length, not a 35 mm-equivalent value.

Unit
px

Horizontal pixel count of the captured image.

Physical width of the active sensor area corresponding to image width.

Ground distance represented by one image pixel. Leave this or one other quantity blank to solve for it.

Live result

One relationship, five solvable quantities
Solved quantity Calculated GSD: 4.500 cm/px

With all five values entered, the calculator checks the GSD implied by the camera geometry.

Ground sample distance 4.500 cm/px Smaller GSD means finer ground sampling.
Altitude 120.00 m Effective camera-to-ground distance.
Mode Equation check Clear one numeric field to solve for that quantity.
Equation check Matches Entered GSD agrees with the calculated value.

GSD = (sensor width × altitude) ÷ (image width × focal length)

Sensor width and focal length must use the same physical-length basis; the calculator converts the selected units before evaluating the equation.

How to use this Ground Sample Distance calculator

What this calculator does. It applies the standard pinhole-camera geometry used for aerial-imagery planning: ground sample distance is the sensor width multiplied by camera altitude, divided by image width in pixels and focal length. GSD describes the linear ground spacing represented by one pixel. The calculator can also rearrange the same identity to solve for a missing altitude, focal length, image width, or sensor width. It is a planning and consistency tool; it does not by itself predict survey accuracy, blur, georeferencing error, lens distortion, terrain effects, overlap, lighting, or the quality of a final photogrammetric reconstruction. PIX4D's documentation likewise distinguishes GSD as pixel-center spacing on the ground and notes that terrain elevation and camera angle can make GSD vary within a project. See its ground sampling distance explanation for that practical context.

When to use it. Use this calculator when planning a drone mapping altitude for a target pixel size, checking whether a camera specification can meet a requested GSD, comparing how a longer focal length changes ground sampling at the same height, or validating that a quoted sensor width, focal length, image width, altitude, and GSD are internally consistent. It is also useful when reviewing metadata from an existing image set and you know four quantities but need the fifth.

How to calculate

  1. The calculator opens with a complete demonstration: 120 m altitude, 8.8 mm focal length, 4000 px image width, 13.2 mm sensor width, and 4.5 cm/px GSD. Those values already produce a valid result, so the Excel export is available immediately.
  2. Replace the demonstration values with your camera and flight data. If you want to solve for one quantity, clear exactly that numeric field and keep the other four complete. The Mode result changes to show what is being solved.
  3. Choose the matching Altitude unit, Focal length unit, Sensor width unit, and GSD unit. Changing a unit converts the current value rather than merely relabeling it.
  4. Read Solved quantity first, then confirm Ground sample distance, Altitude, and Equation check. If all five numeric fields are filled, the calculator recomputes GSD from the geometry and compares it with the GSD you entered.
  5. Select Download Excel to create a current-state .xlsx workbook containing the effective geometry, entered values, units, formula notes, and result. Reset clears the demonstration data; the export then stays disabled until at least four valid numeric quantities are entered again.

Input guide

Altitude (A) is a required positive decimal whenever it is not the one quantity being solved. It represents camera-to-ground distance and accepts a dot-decimal number in meters or feet, such as 120 m. Increasing altitude while holding the camera constant increases GSD proportionally, so each pixel covers a larger ground distance. Do not substitute height above takeoff when terrain elevation means the camera-to-surface distance is materially different. Altitude unit selects m or ft and converts an existing value on change.

Focal length of camera (f) is a required positive decimal unless it is the solved field. Enter the actual optical focal length in mm, cm, or inches; 8.8 mm is the demonstration value. Longer focal length decreases GSD at the same altitude, producing finer sampling. A common mistake is entering a 35 mm-equivalent focal length instead of the physical focal length used with the stated sensor size. Focal length unit converts among mm, cm, and in.

Image width (I) is the horizontal pixel count of the image and is entered in px, for example 4000. When it is an input, it must be a positive whole number because pixel columns are discrete. More horizontal pixels across the same physical sensor reduce GSD. If image width is the quantity being solved, the mathematical answer can be fractional; in practice, compare it with a real sensor mode that has a whole-pixel width.

Sensor width (S) is the physical width of the active imaging sensor corresponding to the image-width direction. It is a positive decimal in mm, cm, or inches; 13.2 mm is the startup example. A wider sensor at unchanged focal length, altitude, and pixel count increases GSD. Use the active imaging width from the relevant camera mode, not a marketing label such as “1-inch type.” Sensor width unit converts the entered value between mm, cm, and in.

Ground sample distance (GSD) is a positive decimal in cm/px, mm/px, m/px, or in/px; 4.5 cm/px is the demonstration value. Leave it blank to calculate GSD from camera geometry, or enter a target GSD and leave one other quantity blank to solve that requirement. Smaller GSD generally means finer spatial sampling. GSD unit converts the existing value while keeping its physical meaning unchanged. NASA Earthdata explains that spatial resolution is tied to the ground area represented by image pixels, which is why the numerical scale matters.

Output guide

Solved quantity is the calculator's primary result. With one blank field, it reports that field's required value using the currently selected unit. With all five numeric fields filled, it reports the GSD implied by the four camera-geometry quantities. Ground sample distance is the effective GSD used by the model, shown in your selected GSD unit. A lower positive value indicates finer pixel spacing on the ground, but it is not a standalone guarantee of map accuracy. Altitude reports the effective camera-to-ground distance in the selected altitude unit, whether entered or solved.

Mode identifies whether the page is checking a complete five-value set or solving one missing quantity. Equation check is most informative when all five inputs are present: “Matches” means the entered GSD agrees with the GSD calculated from sensor width, altitude, image width, and focal length within a small numerical tolerance; otherwise it shows the percentage difference. This is a consistency comparison, not a quality rating.

Worked example

The startup values use 120 m altitude, 13.2 mm sensor width, 8.8 mm focal length, and 4000 pixels of image width. Because sensor width and focal length are both in millimeters, their length units cancel in the ratio. The equation gives GSD = (13.2 × 120) ÷ (4000 × 8.8) meters per pixel = 0.045 m/px, which is exactly 4.500 cm/px. That is the first-open result shown above and the value stored in the startup workbook. If you clear Altitude (A) while retaining a 4.5 cm/px target, the rearranged equation returns 120 m. This reversibility is the reason the calculator can solve any one of the five quantities from the other four.

Learn more

For a second independent treatment of the same width-based formula, DJI Enterprise expresses GSD as flight height times sensor width divided by focal length times image width in its ground sample distance guide. For broader remote-sensing context, the U.S. Geological Survey describes spatial resolution as pixel size or GSD in its introduction to remote sensing data resolution.

How the formula behaves

Altitude and sensor width move GSD upward. Doubling altitude doubles GSD if the camera settings do not change. Doubling sensor width with the same pixel width also doubles GSD. These are proportional effects in the numerator of the equation.

Focal length and image width move GSD downward. Doubling either quantity halves GSD when the remaining inputs are fixed. This is why a longer lens or more pixels across the same sensor can produce finer sampling from the same flight height.

GSD describes sampling geometry, not end-to-end surveying accuracy. Flight stability, terrain, image overlap, camera calibration, processing method, control points, and positioning quality can all affect the accuracy of the final product.