Calculation drill
Standard calculation problems from materials science courses and exams, with new numbers every time. Solve each one yourself and enter the answer with its unit: you will see whether it is right, the worked steps showing which values go into which formula, and the common mistake your number points to. You can also open the related calculator with the same numbers to check.
The numbers are practice values drawn from ranges each time. Property values come from the data of this site’s calculators (sources below) or are stated in the problem as assumptions. For real design work, use values from standards and material data sheets.
The URL holds only the problem type and a seed (?t=…&s=…), never the answer. Your record is saved only in this browser.
Set results
Types you got wrong
Your record
Problem types (38)
Click a type to get one problem of that type. Click a field name to start with that field selected.
Crystals
- Interplanar spacing (cubic) ±1 %Find the spacing of (hkl) planes from the lattice parameter and Miller indices
d = a/√(h² + k² + l²) - Diffraction angle 2θ (Bragg’s law) ±0.5 %Find the 2θ angle at which an (hkl) reflection of a cubic metal appears
2d sinθ = λ, d = a/√(h² + k² + l²) - Lattice parameter from a peak position ±0.5 %Find the lattice parameter a of a cubic crystal from the 2θ of an (hkl) XRD peak
d = λ/(2 sinθ), a = d√(h² + k² + l²) - Theoretical density (cubic metal) ±1 %Find the density of a crystal from the lattice parameter, atomic weight and atoms per unit cell
ρ = nM/(N_A a³) - Lattice parameter and atomic radius ±1 %For BCC and FCC, find the atomic radius from the lattice parameter, or the reverse
BCC: √3a = 4r, FCC: √2a = 4r - Planar density (BCC, FCC) ±1 %Find the number of atoms per unit area on the (100), (110) and (111) planes
planar density = atoms centered on the plane / plane area - Packing fraction of an ionic crystal ±1 %For rock-salt and CsCl structures, find the packing fraction from the ionic radii
packing fraction = n·(4/3)π(r₊³ + r₋³)/a³
Phase diagrams
- Lever rule (phase mass fractions) ±1 %At a point in a two-phase field, find the phase mass fractions from the tie-line ends
W = (C_other end − C₀)/(C_other end − C_phase) - Proeutectoid ferrite and cementite ±1 %Find the microconstituent fractions just below 727 °C in hypo- and hypereutectoid steels
hypo: W_α′ = (0.76 − C₀)/(0.76 − 0.022); hyper: W_Fe₃C′ = (C₀ − 0.76)/(6.70 − 0.76) - Primary phase and eutectic fractions ±1 %In a eutectic alloy, find the primary, eutectic and total phase fractions just below the eutectic temperature
hypoeutectic: W_E = (C₀ − C_α)/(C_E − C_α) - Converting wt% and at% ±1 %Convert mass percent and atomic percent in a binary alloy using atomic weights
x_B = (w_B/M_B)/(w_A/M_A + w_B/M_B)
Diffusion and defects
- Diffusion coefficient (Arrhenius) ±2 %Find the diffusion coefficient at a temperature from D₀ and the activation energy Q
D = D₀ exp(−Q/RT) - Carburizing depth (error function) ±2 %Find the depth that reaches a given carbon content when the surface concentration is held constant
(Cₓ − C₀)/(Cₛ − C₀) = 1 − erf(x/(2√(Dt))) - Carburizing time (error function) ±2 %Find how long carburizing takes for a depth to reach a target carbon content
(Cₓ − C₀)/(Cₛ − C₀) = 1 − erf(x/(2√(Dt))) - Diffusion time at another temperature ±2 %Since equal Dt gives the same profile, find the time needed at a different temperature
t₂ = t₁·D₁/D₂ = t₁ exp[(Q/R)(1/T₂ − 1/T₁)] - Steady-state flux (Fick’s first law) ±1 %Find the steady-state diffusion flux from concentrations at two positions in a plate
J = −D dC/dx ≈ D(C₁ − C₂)/(x₂ − x₁) - Equilibrium vacancy concentration ±2 %Find the number of vacancies per cubic meter from the formation energy and temperature
N_v = N exp(−Q_v/kT), N = N_A ρ/M
Mechanical properties
- Elastic elongation ±1 %Find the elastic elongation of a round bar from load, diameter, length and Young’s modulus
Δl = Fl₀/(AE), A = πd²/4 - Poisson’s ratio and diameter change ±1 %Find the decrease in diameter of a round bar from stress, Young’s modulus and Poisson’s ratio
Δd = ν(σ/E)d₀ - True stress and true strain ±1 %Convert engineering stress and strain before necking to true stress and strain
σ_T = σ(1 + ε), ε_T = ln(1 + ε) - Reduction in area and true fracture stress ±1 %From diameters before and after fracture, find reduction in area, true fracture strain and true fracture stress
RA = (A₀ − A_f)/A₀, ε_T = ln(A₀/A_f), σ_T = F/A_f - Hall–Petch relation ±1 %Find σ₀ and k from yield stresses at two grain sizes, then the yield stress at another grain size
σ_y = σ₀ + k/√d - Resolved shear stress (Schmid’s law) ±1 %From the tensile axis and slip system of a single crystal, find the resolved shear stress or the stress to start slip
τ_R = σ cosφ cosλ
Fracture
- Stress concentration at a crack tip ±1 %Find the maximum stress at a crack tip from the nominal stress, crack length and tip radius
σ_max = σ₀(1 + 2√(a/ρ)) - Fracture toughness and fracture stress ±1 %From K_IC and crack size, find the stress that causes fracture with K = Yσ√(πa)
σ_c = K_IC/(Y√(πa)) - Critical crack size ±1 %From K_IC and the working stress, find the crack length that causes fracture
a_c = (1/π)(K_IC/(Yσ))²
Thermal
- Thermal expansion ±1 %Find the free change in length from the expansion coefficient and temperature change
ΔL = αL₀ΔT - Thermal stress in a constrained bar ±1 / 0.3 %Find the thermal stress in a bar fixed between rigid walls, or the temperature it can be heated to
σ = −EαΔT - Thermal stress in a thin film (equibiaxial) ±1 %Find the stress in a film on a substrate after cooling from the deposition temperature
σ = −E(α_f − α_s)ΔT/(1 − ν) - Heat flux through a plate ±1 %Find the steady heat flux from the temperature difference and thermal conductivity
q = κΔT/L - Thermal stress in a compound bar ±1 %Find the stress in each of two different metal bars joined at both ends and heated
σ₁A₁ + σ₂A₂ = 0, α₁ΔT + σ₁/E₁ = α₂ΔT + σ₂/E₂
Composites
- Rule of mixtures (longitudinal modulus) ±1 %Find the longitudinal Young’s modulus of a continuous aligned-fiber composite with the isostrain equation
E₁ = V_f E_f + V_m E_m - Inverse rule of mixtures (transverse) ±1 %Find the transverse Young’s modulus of an aligned composite with the isostress equation
1/E₂ = V_f/E_f + V_m/E_m - Load sharing between fiber and matrix ±1 %Under longitudinal loading, find the fraction of load carried by the fibers or the fiber-to-matrix load ratio
F_f/F_m = V_f E_f/(V_m E_m)
Electrical, corrosion, creep
- Wire resistance and temperature ±1 %Find the resistance of a wire at a temperature using the temperature coefficient of resistivity
R = ρ(T)L/A, ρ(T) = ρ₂₀[1 + α_R(T − 20 °C)] - Resistivity of n-type silicon ±1 %Find the conductivity and resistivity of n-type silicon from donor concentration and electron mobility
σ = n e µ_e, ρ = 1/σ - Corrosion amount (Faraday’s law) ±1 %From the corrosion current, find the mass of metal dissolved or the rate at which the surface recedes
m = ItM/(nF) - Larson–Miller parameter ±2 / 0.5 %From one creep-rupture test, find the rupture time at another temperature or the temperature for a target life
P = T(C + log₁₀t_r)
How to use
Choose a field or a problem type and start a set of 5 or 10 problems. With “More of my weak types” on, types you have got wrong more often come up more often. Clicking a type name in the list below gives one problem of that type.
Type the answer as a number and choose its unit from the menu. 1.23e-5, 1.23×10^-5 and 1.23 × 10⁻⁵ are all read. When there is a unit menu, you can answer in mm or µm or any unit listed, as long as the number matches the unit you choose (it is converted by the unit’s factor).
“Check” shows whether you are right and opens the worked steps. If you are wrong, it tells you which common mistake your number points to (radius vs diameter, °C vs K, wt% vs at%, 2θ vs θ and so on). “Show answer” opens the steps without answering.
“Copy link to this problem” gives a URL that opens the same problem with the same numbers. The URL only holds the problem type and a seed number, never the answer. Your record is kept only in this browser (localStorage) and is never sent anywhere. If your browser blocks storage, the problems still work; only the record is not kept.
Tips for solving calculation problems
Start by writing down the given values and the unknown, with symbols and units. Words such as “diameter”, “total length 2a” and “mass fraction” often differ from what the formula needs (radius, a, volume fraction), so fix them here.
Converting everything to SI (m, kg, s, K, J, Pa) before substituting is the safest habit. MPa with mm (1 MPa = 1 N/mm²) is also handy in mechanics, but with fracture toughness in MPa·√m the length must be in meters. A temperature difference ΔT is the same number in °C and K, but the T in exp(−Q/RT) or T(C + log t) must be absolute.
Check the size of your answer. Metal interplanar spacings are 0.1–0.3 nm, densities 2–22 g/cm³, the stress in a constrained steel bar heated by 100 K is a few hundred MPa, and carburized depths are 0.1 to a few mm. If you are off by a factor of 10 or more, suspect a unit conversion or a power of ten.
Keep one or two more digits in intermediate values than in the answer (storing them in the calculator memory is safest). Rounding to three digits midway and reusing the rounded value can magnify errors in subtractions, exponentials and powers enough to fall outside the tolerance.
Units
The unit menu offers other units of the same quantity (nm and Å, MPa and GPa, m²/s and cm²/s, h and s, and so on). A correct value in the chosen unit is accepted. If there is only one unit shown, answer in that unit.
Fractions can be answered as a decimal from 0 to 1 or in % (0.25 and 25 % are the same). For mass or volume fractions, either is fine.
Temperatures are answered in °C or K. Converting between them adds or subtracts 273.15 rather than multiplying, so a °C value typed with K selected is wrong. If you give a K value as °C, you will be told that you gave the absolute temperature (K) as if it were °C.
Useful conversions: 1 nm = 10 Å = 10⁻⁹ m, 1 µm = 10⁻⁶ m, 1 MPa = 1 N/mm² = 10⁶ Pa, 1 GPa = 1000 MPa, 1 cm²/s = 10⁻⁴ m²/s, 1 g/cm³ = 1000 kg/m³, 1 eV = 1.602 × 10⁻¹⁹ J, 1 kJ/mol = 1000 J/mol.
Significant figures and marking
The numbers in each problem are already rounded to the digits shown, and the reference answer is calculated from those rounded numbers. So if you use the numbers as written, rounding of the data can never make you wrong.
Answers are marked by relative error. Most types accept ±1 %. Types that go through an exponential (diffusion coefficients, carburizing, vacancy concentration, Larson–Miller time) accept ±2 %, because intermediate rounding matters more there, and types that need many digits, such as angles and lattice parameters, accept ±0.5 %. Types answered as a temperature (the highest temperature of a constrained bar, the Larson–Miller temperature) are marked by the relative error of the absolute temperature in K (±0.3 % and ±0.5 %, roughly ±1 to 6 K between 300 and 1200 K). The tolerance is shown with each problem.
Giving the answer to the number of significant figures stated (usually 3) is enough; more digits are fine. For example, if the exact value is 0.2867 nm, both 0.287 and 0.2867 are accepted. Two digits such as 0.29 may be more than 1 % off and marked wrong.
If you are just outside the tolerance (within 5 %), you will get a “Close” hint about rounding or a different constant. The method is usually right: check that you did not round intermediate values too much and that you used the constants (N_A, R, k and so on) given in the problem.
Data sources
- Lattice parameters, densities, crystal structures and atomic weights
- Data of the Periodic Table for Materials (lattice parameters and densities from the CRC Handbook of Chemistry and Physics; IUPAC/CIAAW standard atomic weights).
- Ranges of Young’s modulus, expansion coefficient, thermal conductivity and fracture toughness
- Data of the material selection chart (ranges from M. F. Ashby, “Material property data for engineering materials”, 5th ed., 2021). A value inside the range is chosen, and the problem states it as “take … as”.
- Phase diagram values (Cu–Ni, Pb–Sn, Ag–Cu, Al–Si, Al–Cu, Pt–Ag) and the Fe–C eutectoid
- Data of the Binary Phase Diagram Lab and the Iron–Carbon Phase Diagram Viewer (values from Callister’s Materials Science and Engineering and others; each tool page lists the source for every system). Fe–C uses eutectoid 0.76 wt% C, ferrite solubility 0.022 wt% C and Fe₃C 6.70 wt% C.
- X-ray wavelengths
- The same Kα1 values as the XRD Analysis Workbench (λ = hc/E from the photon energies in the X-ray Data Booklet).
- Diffusion D₀ and Q, error function
- The same values as the Diffusion and Surface-Treatment Simulator’s data set (Table 5.2 of W. D. Callister, Jr. and D. G. Rethwisch, Materials Science and Engineering: An Introduction, 9th ed.). The error function and its inverse are also computed as in that tool. Temperatures are chosen where the tool gives no warning (inside the phase field; above 0.75 of the melting point for substitutional diffusion), and the carburizing surface concentration is kept below the Acm line at that temperature.
- Conductor resistivities
- Annealed copper standard (IEC 60028: 1.7241 × 10⁻⁸ Ω·m at 20 °C, temperature coefficient 0.00393 K⁻¹) and electrical-grade aluminum (61 % IACS: 2.8264 × 10⁻⁸ Ω·m, temperature coefficient 0.00403 K⁻¹).
- Physical constants
- CODATA values rounded to 3–4 digits (N_A = 6.022 × 10²³ mol⁻¹, R = 8.314 J/(mol·K), k = 8.617 × 10⁻⁵ eV/K, e = 1.602 × 10⁻¹⁹ C, F = 96485 C/mol).
- Assumed values
- Vacancy formation energies, Poisson’s ratios, Hall–Petch constants, critical resolved shear stresses, fiber moduli, ionic radii and the Larson–Miller constant C = 20 are practice values chosen from ranges plausible for the material. The electron mobility of n-type silicon is within ±5 % of the Caughey–Thomas estimate from the donor concentration N, µ = 52.2 + 1365/[1 + (N/9.68 × 10¹⁶ cm⁻³)^0.68] cm²/(V·s) (300 K, coefficients of Jacoboni et al. 1977).
FAQ
My answer should be right, but it is marked wrong.
First check the unit menu. If the unit you chose does not match the number you typed, a correct value is marked wrong (usually with a “unit mix-up” hint). If the units match and you are slightly off, you probably rounded intermediate values too much or used a different constant. Use the numbers and constants in the problem and keep at least four digits along the way.
How are the numbers chosen?
Each type has ranges that are realistic for real materials, and values are drawn from them every time. Property values such as lattice parameters, densities, Young’s moduli and expansion coefficients come from the same data as this site’s Periodic Table for Materials, Material Selection Chart and Binary Phase Diagram Lab. For properties listed as a range (such as Young’s modulus), a value inside the range is chosen and the problem says “take … as”.
Can I solve the same problem again, or give a friend the same problem?
Yes. Open the URL from “Copy link to this problem” (?t=type&s=seed) and you get the same problem with the same numbers. The URL does not contain the answer, so you can use it to set problems for each other.
Where is my record stored? Can I delete it?
Only in this browser’s localStorage; nothing is sent to a server, and it is not shared with other devices or browsers. “Clear record” at the bottom of the page deletes it. In private browsing or when storage is blocked, no record is kept, but the problems work normally.
How does “More of my weak types” choose?
For each type, the more often you have got it wrong compared with right, the more likely it is to be chosen. Types you have not tried yet still come up at a fair rate. Within a set, the same type does not come up twice in a row.
What do I get by opening the calculator?
The related calculator opens with the same numbers filled in, so you can check the answer another way or see what happens when you change a condition. For example, the XRD Analysis Workbench shows the whole diffraction pattern for a Bragg-angle problem, and the Diffusion and Surface-Treatment Simulator shows the concentration profile for a carburizing problem. For types no tool covers, links to related terms and articles are shown instead.
The textbook answer is slightly different.
Textbooks often round intermediate values or use shortened constants (N_A = 6.02 × 10²³, R = 8.31), so the third digit can differ. The answers here are calculated without intermediate rounding from the numbers and constants given in the problem. Anything within the tolerance is accepted either way.
Do I need to remember which elements are BCC and which are FCC?
In this drill the crystal structure is given in the problem. Exams may not tell you, so it helps to remember that Fe (α), Cr, Mo, W, V, Nb and Ta are BCC, and Al, Cu, Ni, Ag, Au, Pt, Pb and Pd are FCC.
Practice questions in related topics
- Crystal structures and Miller indices Coordination, packing, Miller indices
- Phase diagrams and the lever rule Phase rule, lever rule, Fe-C
- Crystal defects and diffusion Vacancies, dislocations, Fick's laws
- Mechanical properties and fracture Stress–strain, toughness, fatigue
- Fracture mechanics and fatigue Griffith, Paris law, Miner's rule
- Thermal properties of materials Heat capacity, conduction, expansion
- Composite materials Mixtures, fiber length, laminates
- Electronic, magnetic and optical materials Conductivity, magnetism, optics