SOFTWARE

How to Calculate Young's Modulus and 0.2% Yield Strength from a Tensile Curve: Fit Windows, Toe Correction and the Crosshead Trap

How to get Young's modulus, 0.2% offset yield strength, UTS and elongation from raw tensile data: choosing the fit window, why a high R² does not mean a right answer, toe correction, crosshead displacement errors, and uniform vs fracture elongation, with a free Python tool.

By Jerry Hu 11 min read 閱讀中文版
How to Calculate Young's Modulus and 0.2% Yield Strength from a Tensile Curve: Fit Windows, Toe Correction and the Crosshead Trap

Quick answer:

  1. Convert force and displacement to engineering stress and strain: σ = F/A₀, ε = ΔL/L₀.
  2. Fit a least-squares line over the part of the curve that really is straight. Its slope is Young’s modulus E.
  3. Shift that line 0.2% strain to the right. Where it crosses the curve is Rp0.2.
  4. The highest point of the curve is the ultimate strength Rm.

The three usual errors are a wrong fit window, an uncorrected toe, and calculating the modulus from crosshead displacement. The free tensile_props.py calculates these numbers and plots the construction so you can check it.

Why these numbers deserve care

Claims that a material gains “strength and ductility at once” rest on exactly these numbers. A famous example is the nanostructured copper of Wang and co-authors in Nature in 2002: their case for high ductility reports both 30% uniform elongation and 65% elongation to failure, two numbers that mean different things [1]. Li and co-authors’ dual-phase high-entropy alloys in Nature in 2016 claim in their title to overcome the strength–ductility trade-off [2].

If E comes from crosshead displacement, Rp0.2 from eyeballing and the elongation is undefined, such comparisons mean little. Lord and Morrell of the UK’s National Physical Laboratory note in Metrologia that parts of the user community doubt the reliability of tensile modulus data, and name strain measurement, alignment, data analysis and software validation among the key issues [3].

Step 1: Engineering stress and strain

σ = F / A₀        A₀: original cross-section (mm²); F in N gives σ in MPa
ε = ΔL / L₀       L₀: gauge length; ΔL: extension within the gauge

Use the measured dimensions of each specimen for A₀, not the nominal drawing size. A 2% error in area is a 2% error in strength and modulus.

Engineering stress uses the original area, so the curve falls after necking. That does not mean the material softens. Rp0.2, Rm and elongation are all defined on engineering values (ISO 6892-1, ASTM E8/E8M [4, 5]). For true stress, σ_t = σ(1+ε) and ε_t = ln(1+ε) hold only before necking. After that, strain localises and these equations no longer apply.

Step 2: Young’s modulus, where the fit window decides everything

E is the slope of the elastic part. That is simple in theory, but in practice nearly all the variation comes from which part you fit. Here is a simulated curve with known answers (E = 70 GPa, Rp0.2 = 280 MPa, stress noise SD 0.6 MPa) analysed with different windows:

Fit window (% of maximum stress)E (GPa)Rp0.2 (MPa)R²
5–2570.00280.00.99902
10–4070.07279.90.99958
20–6069.72279.90.99975
40–85 (into yielding)40.66289.80.90821
1–5 (mostly noise)71.90278.60.97994

Three lessons from this table:

  • The highest R² is not the most accurate. The 20–60 window has the best R², yet its E is further from the truth than 5–25. R² rises naturally with a wider range, so it can’t choose the window for you.
  • Too high a window badly underestimates E. Once it touches the onset of yielding, the slope drops and Rp0.2 goes wrong as well.
  • Too low a window is dominated by noise and the toe. Real data also have gripping and alignment effects at low stress, which usually make this worse.

In practice:

  1. Always look at it: overlay the fit on the curve, zoom into the elastic part, and confirm that the window lies on the straight part.
  2. Use one window rule for a whole batch, and write it in the Methods.
  3. Change the window and recalculate. If the result moves noticeably, that part isn’t straight enough, so go back and check the data.
  4. For plastics, follow the standard: ISO 527 specifies a chord modulus between 0.05% and 0.25% strain [6], so don’t choose your own window.

Step 3: Toe correction

Many curves start out curved, with the slope rising until the straight part begins. This toe comes from alignment and slack in the grips, and is not a material property. Left uncorrected, every strain value carries an extra offset.

The toe at the start of a tensile curve: the raw origin is at 0, and the elastic line extended downward meets zero stress at about 0.12% strain, where the corrected origin lies.

Extend the straight elastic line to zero stress: that point is the corrected strain origin, here 0.12% strain.

Subtract this value from all strains. ASTM D638 describes toe compensation for plastics [7]. The correction changes elongation values, but not the modulus, because the slope stays the same. State it in the Methods.

