Ground Sample Distance Calculator - GSD, altitude, and sensor-width planner for drone mapping
A ground sample distance calculator that solves for GSD, altitude, or sensor width from drone camera specs in one calculation with explicit unit labels.
Ground Sample Distance Calculator
Results
What Is the Ground Sample Distance Calculator?
A ground sample distance calculator converts the geometry of a drone camera into the real-world size of one pixel on the ground. Enter altitude, focal length, sensor width, and image width once, and the calculator returns GSD, the flight altitude for a target GSD, or the sensor width for a target GSD, with unit labels in cm/px, mm/px, or m/px.
- • Planning a drone mapping mission: Pick the flight altitude that gives a target GSD before flying so post-processing produces survey-grade orthomosaics.
- • Comparing two camera payloads: Hold altitude fixed and switch between cameras to see how a wider sensor or longer lens changes the GSD.
- • Solving for a new sensor body: Keep altitude and target GSD fixed and read off the sensor width required to hit the resolution target.
- • Checking a published survey spec: Plug in the camera and altitude from a vendor spec sheet to confirm the GSD they advertise.
The same formula GSD = (sensorWidth x altitude) / (imageWidth x focalLength) drives every result, so switching between solve-for modes does not require a different workflow.
Drone mapping teams quote GSD in cm/px for typical surveys, mm/px for close-range inspection, and m/px for low-resolution regional mapping.
After this ground sample distance calculator gives you the working altitude, pair the result with the Drone Flight Time Calculator to estimate how long the survey mission can actually fly at that altitude on a single battery.
How the Ground Sample Distance Calculator Works
The calculator applies the standard photogrammetry formula to your camera inputs. Focal length converts from millimetres into the same length unit as sensor width and altitude.
- sensorWidth (S): Physical width of the imaging sensor. Enter it in the same length unit as altitude (metres or centimetres). 0.013 m is a typical 1/2.3 in drone sensor.
- altitude (A): Vertical distance between the camera and the ground at the moment of capture. Mission planners usually quote this in metres for fixed-wing flights and centimetres for indoor inspection work.
- focalLength (F): Lens focal length in millimetres. The calculator converts it to metres internally so the formula is unit-consistent.
- imageWidth (I): Horizontal pixel count of the camera frame. Most mapping cameras produce 4000 to 6000 px wide frames.
The altitude and sensor-width solve modes invert the same formula and read the working altitude or sensor width directly off the inputs.
Drone at 100 m altitude with a 10.62 mm lens
altitude = 100 m, sensor width = 0.013 m, focal length = 10.62 mm, image width = 5000 px
GSD = (0.013 x 100) / (5000 x 0.01062) = 0.02448 m/px
0.0245 m/px = 2.45 cm/px
Each pixel on the ground covers about 2.45 cm, so a typical drone survey at 100 m altitude gives roughly 2 to 3 cm/px GSD with this camera. Switch to the altitude solve-for mode with a 2 cm/px target to read off the working altitude from the same camera.
Working altitude for a 2 cm/px GSD target
target GSD = 2 cm/px, sensor width = 0.013 m, focal length = 10.62 mm, image width = 5000 px
altitude = (0.02 x 5000 x 0.01062) / 0.013 = 81.69 m
81.69 m flight altitude
Drop the drone to roughly 82 m to hit the 2 cm/px target with the same camera, matching the Omni Calculator worked example.
According to Omni Calculator (Ground Sample Distance), GSD equals sensor width times altitude divided by image width times focal length, and the same formula inverts to give the working altitude for a target GSD.
If the working altitude from this GSD planner pushes the survey into a longer mission, use the Battery Size Calculator to size the battery pack required to hold that altitude for the whole flight.
Key Concepts Explained
Four building blocks drive the math behind every drone mapping GSD, and the formula does not change between cameras or altitudes.
Ground sample distance
The real-world distance between the centers of two adjacent pixels on the ground. GSD sets the spatial resolution of an aerial survey and is quoted in length per pixel.
Focal length
The lens property that determines how much of the scene falls on the sensor. A longer focal length produces a smaller GSD at the same altitude.
Sensor width
The physical width of the imaging sensor. A wider sensor covers more ground per pixel at the same focal length, so it produces a larger GSD.
Image footprint
The on-ground width covered by one image frame, equal to GSD times the image width in pixels. Flight-line spacing and forward overlap reference the footprint.
These four ideas are the only inputs the formula needs, and they scale from a sub-250 g drone to a fixed-wing surveying aircraft without changing the math.
Once the GSD is known, the survey deliverable follows: 1 to 2 cm/px supports orthomosaic work, 3 to 5 cm/px supports vegetation indices, and 5 to 15 cm/px supports corridor mapping.
The same image-width and pixel-count math that drives image footprint in this ground sample distance calculator also drives the photos-per-clip math in the Time Lapse Calculator for time-lapse planning.
How to Use This Calculator
Set the solve-for mode, enter the camera and mission inputs, then read the GSD or the working altitude or sensor width from the result panel.
- 1 Pick the variable to solve for: Use GSD for a known altitude, altitude for a target GSD, or sensor width for a target GSD with a known altitude.
- 2 Enter the flight altitude: Type the planned altitude in metres or centimetres and pick the matching unit. Switch to centimetres for close-range inspection.
- 3 Enter the sensor width: Use the same length unit as altitude. 1/2.3 in drone sensors are about 0.013 m; APS-C is about 0.0235 m; full-frame is about 0.036 m.
- 4 Enter the focal length and image width: Focal length is in millimetres, image width is in pixels. Pull both numbers from the camera data sheet.
- 5 Set the target GSD if needed: When solving for altitude or sensor width, enter the target GSD in cm/px, mm/px, or m/px. Drone surveys typically pick 1, 2, or 5 cm/px.
- 6 Read the result and image footprint: The primary result reflects the solve-for mode. The image footprint row shows the on-ground width per frame.
Plan a 2 cm/px drone survey with the 10.62 mm, 13 mm-sensor camera from the Omni Calculator worked example. Leave solve-for on GSD, set altitude to 100 m, sensor width to 0.013 m, focal length to 10.62, and image width to 5000 px; the result reads 2.45 cm/px. Switch solve-for to altitude with target GSD 2 cm/px and the same camera tells you to fly at 81.69 m.
Once the ground sample distance calculator returns the planned GSD and footprint, run the survey output through the 3D Render Time Calculator to estimate how long the resulting point cloud and orthomosaic will take to render.
Benefits of Using This Calculator
Five practical gains when mission planning moves from a vendor spec sheet to this live calculator.
- • Pick an altitude before you fly: Read the working altitude for any target GSD in seconds, so the survey enters the field with the right flight plan.
- • Compare cameras without re-deriving the math: Switch the sensor width and focal length to see how a wider sensor or longer lens changes the GSD without re-running the formula by hand.
- • Solve for new payloads quickly: Use the sensor-width mode to read off the sensor size required to hit a target GSD for a new camera body.
- • Plan flight lines with the footprint row: The image footprint row reports the on-ground width per frame, which feeds straight into side overlap and flight-line spacing calculations.
- • Stay in your preferred unit: Toggle the altitude, sensor, and target GSD units independently, so you can enter centimetres for close-range inspection without converting everything by hand.
The orthomosaic GSD reported by the photogrammetry software should land within a few percent of this calculator's value when the survey is flown at the planned altitude.
After the survey flies at the altitude this GSD planner recommends, the raw image stack is large, so the Upload Time Calculator helps you plan how long it takes to upload the data from the field.
Factors That Affect Your Results
Three camera inputs and one mission input drive the answer, with two limitations that bound how the model maps onto real flights.
Flight altitude accuracy
Every centimetre of altitude error scales the GSD by the same factor because the formula is linear in altitude. Plan barometric and terrain-following tolerance before committing to a target GSD.
Focal length calibration
Consumer-grade drone cameras report a nominal focal length that varies a few percent with focus distance and temperature. Photogrammetric work benefits from a calibrated focal length.
Sensor width and image width pairing
Use the manufacturer's published sensor width (not the diagonal) and the active pixel count for image width. Mixing crop-mode pixel counts with full-frame sensor widths skews the GSD.
Unit consistency
Altitude and sensor width share a unit, focal length enters in millimetres, image width in pixels. The unit selectors keep this explicit.
- • The model assumes a flat ground plane perpendicular to the camera. Terrain relief and oblique angles change the effective GSD, especially in hilly survey areas.
- • GSD is a geometric quantity, not a measure of image sharpness or radiometric accuracy. Lens distortion, motion blur, and rolling-shutter artefacts affect the usable resolution of the final orthomosaic.
Treat the result as the geometric design GSD, then check the orthomosaic report from the photogrammetry software before quoting a final GSD.
According to Wikipedia (Ground sample distance), the distance between the centers of two consecutive pixels measured on the ground sets the spatial resolution of an aerial survey.
Smaller GSD means more pixels and larger raw image stacks, so pair this ground sample distance calculator with the Data Storage Converter to estimate the on-disk storage a high-resolution survey will produce at the planned GSD.
Frequently Asked Questions
Q: What is ground sample distance (GSD) in drone mapping?
A: Ground sample distance is the real-world distance between the centers of two adjacent pixels in the image, measured on the ground. A GSD of 2 cm/px means one pixel in the image corresponds to a 2 cm square on the ground, and that number sets the spatial resolution of the entire aerial survey.
Q: How do I calculate GSD from altitude and camera specs?
A: Multiply the sensor width by the flight altitude and divide by the product of the image width in pixels and the lens focal length. Keep altitude and sensor width in the same length unit, convert focal length from millimetres to that unit, and the result is the GSD in metres per pixel.
Q: What flight altitude gives a 2 cm/px GSD?
A: It depends on the camera. For a 1/2.3 in sensor with a 10.62 mm lens and a 5000 px image width, the working altitude is about 81.7 m. A full-frame sensor with a 35 mm lens at the same 5000 px image width can hit 2 cm/px from roughly 286 m.
Q: How does sensor width affect GSD?
A: A wider sensor at the same focal length covers more ground per pixel, which raises the GSD. Halving the sensor width halves the GSD at the same altitude, so smaller sensors need to fly lower to hit the same resolution target.
Q: Why does focal length change ground sample distance?
A: A longer focal length magnifies the scene, so each pixel covers less ground. Doubling the focal length halves the GSD at the same altitude, which is why survey drones tend to use longer focal lengths when high resolution is the goal.
Q: Is a smaller GSD always better for aerial surveys?
A: A smaller GSD means finer spatial resolution, but it also means more images, more storage, longer processing, and a lower flight altitude with more risk. Pick the smallest GSD that still meets the survey deliverable, typically 2 to 5 cm/px for orthomosaic work.