Soil Texture Classification Calculator
Understanding Soil Texture and the USDA Classification System
Soil texture describes the relative proportion of sand, silt, and clay particles in a soil sample. Those three fractions strongly influence how a soil behaves in the field and in the garden. A sandy soil usually drains quickly and warms up fast, but it may dry out sooner and hold fewer nutrients. A clay-rich soil can store more water and nutrients, yet it may drain slowly, compact easily, and become sticky when wet. Silt often falls between those extremes, contributing a smooth feel and moderate water-holding behavior. Because texture affects irrigation, root growth, nutrient management, erosion risk, and tillage timing, it is one of the first properties people learn when studying soils.
The United States Department of Agriculture, or USDA, organizes these particle-size mixtures into twelve standard texture classes. Instead of treating sand, silt, and clay as isolated numbers, the USDA system looks at how the three percentages work together. The familiar soil texture triangle is a graphical way to show that relationship. Every valid point on the triangle represents a combination of sand, silt, and clay that sums to 100 percent. This calculator performs the same classification in a text-based way. You enter the three percentages, and the script checks which USDA class best matches the combination.
Introduction
This calculator is designed for students, gardeners, land managers, and anyone who has soil particle percentages from a lab test or a rough field estimate. It converts those percentages into a USDA texture class such as sand, loam, silt loam, clay loam, or clay. That class gives you a quick summary of likely soil behavior. For example, a loam often suggests balanced drainage and water storage, while a sandy clay points to a soil with both coarse particles and a substantial clay fraction.
Although the result is a single label, the label carries practical meaning. Texture helps explain why one bed needs frequent watering while another stays wet for days, why some soils crust after rain, and why fertilizer leaches quickly in some places but not in others. In agriculture, texture informs irrigation scheduling, trafficability, seedbed preparation, and nutrient planning. In environmental work, it helps with stormwater infiltration estimates, erosion assessment, and habitat restoration decisions. In education, it gives learners a concrete way to connect percentages to real-world soil performance.
The calculator uses the same basic idea as the USDA triangle: each class occupies a region defined by ranges of sand, silt, and clay. Instead of plotting a point visually, the JavaScript checks the entered values against a sequence of conditions. If the values fit the rule for clay, sandy clay, loam, silt loam, or another class, the matching name is returned in the result area below the form.
How to Use
Using the calculator is straightforward. Enter the percentage of sand, the percentage of silt, and the percentage of clay in the three input fields, then select Classify. The result area will display the USDA texture class. If the three numbers do not add up to exactly 100, the calculator still returns a class based on the entered values, but it also adds a note showing the total. That note matters because a proper soil texture determination assumes the three fractions account for the whole mineral sample.
In most cases, your inputs should come from a laboratory particle-size analysis, such as sieving combined with sedimentation or hydrometer testing. Those methods are more reliable than visual estimates. However, the calculator can also be useful for classroom exercises and approximate jar-test results. If you are estimating by hand, remember that small errors can move a sample across a class boundary, especially near the edges between similar classes like loam and silt loam or clay loam and silty clay loam.
When entering values, use percentages rather than decimals. For example, type 40 for forty percent, not 0.40. Decimal percentages are acceptable because the fields allow tenths, so values such as 33.3, 41.7, and 25.0 can be entered directly. After the result appears, you can use the Copy Result button to copy the displayed classification text to your clipboard for notes, reports, or class assignments.
A simple way to think about the inputs is this: sand represents the coarse fraction, silt the medium fraction, and clay the fine fraction. As sand increases, soils usually become looser and drain faster. As clay increases, soils usually become denser and hold more water and nutrients. Silt can improve smoothness and water retention, but high-silt soils may also be prone to crusting and erosion. The calculator does not measure those properties directly, yet the texture class gives a useful first approximation.
Formula
The first rule behind the calculator is the mass-balance relationship that defines a valid texture sample. The percentages of sand, silt, and clay should sum to 100 percent:
Formula: S + Si + C = 100
Here, S is sand percentage, Si is silt percentage, and C is clay percentage. If the total differs from 100, the entered values do not represent a complete particle-size distribution. The script still evaluates the numbers, but the note in the result reminds you that the input set is not internally balanced.
The second part of the method is classification by ordered conditions. The USDA triangle is made of polygonal regions, and the script approximates those regions by checking threshold combinations. One of the preserved MathML examples from the page shows the style of rule used in the logic:
Formula: if clay ≥ 40 and sand ≤ 45 then "Clay"
That is only one branch. The full script continues through additional checks for sandy clay, silty clay, clay loam, silty clay loam, sandy clay loam, loam, silt loam, silt, sandy loam, loamy sand, and sand. The order matters because some ranges overlap at the edges. By evaluating the conditions in sequence, the calculator mirrors the intended USDA-style decision process used in the original JavaScript.
The table below summarizes the class ranges presented on this page. These ranges are useful for learning, but the actual result comes from the JavaScript conditions, so the script remains the final authority for what the calculator returns.
| Class | Sand (%) | Silt (%) | Clay (%) |
|---|---|---|---|
| Sand | ≥85 | ≤15 | <10 |
| Loamy Sand | 70–85 | ≤30 | <15 |
| Sandy Loam | 43–85 | 0–50 | 7–20 |
| Loam | 23–52 | 28–50 | 7–27 |
| Silt Loam | <50 | 50–80 | 0–27 |
| Silt | <20 | ≥80 | <12 |
| Sandy Clay Loam | 45–65 | ≤28 | 27–40 |
| Clay Loam | 20–45 | 15–53 | 27–40 |
| Silty Clay Loam | <20 | ≥40 | 27–40 |
| Sandy Clay | >45 | <28 | ≥35 |
| Silty Clay | <20 | >40 | ≥40 |
| Clay | ≤45 | ≤40 | ≥40 |
Example
Suppose a soil test reports 40% sand, 40% silt, and 20% clay. These values add to 100, so the sample is internally consistent. The clay content is below the clay-loam threshold, the silt content is not high enough for silt loam, and the combination falls into the balanced middle region commonly recognized as loam. If you enter those same values into the calculator, the result should read USDA texture class: Loam.
Now consider a second sample with 82% sand, 10% silt, and 8% clay. This soil is dominated by coarse particles, so it will likely drain quickly and hold less plant-available water than a loam. Depending on the exact thresholds, the calculator may classify it as sandy loam or loamy sand. That difference illustrates an important point: texture classes are not vague descriptions but defined regions. A small change in one fraction can move the sample from one named class to another.
A third example shows why the total matters. Imagine entering 50% sand, 30% silt, and 10% clay. The total is only 90%. The calculator will still evaluate the numbers and return a class based on the conditional logic, but it will also append a note such as (note: totals 90.0%). In practice, that means you should revisit the measurements or normalize the fractions before relying on the classification for reporting or decision-making.
Limitations and Assumptions
This calculator is useful, but it has limits. First, it classifies texture only from sand, silt, and clay percentages. It does not account for organic matter, soil structure, compaction, salinity, mineralogy, rock fragments, or biological activity. Two soils can share the same texture class and still behave differently because of those other properties. Texture is foundational, but it is not the whole story.
Second, the result depends on the quality of the input data. Laboratory measurements are usually more dependable than field estimates or jar tests. Approximate values can still be educational, but they may place a sample near a class boundary where a small error changes the label. If you are using the result for agronomic planning, engineering screening, or environmental reporting, measured data are preferable.
Third, the script uses a rule-based classification sequence rather than drawing the point on an actual triangle. That preserves the calculator's original JavaScript behavior and makes the logic transparent, but it also means the output follows the coded conditions exactly. In edge cases, a visual triangle tool or a laboratory report may present the classification in a slightly different way depending on rounding conventions and boundary handling.
Finally, the calculator assumes the percentages refer to the fine-earth fraction used for texture analysis. If the sample contains a large amount of gravel or coarse fragments, the field behavior may differ from what the texture class alone suggests. Likewise, spatial variability matters. A single field, garden, or restoration site can contain multiple textures across short distances. The calculator returns one class for one set of numbers, so it should be used as a clear starting point rather than a complete site description.
Why Texture Classification Matters in Practice
Once you know the texture class, you can make better first-pass judgments about water movement, nutrient retention, and management challenges. Coarse-textured soils such as sand and loamy sand usually have large pores, rapid infiltration, and low water-holding capacity. They are often easy to work, but they may need more frequent irrigation and careful fertilizer timing because nutrients can leach downward quickly. Fine-textured soils such as clay and silty clay usually hold more water and nutrients, but they may drain slowly, crust, or become difficult to till when wet. Intermediate classes such as loam, silt loam, and clay loam often balance storage and drainage, which is one reason they are so frequently discussed in crop and garden settings.
Texture also helps explain erosion patterns. Silty soils can be especially vulnerable to water erosion because the particles detach and move readily. Sandy soils may be more vulnerable to wind erosion if the surface is bare. Clayey soils can resist detachment in some situations because of cohesion, yet once structure breaks down they may seal at the surface and shed water. These are broad tendencies rather than guarantees, but they show why a simple texture label remains valuable in agronomy, hydrology, ecology, and land management.
For teaching, the USDA texture system is especially effective because it turns three percentages into a meaningful category without hiding the underlying numbers. Students can compare samples from different locations, discuss why one site supports different vegetation than another, and connect lab data to field observations. This calculator supports that learning process by giving immediate feedback while preserving the logic of the original classification script.
