A closer look at Critical density
At a given cosmic expansion rate, general relativity defines a critical density corresponding to spatial flatness in standard homogeneous models.
It includes all relevant energy components. Cosmic geometry alone need not determine the eventual fate of expansion. A cosmological constant is a term allowed in Einstein’s gravitational equations. Cosmologists use a scale factor to track how distances between freely expanding, widely separated locations change.
Comparing a model’s total density with the critical value tests curvature. Predicting the future also requires the components’ pressure and evolution.
Want to learn more about Critical density? Friedmann equations on Wikipedia.

