Diffusion Coefficient Calculator & Depth Profile Comparison

Enter the depth, elapsed time and normalized change for each observation. The calculator inverts the one-dimensional constant-surface solution to estimate two diffusion coefficients, carries entered concentration margins through to ranges, and compares depth profiles at a common time.

Diffusion profile

Estimate diffusion from two observations

Enter the observed change as a percentage of the surface-to-initial change. Use the same constant-surface, one-dimensional model for both readings.

Reading A
Reading B
Profile comparison
The inferred diffusion ranges overlap.
Reading A nominal D
1.0000e-10
m²/s · Target depth 1.6268 mm
Reading B nominal D
1.0000e-10
m²/s · Target depth 1.6268 mm

Normalized change through depth

Profiles share 10,000 seconds. Shaded areas show the entered margin carried through the model.

A uses a solid line, B uses a dashed line, and the target is dotted.

Normalized change as a percentage by depth in millimetersTarget 25 percent at 10,000 seconds.Reading A nominal target depth 1.6268 mm. Reading B nominal target depth 1.6268 mm.0%50%100%0 mm5.0678 mm
  • Reading A
    Target depth 1.6268 mm
    1.5552 mm to 1.7035 mm
  • Reading B
    Target depth 1.6268 mm
    1.5876 mm to 1.666 mm
Review coefficient ranges and profile CSV
Reading A coefficient range
9.1389e-11 to 1.0965e-10 m²/s
Reading B coefficient range
9.5238e-11 to 1.0488e-10 m²/s

How to use this calculator

  1. Normalize each measured concentration to the change from the initial to the constant surface concentration.
  2. Enter the observation depth, time and measured normalized change. Use a percentage-point margin when you want a range.
  3. Set a common profile time and a target normalized change.
  4. Compare the inferred coefficients and target depths, and view or export the profile worksheet.

The Formula

The mathematical logic powering this calculation is:

For one-dimensional diffusion in a semi-infinite material with constant D, uniform initial concentration C₀ and constant surface Cₛ, normalized change (C(x,t) − C₀)/(Cₛ − C₀) = erfc(x/(2√(Dt))). Enter that ratio as a percent. Use the same concentration units and a nonzero surface-to-initial change. This definition works for an increase or decrease when the measured value lies between the two endpoints.
Divide the observed percent by 100, invert the complementary error function, divide measured depth in meters by twice that inverse, square, and divide by elapsed seconds to infer D in m²/s. The coefficient increases with the normalized measurement at fixed positive depth and time. Apply the same inversion at the entered percent plus and minus the stated percentage-point margin. The resulting range covers that entered concentration margin alone. Compare ranges numerically and treat tiny floating-point ties as overlapping.
The profile uses the forward expression at the common entered time. At a target percent, modeled depth in meters equals twice √(D times profile time) multiplied by the inverse erfc of target/100. Each profile draws the nominal trace and propagated concentration bounds. The chart has one common scale in comparison view and a rescaled depth axis in single-reading view. Numerical output is approximate and the CSV records up to thirteen significant digits.
Use 0.001–1,000 mm for measured depths, 1–10,000,000 s for times, 0.01–99.99% for readings and targets, and 0–25 percentage points for the margin. Both margin endpoints must remain in the allowed percent range. Inputs support up to eight decimals. This is a controlled diffusion model for homogeneous materials. It does not infer diffusivity when reaction, changing surface conditions, a second boundary or varying material properties matter.

Worked Example

If you input:

  • Reading A: 1 mm, 10,000 s, 47.95001222%, margin ±2 percentage points.
  • Reading B: 2 mm, 10,000 s, 15.72992071%, margin ±1 percentage point.
  • Profile: 10,000 s and 25% normalized change.

Result:

Both readings infer about 1.0000e-10 m²/s. The entered concentration ranges overlap. Nominal target depth is about 1.627 mm from either reading.

Frequently Asked Questions

Is 50% an absolute concentration?

It is halfway between the initial and surface concentrations. Normalize on their difference before entering a percentage.

What if the ranges overlap?

At least some coefficient values agree under the entered margins and model. That alone does not validate the boundary assumptions or error model.

Why can't I enter 0% or 100%?

At positive depth and time those endpoints do not give a finite positive inferred coefficient in this model. The worksheet keeps a finite numerical range.

Does the margin include time and depth error?

It represents the entered concentration change only. The observed depth and time are held fixed.

Similar Calculators