Skip to main content

Terrain Ruggedness Index Calculator

Free Terrain ruggedness index Calculator for geomorphology & mapping. Enter variables to compute results with formulas and detailed steps.

Skip to calculator
Earth Science & Geology

Terrain Ruggedness Index Calculator

Calculate the Terrain Ruggedness Index (TRI) from a 3x3 elevation grid. Classify terrain from level to extremely rugged for ecology, geomorphology, and land use planning.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
1500 m
1500
Terrain Ruggedness Index
53.85 m
Classification: Level
Max Difference
35.0 m
Avg Difference
16.3 m
Min Difference
5.0 m
Local Relief
60.0 m
Avg Elevation
1501.1 m
Est. Slope
28.4 deg
TRI Classification Scale
Level
< 80 m
Nearly Level
80-120 m
Slightly Rugged
120-160 m
Intermediately Rugged
160-240 m
Moderately Rugged
240-500 m
Highly Rugged
500-700 m
Extremely Rugged
> 700 m
Note: TRI values and classifications are calibrated for 30-meter DEM resolution. Different resolutions require adjusted classification thresholds. For full terrain analysis, compute TRI across the entire DEM using GIS software.
Your Result
TRI: 53.85 m | Classification: Level | Relief: 60.0 m
Share Your Result
Understand the Math

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).

Last reviewed: December 2025

Worked Examples

Example 1: Mountain Ridge Assessment

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

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
Expert Insights

Background & Theory

The Terrain Ruggedness Index Calculator applies the following established principles and formulas. Earth science calculators draw on a wide range of measurement scales and physical principles that quantify natural phenomena across geological, atmospheric, and hydrological systems. Earthquake magnitude is most precisely described by the Moment Magnitude Scale (Mw), which replaced the original Richter scale for larger events. Mw is calculated as Mw = (2/3) log10(M0) โˆ’ 10.7, where M0 is the seismic moment in dyne-centimeters. The Richter scale, while still referenced colloquially, is a local magnitude (ML) measurement derived from peak seismograph amplitude at a standard 100 km distance. Wind intensity is classified using the Beaufort Scale, a 13-point empirical scale (0โ€“12) relating wind speed in knots to observable sea and land effects, with Beaufort 12 corresponding to hurricane-force winds above 64 knots. Tropical cyclone intensity is further categorized by the Saffir-Simpson Hurricane Wind Scale, which assigns Categories 1 through 5 based on sustained wind speed, correlating with expected structural damage. Mineral hardness is quantified on the Mohs scale (1โ€“10), comparing scratch resistance relative to reference minerals from talc (1) to diamond (10). Soil composition analysis measures the proportions of sand, silt, and clay by particle size, alongside organic matter content, bulk density, and porosity, which together determine engineering and agricultural suitability. Seismic wave velocity in rock varies by material: P-waves travel at approximately 5โ€“7 km/s in granite and 1.5 km/s in water, while S-waves travel at roughly 60% of P-wave speeds. Atmospheric pressure decreases with altitude according to the barometric formula: P = P0 ร— exp(โˆ’Mgh / RT), where M is molar mass of air, g is gravitational acceleration, h is altitude, R is the universal gas constant, and T is temperature in Kelvin. Standard sea-level pressure is 101,325 Pa. Tidal calculations use harmonic analysis of gravitational forcing by the Moon and Sun, with the principal lunar semidiurnal tidal constituent (M2) having a period of approximately 12.42 hours.

History

The history behind the Terrain Ruggedness Index Calculator traces back through the following developments. The systematic study of Earth's structure and processes spans millennia, but the scientific foundations were laid in the seventeenth century. In 1669, Danish naturalist Nicolas Steno published his principles of stratigraphy, establishing the laws of superposition, original horizontality, and lateral continuity โ€” foundational rules for reading rock layers that remain in use today. Scottish geologist James Hutton introduced the concept of uniformitarianism in 1788, proposing that geological processes observable in the present have operated throughout Earth's history at broadly consistent rates. This idea of deep time challenged prevailing biblical chronologies and set the stage for modern geology. Charles Lyell systematized these ideas in his landmark three-volume work Principles of Geology, published beginning in 1830, which directly influenced Charles Darwin's thinking on biological evolution during the voyage of the Beagle. The nineteenth century saw growing curiosity about continental shapes, but a coherent theory awaited Alfred Wegener, a German meteorologist who proposed continental drift in 1912, arguing that the continents had once formed a supercontinent he called Pangaea. His evidence included matching fossil records and geological formations across the Atlantic, but his mechanism was disputed for decades. The theory gained acceptance in the 1960s when seafloor spreading was confirmed through paleomagnetic studies, and plate tectonics emerged as the unifying framework of modern geoscience. The United States Geological Survey was established by Congress in 1879 to classify public lands and examine the geological structure, mineral resources, and products of the national domain. The twentieth century brought instrumental advances, including the global seismograph network deployed after World War II, initially to monitor nuclear tests, which dramatically improved earthquake detection and characterization. Satellite Earth observation began in earnest with the Landsat program launched in 1972, enabling continuous global monitoring of land use, glacier retreat, and vegetation patterns. Today, GPS networks, LIDAR scanning, and ocean-floor mapping provide centimeter-scale precision for tracking tectonic motion, sea level rise, and volcanic deformation in near real time.

Share this calculator

Explore More

Frequently Asked Questions

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.
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.
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.
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.
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.
The heat index combines air temperature and relative humidity to determine perceived temperature. The NWS uses a regression equation with nine terms. At 90F with 60% humidity, the heat index is about 100F. Heat index values above 105F indicate danger. Direct sunlight can add up to 15F to the heat index value.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

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:\n(1520-1500)^2 = 400\n(1480-1500)^2 = 400\n(1510-1500)^2 = 100\n(1490-1500)^2 = 100\n(1535-1500)^2 = 1225\n(1475-1500)^2 = 625\n(1505-1500)^2 = 25\n(1495-1500)^2 = 25\nSum = 2900\nTRI = 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:\n(950-800)^2 = 22500\n(650-800)^2 = 22500\n(880-800)^2 = 6400\n(720-800)^2 = 6400\n(970-800)^2 = 28900\n(630-800)^2 = 28900\n(850-800)^2 = 2500\n(750-800)^2 = 2500\nSum = 120600\nTRI = 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.

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.

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.

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.

How is the heat index calculated?

The heat index combines air temperature and relative humidity to determine perceived temperature. The NWS uses a regression equation with nine terms. At 90F with 60% humidity, the heat index is about 100F. Heat index values above 105F indicate danger. Direct sunlight can add up to 15F to the heat index value.

References

Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy