y+ Wall Distance Calculator
When creating a CFD mesh, getting the near-wall cell size right is critical for accurate boundary-layer resolution. The dimensionless wall distance y+ determines whether the first cell falls inside the viscous sublayer (y+ ≈ 1, required for low-Re turbulence models and wall-resolved LES) or in the log-law region (30 < y+ < 300, used with wall functions). This page provides the formulas behind the y+ wall-distance estimation and a calculator that returns the required first-cell height for any combination of flow conditions and desired y+.
Formulas for Estimating First-Cell Height from y+
The Reynolds number for a given free-stream velocity \(U_\infty\) and reference length \(L\) is:
$$Re = \frac{\rho \cdot U_{\infty} \cdot L}{\mu}$$
The Schlichting skin-friction correlation is used to estimate the friction coefficient \(C_f\). It is valid for \(Re_x < 10^9\):
$$C_f = \left[ 2 \cdot \log_{10}(Re_x) - 0.65 \right]^{-2.3} \quad \text{for} \quad Re_x < 10^9$$
The wall shear stress follows from the skin-friction coefficient:
$$\tau_w = C_f \cdot \tfrac{1}{2} \, \rho \, U_{\infty}^2$$
The friction velocity \(u^*\) is derived from the wall shear stress and the fluid density:
$$u^* = \sqrt{\frac{\tau_w}{\rho}}$$
Finally, the wall distance (first-cell height) for a desired y+ is:
$$y = \frac{y^+ \cdot \mu}{\rho \cdot u^*}$$
The calculator below evaluates all of these equations and returns the intermediate results (Re, Cf, τw, u*) as well as the wall distance in millimetres.
y+ Wall Distance Calculator
The default values for density and dynamic viscosity are for air at 1 atm and 20 °C. For water at the same conditions, use ρ = 998.21 kg/m3 and μ = 1.002×10−3 Pa·s.
Input
Output
Disclaimer: The tools, calculators and formulas provided on this website are intended for educational and informational purposes only. While we strive to ensure accuracy, we cannot guarantee that the results will be applicable to your specific circumstances. Users are encouraged to verify results independently and consult a qualified professional if necessary. By using these tools, you acknowledge that the use of any information obtained from this site is at your own risk.
For complex geometries where a flat-plate estimate is not sufficient, our CFD team can run preliminary simulations to verify the near-wall mesh resolution and adjust the boundary-layer prism layers accordingly. To learn more about the fundamentals, see our course Introduction to Computational Fluid Dynamics.
Frequently asked questions
Common questions about y⁺ and near-wall meshing.