A modified theory of gravity where the action is a function of the Ricci scalar R.f(R) gravity is a family of modified theories of gravity in which the Einstein-Hilbert action — the mathematical expression whose variation gives the field equations of general relativity — is replaced by a more general function of the Ricci scalar R. In general relativity, the action is simply proportional to R, which leads to the standard Einstein equations. In f(R) gravity, the action is an arbitrary function f(R), and this seemingly small change can produce dramatically different gravitational behavior, especially in the late-time universe and on cosmological scales.
The idea of generalizing the Einstein-Hilbert action to a function of R dates back to at least the 1970s, with early work by Hans-Adolf Buchdahl in 1970. The modern revival began in the 2000s, driven by the discovery of cosmic acceleration and the search for alternatives to dark energy and dark matter.
The Ricci scalar R encodes the curvature of spacetime at each point. In f(R) gravity, the field equations are obtained by varying the action with respect to the metric, which yields fourth-order differential equations instead of the second-order ones of general relativity. This extra structure can be recast as general relativity plus a new scalar degree of freedom, sometimes called a 'scalaron,' which can act like a dynamical dark energy component. Depending on the form of f(R), the theory can produce cosmic acceleration without a cosmological constant, or modify the gravitational force on galactic scales to mimic dark matter.
f(R) gravity is used in theoretical cosmology to model dark energy and cosmic acceleration, and in astrophysics to explore alternatives to dark matter on galactic and cluster scales. It also serves as a testing ground for understanding the viability of modified gravity theories against observational data.
Some f(R) models can be designed to exactly reproduce the expansion history of the standard ΛCDM model, yet they still predict different growth of cosmic structures, allowing them to be distinguished by future surveys.











