Diffusion Coefficient Calculator

Last Updated: 5 May, 2026

Calculate diffusion coefficient D from Fick's law. Enter flux, concentration gradient, and distance to find diffusion coefficient using J = -D(dC/dx) with step-by-step solutions.

Edited by Gail Joyce

Gail Joyce edits core chemistry calculator pages for formula clarity, unit consistency, and practical classroom and lab-prep usability.

This page is maintained by the Chemistry Calculators editorial team. The Fick's-law relationship, unit handling, worked examples, and scope notes on this page are reviewed against standard physical chemistry and mass-transfer references before major updates.

Diffusion Coefficient Calculator

Enter known values to calculate diffusion coefficient, flux, or concentration gradient. Use J = -D(dC/dx), where J is flux, D is diffusion coefficient, and dC/dx is concentration gradient.

This page uses one-dimensional, steady-state Fick's first law. It is ideal for membrane, barrier, and simple transport homework problems where two of the three core terms are known.

💡 Leave empty to calculate from flux and concentration gradient

Quick presets

Table of Contents

Quickly navigate to different sections of this guide. Click any item below to jump to that section.

Understanding Diffusion Coefficients

The diffusion coefficient (D) is a fundamental parameter that quantifies how fast particles diffuse through a medium. It appears in Fick's first law of diffusion: J = -D(dC/dx), where J is the flux (amount of substance per unit area per unit time), D is the diffusion coefficient, and dC/dx is the concentration gradient. The negative sign indicates that diffusion occurs from regions of high concentration to regions of low concentration, driven by the concentration gradient.

Diffusion coefficients vary dramatically depending on the medium and molecular size. For gases in air, D is typically around 10⁻⁵ m²/s. For liquids, D is much smaller, typically around 10⁻⁹ m²/s. For solids, D is even smaller, around 10⁻¹² m²/s or less. The diffusion coefficient depends on temperature (increasing with temperature), molecular size (larger molecules diffuse slower), and medium properties (viscosity, molecular interactions). The Stokes-Einstein equation relates D to molecular size and medium viscosity: D = k_B T / (6πηr), where k_B is Boltzmann constant, T is temperature, η is viscosity, and r is molecular radius.

Understanding diffusion coefficients is crucial for analyzing mass transport, designing separation processes, and understanding biological systems. Whether you're studying membrane transport, designing drug delivery systems, or analyzing chemical processes, diffusion coefficients provide the quantitative foundation. Our Diffusion Coefficient Calculator makes these calculations instant and accurate, so you can focus on your analysis rather than the math.

How to Use the Diffusion Coefficient Calculator

Using our Diffusion Coefficient Calculator is straightforward:

  1. Enter Known Values: Input flux (J), concentration gradient (dC/dx), or diffusion coefficient (D). Leave the value you want to calculate empty.
  2. Select Units: Choose appropriate units from the dropdown menus. Ensure consistency—all units should be compatible.
  3. Calculate: The calculator automatically computes results as you type. You can also click Calculate for manual calculation.
  4. Review Results: Check the calculated unknown value and step-by-step explanation showing how the result was derived using Fick's law.

The calculator handles all unit conversions and mathematical relationships automatically, ensuring accurate results every time.

Formulas and Equations

Diffusion coefficient calculations use Fick's laws. Here's how each formula works:

Core Diffusion Coefficient Formulas

  • Fick's First Law: J = -D(dC/dx)

    The fundamental equation for diffusion flux, where J is flux (mol/(m²·s)), D is diffusion coefficient (m²/s), and dC/dx is concentration gradient (mol/(m³·m)). Negative sign indicates diffusion from high to low concentration.

  • Calculate Diffusion Coefficient: D = -J/(dC/dx)

    Find diffusion coefficient from flux and concentration gradient. This is the most common calculation—determining D from experimental flux measurements.

  • Calculate Flux: J = -D(dC/dx)

    Find flux from diffusion coefficient and concentration gradient. Useful for predicting mass transport rates.

  • Calculate Concentration Gradient: dC/dx = -J/D

    Determine concentration gradient from flux and diffusion coefficient. Useful for analyzing concentration profiles.

  • Stokes-Einstein Equation: D = k_B T / (6πηr)

    Relates diffusion coefficient to molecular size and medium viscosity, where k_B is Boltzmann constant, T is temperature, η is viscosity, and r is molecular radius. Larger molecules or higher viscosity means smaller D.

  • Fick's Second Law: ∂C/∂t = D(∂²C/∂x²)

    Describes time-dependent diffusion, where concentration changes with time and position. Used for analyzing diffusion profiles over time.

