Terrain Ruggedness Index Calculator
Free Terrain ruggedness index Calculator for geomorphology & mapping. Enter variables to compute results with formulas and detailed steps.
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer
Terrain Ruggedness Index Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: TRI = sqrt(sum((zi - z0)^2)) for i = 1 to 8
Worked example โ TRI: 53.85 m | Classification: Level | Relief: 60 m
Formula
TRI = sqrt(sum((zi - z0)^2)) for i = 1 to 8
Where z0 is the elevation of the center cell and zi are the elevations of the eight surrounding neighbor cells in a 3x3 grid. The squared differences are summed and the square root is taken. The result is in the same units as elevation (typically meters).
Worked Examples
Example 1: Mountain Ridge Assessment
Problem:A 3x3 DEM grid has center elevation 1500 m with neighbors: 1520, 1480, 1510, 1490, 1535, 1475, 1505, 1495 m.
Solution:Squared differences: (1520-1500)^2 = 400 (1480-1500)^2 = 400 (1510-1500)^2 = 100 (1490-1500)^2 = 100 (1535-1500)^2 = 1225 (1475-1500)^2 = 625 (1505-1500)^2 = 25 (1495-1500)^2 = 25 Sum = 2900 TRI = sqrt(2900) = 53.85 m
Result:TRI: 53.85 m | Classification: Level | Relief: 60 m
Example 2: Steep Canyon Wall
Problem:Center elevation 800 m with neighbors: 950, 650, 880, 720, 970, 630, 850, 750 m.
Solution:Squared differences: (950-800)^2 = 22500 (650-800)^2 = 22500 (880-800)^2 = 6400 (720-800)^2 = 6400 (970-800)^2 = 28900 (630-800)^2 = 28900 (850-800)^2 = 2500 (750-800)^2 = 2500 Sum = 120600 TRI = sqrt(120600) = 347.28 m
Result:TRI: 347.28 m | Classification: Moderately Rugged | Relief: 340 m
Frequently Asked Questions
What is the Terrain Ruggedness Index and what does it measure?
The Terrain Ruggedness Index (TRI) is a quantitative measure of topographic heterogeneity developed by Riley, DeGloria, and Elliot in 1999. It calculates the square root of the sum of squared elevation differences between a central cell and its eight surrounding neighbor cells in a digital elevation model (DEM) grid. A TRI of zero indicates perfectly flat terrain, while higher values indicate increasingly rugged or complex terrain. TRI values typically range from 0 for plains to over 1,000 for extremely mountainous terrain. It is widely used in ecology, geomorphology, military terrain analysis, and land use planning to characterize landscape complexity.
How is TRI calculated from a 3x3 elevation grid?
TRI is calculated using a 3x3 moving window centered on the cell of interest. For each of the eight neighboring cells, the elevation difference from the center cell is squared. These eight squared differences are then summed and the square root is taken: TRI = sqrt(sum of (zi - z0)^2) for i = 1 to 8, where z0 is the center cell elevation and zi are the neighbor elevations. This gives a single value in the same units as elevation (typically meters). The moving window slides across the entire DEM to produce a TRI map where each pixel represents the ruggedness at that location. The 3x3 window means TRI reflects local-scale terrain variability.
What TRI values correspond to different terrain classifications?
Riley et al. proposed a classification scheme based on TRI values calculated from 30-meter DEMs. Level terrain has TRI below 80 meters, representing flat plains and valley floors. Nearly level terrain ranges from 80 to 120, typical of gently rolling hills. Slightly rugged terrain ranges from 120 to 160, found in moderately hilly areas. Intermediately rugged terrain ranges from 160 to 240, characteristic of hills and low mountains. Moderately rugged terrain ranges from 240 to 500, found in mountain foothills. Highly rugged terrain ranges from 500 to 700, representing steep mountain slopes. Extremely rugged terrain exceeds 700, found in the most precipitous mountain ranges.
What are the main applications of TRI in ecology and wildlife management?
TRI is widely used in wildlife ecology because terrain ruggedness strongly influences species distribution, habitat quality, and movement patterns. Mountain-dwelling species like bighorn sheep, snow leopards, and mountain goats preferentially use rugged terrain for predator avoidance and thermoregulation. Ecologists use TRI maps to identify critical habitat areas, design wildlife corridors, and predict species occurrence. Studies have shown that TRI is one of the strongest predictors of biodiversity in mountainous regions, with moderately rugged terrain supporting the highest species richness. TRI is also used in conservation planning to prioritize areas for protection based on topographic diversity.
How does DEM resolution affect TRI calculations?
DEM resolution significantly affects TRI values because the 3x3 window covers different ground distances at different resolutions. At 30-meter resolution, the window covers 90 x 90 meters, capturing local slope variations. At 90-meter SRTM resolution, the same 3x3 window covers 270 x 270 meters, smoothing out fine-scale features and producing lower TRI values for the same terrain. At 1-meter LiDAR resolution, the window captures very local microtopography. This means TRI classification thresholds must be calibrated to the DEM resolution being used. Comparing TRI values between studies requires matching resolutions or applying correction factors based on resolution ratios.
How does TRI differ from slope and other terrain metrics?
While slope measures the maximum rate of change in elevation between a cell and its neighbors (representing steepness in one direction), TRI captures the overall variability in all directions simultaneously. A location at the top of a uniform slope has high slope but moderate TRI, while a location in rough, broken terrain may have similar slope but much higher TRI. Other terrain metrics include surface roughness (ratio of surface area to planimetric area), topographic position index (TPI, comparing center elevation to neighborhood mean), and vector ruggedness measure (VRM, which accounts for slope and aspect variation). Each metric captures different aspects of terrain complexity for different applications.
What role does terrain ruggedness play in military and defense applications?
Terrain ruggedness is a critical factor in military operations, affecting vehicle mobility, line of sight, defensive positioning, and logistics. Military terrain analysis uses TRI and similar metrics to classify terrain as trafficable or non-trafficable for different vehicle types. Highly rugged terrain restricts vehicle movement but provides excellent defensive positions and concealment. The US Army uses terrain analysis systems that incorporate ruggedness indices to plan routes, identify landing zones for helicopters, assess fields of fire, and evaluate vulnerability to observation. Counter-insurgency operations particularly rely on terrain ruggedness analysis because irregular forces often exploit rugged terrain for tactical advantage.
How is TRI used in geomorphology and erosion studies?
Geomorphologists use TRI to characterize landform types, map geomorphic units, and study erosion processes. High TRI values often correlate with active erosion zones where slope processes like landslides, rockfalls, and debris flows are more frequent. TRI maps help identify areas of high erosion risk for land management and hazard assessment. Temporal TRI analysis using multi-date DEMs can detect topographic changes from volcanic eruptions, mass movements, or human activities like mining. Studies have found strong correlations between TRI and sediment yield in watersheds, with rugged terrain producing 3 to 10 times more sediment per unit area than gentle terrain.
Can TRI be calculated from satellite data or does it require survey data?
TRI can be calculated from any gridded elevation dataset, including satellite-derived DEMs and survey data. Freely available global DEMs include SRTM (30-meter resolution for most of the world), ASTER GDEM (30-meter), ALOS PALSAR (12.5-meter), and Copernicus DEM (30-meter). These satellite-derived products are adequate for regional-scale TRI analysis. For local studies requiring higher precision, LiDAR-derived DEMs at 1 to 5 meter resolution provide much more detailed TRI maps. Photogrammetric DEMs from drone surveys offer even higher resolution for site-specific studies. GIS software packages including QGIS, ArcGIS, and GRASS GIS all include built-in tools for TRI calculation from any DEM input.
What are the limitations of TRI as a terrain descriptor?
TRI has several limitations that users should understand. Its fixed 3x3 window means it only captures ruggedness at one spatial scale determined by the DEM resolution. Multi-scale analysis requires calculating TRI at multiple window sizes or DEM resolutions. TRI does not distinguish between terrain types with similar ruggedness values (such as a steep uniform slope versus broken, irregular terrain). It is sensitive to DEM errors and noise, which can inflate TRI values in flat areas. The classification thresholds proposed by Riley et al. were developed for 30-meter DEMs in specific landscapes and may not transfer to other resolutions or regions. For comprehensive terrain characterization, TRI should be used alongside complementary metrics like slope, aspect diversity, and topographic position.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎAtterberg Limits & Plasticity Index Calculator
Calculate atterberg limits & plasticity index with inputs, formulas, and instant results.
๐งฎLiquefaction Potential Index Calculator
Calculate liquefaction potential index with inputs, formulas, and instant results.
๐งฎBaseflow Index Calculator
Calculate baseflow index with inputs, formulas, and instant results.
๐งฎStream Power Index Calculator
Calculate stream power index with inputs, formulas, and instant results.
๐งฎAir Parcel Stability Index Calculator
Calculate air parcel stability index with inputs, formulas, and instant results.
๐งฎTopographic Wetness Index Calculator
Calculate topographic wetness index with inputs, formulas, and instant results.
๐งฎUpwelling Index Calculator
Calculate upwelling index with inputs, formulas, and instant results.
๐งฎEarth Energy Balance Calculator
Calculate earth energy balance with inputs, formulas, and instant results.