In general relativity, an IDEAL (Intrinsic, Deductive, Explicit, ALgorithmic) characterization of a reference spacetime metric g0 consists of a set of tensorial equations T [g] = 0, constructed covariantly out of the metric g, its Riemann curvature and their derivatives, that are satisfied if and only if g is locally isometric to the reference spacetime metric g0. The same notion can be extended to also include scalar or tensor fields, where the equations T [g, φ] = 0 are allowed to also depend on the extra fields φ. We give the first IDEAL characterization of cosmological FLRW spacetimes, with and without a dynamical scalar (inflaton) field. We restrict our attention to what we call regular geometries, which uniformly satisfy certain identities or inequalities. They roughly split into the following natural special cases: constant curvature spacetime, Einstein static universe, and flat or curved spatial slices. We also briefly comment on how the solution of this problem has implications, in general relativity and inflation theory, for the construction of local gauge invariant observables for linear cosmological perturbations and for stability analysis.