Worked Examples

Let's work through detailed examples showing how to calculate diffusion coefficients step by step. These examples cover common diffusion scenarios.

Example 1: Calculate Diffusion Coefficient from Flux

Scenario: A substance has flux J = 1 × 10⁻⁶ mol/(m²·s) and concentration gradient dC/dx = -0.1 mol/(m³·m). What is the diffusion coefficient?

Solution:

Step 1: Identify known values

J = 1 × 10⁻⁶ mol/(m²·s), dC/dx = -0.1 mol/(m³·m)

Step 2: Apply Fick's first law

J = -D(dC/dx)

D = -J/(dC/dx) = -(1 × 10⁻⁶) / (-0.1)

D = 1 × 10⁻⁵ m²/s

Answer: Diffusion coefficient D = 1 × 10⁻⁵ m²/s

Example 2: Calculate Flux from Diffusion Coefficient

Scenario: A substance has diffusion coefficient D = 2 × 10⁻⁹ m²/s and concentration gradient dC/dx = -0.05 mol/(m³·m). What is the flux?

Solution:

Step 1: Identify known values

D = 2 × 10⁻⁹ m²/s, dC/dx = -0.05 mol/(m³·m)

Step 2: Apply Fick's first law

J = -D(dC/dx) = -(2 × 10⁻⁹) × (-0.05)

J = 1 × 10⁻¹⁰ mol/(m²·s)

Answer: Flux J = 1 × 10⁻¹⁰ mol/(m²·s)

Example 3: Calculate Concentration Gradient

Scenario: A substance has diffusion coefficient D = 5 × 10⁻¹⁰ m²/s and flux J = 2 × 10⁻¹¹ mol/(m²·s). What is the concentration gradient?

Solution:

Step 1: Identify known values

D = 5 × 10⁻¹⁰ m²/s, J = 2 × 10⁻¹¹ mol/(m²·s)

Step 2: Rearrange Fick's first law

dC/dx = -J/D = -(2 × 10⁻¹¹) / (5 × 10⁻¹⁰)

dC/dx = -0.04 mol/(m³·m)

Answer: Concentration gradient dC/dx = -0.04 mol/(m³·m)

Frequently Asked Questions (FAQs)

Got questions? We've got answers. Here are the most common things people ask about diffusion coefficient calculations.

What is diffusion coefficient and why is it important?

The diffusion coefficient (D) is a measure of how fast particles diffuse through a medium. It appears in Fick's first law: J = -D(dC/dx), where J is flux, D is diffusion coefficient, and dC/dx is concentration gradient. It's important because it quantifies mass transport rates, determines diffusion speeds, and helps design separation processes. Our Diffusion Coefficient Calculator helps you quickly determine D from flux and concentration gradient data.

How do I calculate diffusion coefficient?

Use D = -J/(dC/dx), where J is flux (mol/(m²·s)), dC/dx is concentration gradient (mol/(m³·m)), and D is diffusion coefficient (m²/s). Enter flux and concentration gradient, and the calculator will compute D. Alternatively, use D = (Δx)²/(2t) for one-dimensional diffusion from distance and time measurements.

What are typical values of diffusion coefficient?

Diffusion coefficients vary widely: gases in air (~10⁻⁵ m²/s), liquids (~10⁻⁹ m²/s), solids (~10⁻¹² m²/s). For example, O₂ in water: D ≈ 2 × 10⁻⁹ m²/s. For small molecules in water: D ≈ 10⁻⁹ to 10⁻¹⁰ m²/s. For proteins: D ≈ 10⁻¹¹ m²/s. Temperature and molecular size strongly affect D. Larger molecules or higher viscosity means smaller D.

How does temperature affect diffusion coefficient?

Diffusion coefficient increases with temperature according to Arrhenius-like relationship: D = D₀ e^(-E_a/RT), where E_a is activation energy for diffusion. Higher temperature means faster molecular motion and larger D. Typically, D doubles for every 10-20°C increase, depending on the system. This is why diffusion is faster at higher temperatures.

What is Fick's law?

Fick's first law states J = -D(dC/dx), where J is flux (amount per area per time), D is diffusion coefficient, and dC/dx is concentration gradient. The negative sign indicates diffusion occurs from high to low concentration. Fick's second law describes time-dependent diffusion: ∂C/∂t = D(∂²C/∂x²). These laws govern all diffusion processes.

How do I calculate flux from diffusion coefficient?