Step 4: The Rp0.2 construction

Left: the whole tensile curve with the maximum stress and the fracture point. Right: a zoom into the elastic and yield region, where the elastic line shifted by 0.2% strain crosses the curve at Rp0.2.

The Rp0.2 construction: a line parallel to the elastic line, shifted 0.2% strain to the right, crosses the curve. Simulated data.

  1. Draw the elastic line using E from Step 2 and the toe-corrected origin.
  2. Shift it right by 0.002 (0.2%) strain.
  3. Find the intersection with the curve, interpolating linearly between neighbouring points rather than taking the nearest data point.

Rp0.2 is a convention. Most metals have no distinct yield point, so everyone takes the stress at 0.2% residual plastic strain. That also makes it sensitive to E: a wrong E tilts the offset line.

When Rp0.2 is not the right number:

BehaviourReport
Low-carbon steel with a distinct yield pointUpper and lower yield strength ReH, ReL (ISO 6892-1) [4]
Plastics with a yield peak (such as PP, PA)Yield stress (first maximum) and its strain (ISO 527) [6]
Ceramics, glass and other brittle materialsNo yield; use flexural strength and Weibull statistics, see Error bars and bar charts

Crosshead displacement: the commonest and largest error

Without an extensometer, many people calculate strain from the crosshead displacement. But that displacement also contains deformation of the frame, the grips and the specimen shoulders, and even grip slip.

The same material curve measured with an extensometer and from crosshead displacement. The crosshead curve has a clearly lower elastic slope.

Simulation: 20 mm² cross-section, 50 mm gauge length, frame plus grips assumed to have a stiffness of 100 kN/mm.

In this example the true E is 200 GPa, but crosshead displacement gives only 111 GPa, nearly half. Kalidindi and co-authors in Experimental Mechanics treat how to measure and subtract machine compliance in compression testing [8].

One useful fact: if machine deformation were perfectly linear, Rp0.2 in this simulation would still be 350 MPa, because the offset line uses the same (wrong) slope and the error cancels. That is no reason to relax, since real slip, alignment and shoulder deformation are not linear. Workable rules:

  • E: always use an extensometer, strain gauge or DIC. Don’t report a crosshead value as the material’s modulus.
  • Rp0.2 and Rm: Rm needs only force and is unaffected. Without an extensometer, say so and treat Rp0.2 as an estimate.
  • Without an extensometer, write “strain was calculated from crosshead displacement” in the Methods so readers can judge.

Strength and elongation: three numbers that get mixed up

SymbolMeaningHow to get it
RmMaximum engineering stressHighest point of the curve
AgUniform plastic elongationStrain at Rm minus the elastic part (Rm/E); ductility before necking
AElongation after fractureDefined in ISO 6892-1 by fitting the broken pieces together and measuring [4]

The 30% and 65% reported by Wang and co-authors reflect the difference between the first two concepts [1]. Uniform elongation shows resistance to necking, while elongation to failure includes local deformation after necking.

Elongation to failure depends on specimen size. Zhao and co-authors showed in Scripta Materialia with ultrafine-grained copper that it increases with greater thickness or shorter gauge length: the thickness effect comes from necking geometry, and the gauge-length effect from the definition of strain itself [9]. So numbers from miniature specimens can’t be compared directly with standard ones. When comparing elongation, always state the gauge length and cross-section.

Two more cautions:

  • Strain at Rm is sensitive to noise, because the curve is flat near its peak. On a simulated curve with a known value of 8.00%, adding 0.6 MPa of noise and simply taking the maximum gave 8.63%. Report fewer significant figures, or smooth before picking the point.
  • Be clear about “toughness”. The area under a tensile curve is energy absorbed per unit volume (MJ/m³), which is quite different from fracture toughness (K, J, measured with a pre-crack). Ritchie’s Nature Materials article on strength versus toughness deals mainly with the mechanisms of the latter [10]. Call the area what it is rather than just “toughness”.

Do it in one step with the free tool

tensile_props.py reads a two-column CSV or TXT and skips header lines automatically:

pip install numpy matplotlib

# columns are force (N) and extension (mm); give the area and gauge length
python tensile_props.py al_tensile.csv --area 20 --gauge 50

Output (simulated data, true E = 70 GPa, Rp0.2 = 280 MPa):

Young's modulus E       70.09 GPa   (R2 = 0.99923, fit 0.025-0.129 % strain)
Rp0.2                   280.3 MPa
UTS (Rm)                363.5 MPa
Strain at UTS            8.63 %
Uniform plastic Ag       8.11 %
Strain at last point    13.00 %   (measured from the fitted zero-stress point)
Strain origin moved     0.000 %   (toe correction)

It also saves a plot of the fit window, elastic line, offset line and intersection. Please do look at this plot, and adjust with --window 10 40 if the window is wrong. The core is only a few lines:

e, b = np.polyfit(strain[i_lo:i_hi], stress[i_lo:i_hi], 1)   # least squares inside the window
eps0 = -b / e                                                # toe correction: line meets zero stress
diff = stress - e * (strain - eps0 - 0.002)                  # curve minus the 0.2% offset line
k = i_hi + np.nonzero(diff[i_hi:] <= 0)[0][0]                # first point below the offset line
t = diff[k-1] / (diff[k-1] - diff[k])                        # linear interpolation
rp02 = stress[k-1] + t * (stress[k] - stress[k-1])

How to write it

Experimental:

Tensile tests were performed at room temperature at a nominal strain rate of 1 × 10⁻³ s⁻¹ on dog-bone specimens with a gauge length of 25 mm and a cross-section of 6 × 2 mm², following ASTM E8/E8M. Strain was measured with a 25 mm clip-on extensometer. Young’s modulus was obtained by least-squares fitting between 10 % and 40 % of the maximum stress, and the yield strength was determined by the 0.2 % offset method. Five specimens were tested per condition.

Caption:

Engineering stress–strain curves of the alloys. One representative curve is shown per condition. Values in the table are mean ± SD of five specimens.

Note: the strain rate, sizes and window above are examples, so replace them with your own. For statistics and how to count n, see Error bars and bar charts.

Checklist before submission

  • A₀ uses the measured dimensions of each specimen.
  • The fit was overlaid on the curve, the window is on the straight part, and one rule was used for the batch.
  • R² was not used to choose the window.
  • Any toe was corrected, and the Methods say so.
  • E was not calculated from crosshead displacement; if strain came from the crosshead, the Methods say so.
  • Steels with a yield point report ReH and ReL, and plastics report yield stress, rather than forcing Rp0.2.
  • Elongation is labelled as uniform or to failure, with gauge length and cross-section stated.
  • The area under the curve isn’t called fracture toughness.
  • Beyond a representative curve, the mean and scatter of several independent specimens are given.

Related: Error bars and bar charts, Journal figure sizes and DPI and How to write the Experimental section.

References

  1. Y. Wang, M. Chen, F. Zhou, E. Ma, “High tensile ductility in a nanostructured metal,” Nature 419, 912–915 (2002). doi:10.1038/nature01133
  2. Z. Li, K. G. Pradeep, Y. Deng, D. Raabe, C. C. Tasan, “Metastable high-entropy dual-phase alloys overcome the strength–ductility trade-off,” Nature 534, 227–230 (2016). doi:10.1038/nature17981
  3. J. D. Lord, R. M. Morrell, “Elastic modulus measurement—obtaining reliable data from the tensile test,” Metrologia 47, S41–S49 (2010). doi:10.1088/0026-1394/47/2/S05
  4. ISO 6892-1, Metallic materials — Tensile testing — Part 1: Method of test at room temperature.
  5. ASTM E8/E8M, Standard Test Methods for Tension Testing of Metallic Materials.
  6. ISO 527-1, Plastics — Determination of tensile properties — Part 1: General principles.
  7. ASTM D638, Standard Test Method for Tensile Properties of Plastics.
  8. S. R. Kalidindi, A. Abusafieh, E. El-Danaf, “Accurate characterization of machine compliance for simple compression testing,” Experimental Mechanics 37, 210–215 (1997). doi:10.1007/BF02317861
  9. Y. Zhao et al., “Influence of specimen dimensions on the tensile behavior of ultrafine-grained Cu,” Scripta Materialia 59, 627–630 (2008). doi:10.1016/j.scriptamat.2008.05.031
  10. R. O. Ritchie, “The conflicts between strength and toughness,” Nature Materials 10, 817–822 (2011). doi:10.1038/nmat3115

Dozens of specimens at a time? The script handles one curve per run. Mech Studio is a free Windows download with no Python needed, and your data is never uploaded:

  • reads CSV, TXT and Excel exports from testing machines, saves column mappings as profiles, and imports whole folders;
  • tensile, compression, 3-point flexure and lap shear, with fit windows you drag directly on the curve;
  • calculates mean ± SD and 95% CI, and exports journal-sized figures and Excel tables.

Free mode analyses 3 specimens per project. For unlimited specimens, PDF test reports, Weibull and spec limits, buy a Personal / Academic key ($49).

#Python#Data Visualization#Paper Writing#Mechanical Properties
SOFTWARE

Related Posts