Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Samples (required)
-
Default 4 rows
About this input
One row per soil sample: its id (1 to 32 characters, used to join the other tables), and optionally the borehole it came from and its top and bottom depth in metres (0 to 500, bottom not above top).
Column Range or allowed values Sample ID Not declared Borehole ID Not declared Top depth (m) 0 to 500 Bottom depth (m) 0 to 500 - Specimens (required)
-
Default 12 rows
About this input
One row per sheared specimen: its sample id, the normal stress (1 to 5,000 kPa), the peak shear stress (0 to 5,000 kPa) and, if measured, the residual shear stress (0 to 5,000 kPa, not above the peak).
Column Range or allowed values Sample ID Not declared Normal stress (kPa) 1 to 5000 Peak shear stress (kPa) 0 to 5000 Residual shear stress (kPa) 0 to 5000 - Stress unit shown (required)
-
Default kPa Allowed kPa, psf
About this input
The unit the cohesion, the stresses and the residuals are shown in: kPa or psf (1 psf = 0.0478802589803 kPa). The tables always take kPa.
- Sample Group (required)
-
Default 4 rows
About this input
One row per sample: its id, an optional stratum name (samples with the same name also get a combined envelope through all their specimens) and its drainage label, Drained (slow shear) or Not confirmed drained.
Column Range or allowed values Sample ID Not declared Stratum Not declared Drainage Drained (slow shear), Not confirmed drained - Envelope shown on the chart (required)
-
Default Stratum 1 Allowed First fitted, Sample 1, Sample 2, Sample 3, Sample 4, Sample 5, Sample 6, Sample 7, Sample 8, Sample 9, Sample 10, Sample 11, Sample 12, Sample 13, Sample 14, Sample 15, Sample 16, Sample 17, Sample 18, Sample 19, Sample 20, Stratum 1, Stratum 2, Stratum 3, Stratum 4, Stratum 5, Stratum 6, Stratum 7, Stratum 8, Stratum 9, Stratum 10, Stratum 11, Stratum 12, Stratum 13, Stratum 14, Stratum 15, Stratum 16, Stratum 17, Stratum 18, Stratum 19, Stratum 20
About this input
The envelope the chart shows: First fitted (the default), Sample k (the k-th sample of the fit tables) or Stratum k (the k-th stratum).
- Envelope fit (required)
-
Default Fit cohesion Allowed Fit cohesion, Cohesion zero
About this input
How the envelope is fitted: Fit cohesion fits both the cohesion intercept and the slope; Cohesion zero forces the line through the origin, which suits clean sands, whose fitted cohesion is usually an artefact of the test.
- Lowest acceptable R-squared (required)
-
Default 0.95 Range 0 to 1
About this input
The lowest R-squared a fitted envelope may have before the status asks you to look at the specimen residuals, from 0 to 1. The default 0.95 is a screening value you can change, not a value from a standard.
Outputs
- Peak R-squared of the envelope shown
-
No unit declared
About this output
R-squared of the peak envelope shown (uncentred with Cohesion zero). When the envelope is fitted with cohesion and every shear stress is equal, the centred R-squared is 0/0; it is reported as 1 and the status OK by convention, because the flat line fits exactly. With Cohesion zero the uncentred R-squared is computed as usual (1 only when every shear stress is zero).
- Residual cohesion of the envelope shown
-
Unit kPa
About this output
The residual cohesion intercept of the envelope shown, in the stress unit shown; blank without three residual readings at different normal stresses.
- Peak cohesion of the envelope shown
-
Unit kPa
About this output
The peak cohesion intercept of the envelope shown, in the stress unit shown; 0 with Cohesion zero; blank when it could not be fitted.
- Peak friction angle of the envelope shown (degrees)
-
No unit declared
About this output
The peak friction angle of the envelope shown, in degrees (the angle whose tangent is the fitted slope).
- Residual friction angle of the envelope shown (degrees)
-
No unit declared
About this output
The residual friction angle of the envelope shown, in degrees.
- Status code
-
No unit declared
About this output
The status as a short code for the page (OK, CHECK or INPUT_INVALID); not shown to the reader.
- Summary
-
No unit declared
About this output
One line: the samples and specimens read, how many envelopes were fitted and the range of the peak friction angles.
- Residual R-squared of the envelope shown
-
No unit declared
About this output
R-squared of the residual envelope shown.
- Specimen Residuals
-
No unit declared
About this output
For each specimen: its sample, its normal stress, and how far its peak and residual shear stresses lie above (positive) or below (negative) its sample's fitted envelope, in the unit shown.
- Envelope shown on the chart
-
No unit declared
About this output
The sample or stratum whose envelope the chart and the envelope points show.
- Model status
-
No unit declared
About this output
OK, CHECK: with a sentence to read before using the results, or NOT VALID: with the first problem to fix, in which case no result is shown.
- Peak Fit
-
No unit declared
About this output
The peak strength envelope of each sample, then of each stratum: the cohesion (in the unit shown), the friction angle in degrees and R-squared. Blank where the sample could not be fitted.
- Envelope Points
-
No unit declared
About this output
The points the chart draws for the envelope shown: each specimen's normal stress, its measured shear stress and the fitted shear stress at that normal stress, first for the peak, then for the residual strength.
- Fit Detail
-
No unit declared
About this output
For each fit: the number of specimens, the standard error of the peak envelope slope, and the row status in plain words (fitted, or why not).
- Largest fitted peak friction angle (degrees)
-
No unit declared
About this output
The largest peak friction angle of all fitted samples and strata, in degrees.
- Row Status
-
No unit declared
About this output
Every input row in use, Samples, then Sample groups, then Specimens: Used, or Excluded with the reason. An excluded row is left out of every fit; the other rows are still computed.
- Samples fitted
-
No unit declared
About this output
How many samples have a fitted peak envelope (three or more specimens at two or more different normal stresses).
- Smallest fitted peak friction angle (degrees)
-
No unit declared
About this output
The smallest peak friction angle of all fitted samples and strata, in degrees.
- Residual Fit
-
No unit declared
About this output
The residual strength envelope of each sample, then of each stratum, from the specimens with a residual reading: the cohesion, the friction angle in degrees and R-squared. Blank where there are too few residual readings.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This calculator interprets a series of direct shear tests: for each sample, and for each group of samples you name as one stratum, it fits a straight Mohr-Coulomb failure line through the specimens' shear stresses at failure and reports the cohesion intercept, the friction angle and the quality of the fit, separately for peak and for residual strength. It also reports each specimen's distance from its line, so an odd specimen stands out.
It is an interpretation aid for education and preliminary work. The parameters describe the specimens as tested; choosing design strength for a footing, a wall or a slope needs the test conditions, the soil's variability and professional judgement. Only straight failure lines are fitted.
Inputs and units
- Samples: a sample name, the boring it came from and its top and bottom depth in metres.
- Sample details (every sample): an optional stratum name, so that samples sharing it are also fitted together, and whether the test is confirmed as drained (sheared slowly enough for no excess pore pressure).
- Specimens: one row per specimen, with its sample, the normal stress it was sheared under and its peak shear stress, all in kilopascals, and optionally its residual shear stress after large displacement.
- Fit settings: whether the line fits a cohesion intercept or passes through the origin (cohesion zero), the least acceptable fit quality, the stress unit for the results (kPa or psf; 1 psf is 0.0478802589803 kPa), and which sample or stratum the chart shows (the first fitted one unless you choose another).
Governing relationships
The failure line is
τ = c + σ tan φ
with σ the normal stress, τ the shear stress at failure, c the cohesion intercept and φ the friction angle.
For n specimens, the least-squares line with an intercept has
b = (n Σστ − Σσ Στ) / (n Σσ² − (Σσ)²) and c = (Στ − b Σσ) / n
and the line through the origin has b = Σστ / Σσ² and c = 0. In both cases φ = arctan b. The fit quality is
R² = 1 − SSres / SStot for the line with an intercept, and the uncentred form for the line through the origin,
stated as such. For the line with an intercept, when every shear stress in a fit is the same, SStot is zero and the
formula is 0/0; the line fits those points exactly, so the workbook reports R² = 1 and the fit passes the
minimum-R² check. Each specimen's residual is τ − (c + b σ).
Calculation sequence
- Check the settings and that every sample is entered once. Check each table row; a bad row, or a row naming a sample that is not entered, is excluded with its reason and the other rows are still used.
- Group the specimens by sample, and by stratum name where one is given.
- For each sample and each stratum with at least three specimens at two or more different normal stresses, fit the peak line, and the residual line where residual stresses are entered.
- Compute the friction angle, the fit quality, the standard error of the slope and each specimen's residual.
- Flag a negative fitted cohesion, a fit below the least acceptable quality, an unconfirmed drainage condition and a friction angle outside 0 to 60 degrees.
- Convert the reported stresses to the chosen unit.
Outputs and interpretation
The summary gives the number of samples fitted. The peak and residual tables give each sample's and each stratum's cohesion, friction angle and fit quality. The fit detail gives the number of specimens used, the standard error of the slope and the row status. The input row status table says whether each entered row was used or excluded, and why. The residual table gives every specimen's distance from its line; a large one marks a specimen worth checking. The chart shows the measured points and the fitted lines of the sample or stratum chosen under Fit settings, and the values of that line are listed beside it.
Worked examples
The lab values in the examples are illustrative data for the shared synthetic sample sites; they are not from a real property.
- Business-park silty sand for footings. Four samples, peak and residual, combined as one stratum.
- Retaining-wall backfill from three suppliers. Three sources at wall-level stresses; compare with cohesion zero.
- Highway cut clay residual strength. Two clay samples at four normal stresses, peak and residual.
- Warehouse pad compacted fill check. Three fill samples combined, against the fit-quality threshold.
- Basement sand series with a bad specimen and a short set. One odd specimen, one sample with two specimens.
Validation and status logic
The status reads OK, CHECK: (results with a caution) or NOT VALID: (no results). The first rule that applies wins:
| Condition | Returned status |
|---|---|
| A setting is not in its list or range | NOT VALID: naming the setting |
| No sample or no specimen is entered | NOT VALID: saying so |
| A sample is repeated in the Samples table or in the sample details | NOT VALID: naming the row and the sample |
| A row holds a value outside its allowed range, a residual shear stress above the peak, a missing drainage label, or names a sample that is not entered | CHECK: giving how many input rows were excluded; the row status table says why |
| A sample has fewer than three specimens, or only one normal stress | CHECK: giving how many samples could not be fitted; each row says why |
| A fit with a cohesion intercept gives a cohesion below zero | CHECK: naming the sample and suggesting the cohesion-zero line |
| A fit is below the least acceptable quality | CHECK: naming the sample and its fit quality |
| A sample is not confirmed as drained | CHECK: naming the sample |
| A friction angle is outside 0 to 60 degrees | CHECK: naming the sample |
| The chart choice names no sample or stratum in the fit tables | CHECK: saying so; the chart shows the first fitted line |
| None of the above | OK |
Assumptions and limitations
- The specimens were consolidated and sheared drained, so the stresses are effective stresses.
- The failure line is straight over the stresses tested; strength at stresses outside that range is not implied.
- The shear plane is forced by the box, so a direct shear result may differ from other strength tests.
- A cohesion fitted to a clean sand is usually an artefact of the line, not a true bond.
- The least acceptable fit quality is the reader's choice, not a value from a standard.
Restrictions and non-computing states
The page opens with empty tables; choose a worked example or enter your own rows, then press Calculate. The input rules refuse a value outside its allowed range before calculation. In the calculation, a bad row is excluded and named in the row status table while the other rows are still fitted, and a sample without enough specimens at different normal stresses is reported without a line rather than fitted.
Errors and warnings
A rejected entry means the request did not satisfy the published input rules. NOT VALID means the series cannot be interpreted as entered, and names the first problem. CHECK means the fitted lines are reported but one or more need attention: read each row's status. A calculation-service failure is an availability error, not a test result.
References
Sources and further reading
- ASTM International, Standard Test Method for Direct Shear Test of Soils Under Consolidated Drained Conditions, ASTM D3080/D3080M-23. astm.org. The test method whose results are interpreted here, which calls for three or more specimens at different normal stresses. It is sold by ASTM; this page reproduces none of its tables or wording.
- Federal Highway Administration, Soils and Foundations Reference Manual, Volume I, FHWA NHI-06-088 (December 2006), section 5.5.2.3. fhwa.dot.gov. A public description of the direct shear test and of the Mohr-Coulomb failure line it is used to define.
The applicable test standards, project requirements and review by a qualified geotechnical professional govern the selection of design strength parameters.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.