Use J = -D(dC/dx), where J is flux, D is diffusion coefficient, and dC/dx is concentration gradient. Enter D and dC/dx, and the calculator will compute flux. Flux has units of mol/(m²·s) or similar, representing amount per area per time. Negative sign indicates direction from high to low concentration.

What is the Stokes-Einstein equation?

Stokes-Einstein equation is D = k_B T / (6πηr), relating diffusion coefficient to molecular size and medium viscosity, where k_B is Boltzmann constant, T is temperature, η is viscosity, and r is molecular radius. Larger molecules or higher viscosity means smaller D. This equation is valid for spherical particles in viscous media.

How do molecular size and viscosity affect diffusion coefficient?

According to Stokes-Einstein equation D = k_B T / (6πηr), larger molecular radius (r) means smaller D (slower diffusion), and higher viscosity (η) means smaller D (slower diffusion). This is why large molecules diffuse slower than small molecules, and diffusion is slower in viscous media than in low-viscosity media.

What is the relationship between diffusion coefficient and molecular weight?

For spherical molecules, D ∝ 1/√MW, where MW is molecular weight. Larger molecular weight means smaller diffusion coefficient (slower diffusion). This relationship is approximate and assumes spherical shape. For non-spherical molecules, shape factors also matter. Proteins and polymers have much smaller D than small molecules.

How do I verify diffusion coefficient calculations?

Check that units are consistent (flux in mol/(m²·s), gradient in mol/(m³·m), D in m²/s). Verify that calculated values are reasonable—typical D values range from 10⁻¹² to 10⁻⁵ m²/s depending on medium. Check sign—D is always positive. Use dimensional analysis to ensure units cancel correctly. Compare to literature values if available.

What is the difference between diffusion and convection?

Diffusion is molecular transport driven by concentration gradients (Fick's law), while convection is bulk transport driven by fluid flow. Diffusion is slow and occurs even in still fluids, while convection is fast and requires fluid motion. Total mass transport often involves both diffusion and convection: J_total = J_diffusion + J_convection.

How do I calculate diffusion coefficient from distance and time?

For one-dimensional diffusion, use D = (Δx)²/(2t), where Δx is root-mean-square displacement and t is time. For mean square displacement: ⟨x²⟩ = 2Dt, so D = ⟨x²⟩/(2t). This is useful for experimental determination of D from particle tracking or concentration profile measurements.

What is the relationship between diffusion coefficient and membrane permeability?

Membrane permeability P = D × K / L, where D is diffusion coefficient, K is partition coefficient (concentration ratio across membrane), and L is membrane thickness. Permeability combines diffusion (D) with partitioning (K) and geometry (L). Larger D means higher permeability, assuming constant K and L.

How do I account for concentration-dependent diffusion?

For concentration-dependent D, use D(C) instead of constant D. Fick's law becomes J = -D(C)(dC/dx). This is common for concentrated solutions or polymers where D depends on concentration. Use average D or integrate over concentration range. For dilute solutions, D is approximately constant.

What is the relationship between diffusion coefficient and ionic mobility?

For ions, D = μRT/(zF), where μ is ionic mobility, R is gas constant, T is temperature, z is charge number, and F is Faraday's constant. This connects diffusion (D) to electrical mobility (μ). Larger mobility means larger diffusion coefficient. This is the Nernst-Einstein equation.

How do I calculate diffusion coefficient for gases?

For gases, use Chapman-Enskog theory or empirical correlations. For binary gas mixtures, D_AB ≈ 0.001858 T^(3/2) / (P σ_AB² Ω_D), where T is temperature, P is pressure, σ_AB is collision diameter, and Ω_D is collision integral. Gas diffusion coefficients are typically ~10⁻⁵ m²/s and increase with temperature, decrease with pressure.

What is the relationship between diffusion coefficient and solubility?

Diffusion coefficient (D) and solubility (S) are independent properties. However, membrane permeability P = D × K / L depends on both, where K is partition coefficient (related to solubility). High solubility doesn't guarantee high D—large molecules may be very soluble but diffuse slowly due to large size.

How do I account for anisotropic diffusion?

For anisotropic media (different D in different directions), use tensor notation: J_i = -D_ij(∂C/∂x_j), where D_ij is diffusion tensor. For crystals or oriented materials, D may differ along different axes. Use direction-specific D values. For isotropic media, D is scalar (same in all directions).

What is the relationship between diffusion coefficient and reaction rate?

For diffusion-limited reactions, rate depends on D. If diffusion is slow compared to reaction, rate ≈ D × (concentration gradient). If reaction is slow compared to diffusion, rate depends on reaction kinetics, not D. Many biological reactions are diffusion-limited, so D affects reaction rates.

How do I calculate diffusion coefficient for polymers?

For polymers, D depends on molecular weight, chain flexibility, and medium. Use D ∝ MW^(-α), where α ≈ 0.5-1 depending on polymer and conditions. For entangled polymers, D is much smaller than for small molecules. Use experimental correlations or measurements. Polymer diffusion is complex due to chain dynamics.

What is the relationship between diffusion coefficient and viscosity?

According to Stokes-Einstein equation D = k_B T / (6πηr), D is inversely proportional to viscosity η. Higher viscosity means smaller D (slower diffusion). This is why diffusion is slower in viscous liquids than in low-viscosity liquids. Temperature affects both D and η, so their relationship is complex.

How do I account for pressure effects on diffusion coefficient?

For gases, D decreases with pressure: D ∝ 1/P (at constant temperature). For liquids, pressure effects are usually negligible unless very high pressures (>1000 atm). For solids, pressure may affect D through volume changes. Most calculations assume constant pressure unless explicitly stated.

What is the best way to verify diffusion coefficient calculations?

Check that units are consistent (flux in mol/(m²·s), gradient in mol/(m³·m), D in m²/s). Verify that calculated values are reasonable—typical D values range from 10⁻¹² to 10⁻⁵ m²/s depending on medium. Check sign—D is always positive. Use dimensional analysis to ensure units cancel correctly. Compare to literature values if available. Verify that J = -D(dC/dx) gives correct flux.

How do I calculate diffusion coefficient for biological molecules?

For biological molecules (proteins, DNA), D depends on molecular size, shape, and medium properties. Use Stokes-Einstein equation D = k_B T / (6πηr) with effective radius. For proteins, D ≈ 10⁻¹¹ m²/s. Account for hydration and non-spherical shape. Use experimental measurements or correlations specific to biological systems.

Practical Applications

Diffusion coefficient calculations are essential in many real-world applications, from chemical engineering to biological systems.

Membrane Separation Processes

Chemical engineers use diffusion coefficient calculations to design membrane separation processes, predict mass transport rates, and optimize separation efficiency. Understanding D helps determine membrane permeability and selectivity.

Real example: In reverse osmosis water treatment, engineers calculate diffusion coefficients to predict water flux through membranes. D values determine membrane performance, energy requirements, and system design for efficient water purification.

Drug Delivery and Pharmaceuticals

Pharmaceutical scientists use diffusion coefficient calculations to design drug delivery systems, predict drug release rates, and optimize formulations. D values determine drug transport through tissues and membranes.

Real example: In transdermal drug delivery, scientists calculate diffusion coefficients to predict drug penetration through skin. D values determine patch design, drug release rates, and therapeutic effectiveness, enabling controlled drug delivery.

Biological Systems

Biologists use diffusion coefficient calculations to understand molecular transport in cells, predict signaling molecule diffusion, and analyze biological processes. D values determine transport rates and spatial distributions.

Real example: In cell biology, researchers calculate diffusion coefficients for proteins and signaling molecules to understand intracellular transport. D values determine how fast molecules move through cytoplasm, affecting cellular signaling and metabolism.

References and Further Reading

For more in-depth information about diffusion coefficients, Fick's laws, and related topics, consult these authoritative sources:

Resource Description Category
LibreTexts: Diffusion Overview of diffusion behavior, coefficients, and molecular transport Mass Transport
LibreTexts: Fick's Law Engineering-focused explanation of Fick's law and steady-state diffusion calculations Mass Transport
Cussler, E. L. (2009). Diffusion: Mass Transfer in Fluid Systems Comprehensive textbook on diffusion and mass transfer Textbook
Atkins, P., et al. (2017). Physical Chemistry Detailed coverage of diffusion coefficients and Fick's laws Textbook
Berg, H. C. (1993). Random Walks in Biology Application of diffusion to biological systems Textbook
Khan Academy: Chemistry Free educational content on diffusion and mass transport General Chemistry

Disclaimer: The calculators and tools available on ChemistryCalculators.net are intended for educational and informational purposes only. While we make every effort to ensure accuracy, the results and calculations provided may contain errors or inaccuracies. Users are encouraged to verify the information independently and should not rely solely on these results for academic, professional, or laboratory purposes. ChemistryCalculators.net assumes no responsibility or liability for any loss, damage, or consequences arising from the use of these tools.