In mathematics and physics, a **scalar field** is a function associating a single number to every point in a space – possibly physical space. The scalar may either be a pure mathematical number (dimensionless) or a scalar physical quantity (with units).

In a physical context, scalar fields are required to be independent of the choice of reference frame. That is, any two observers using the same units will agree on the value of the scalar field at the same absolute point in space (or spacetime) regardless of their respective points of origin. Examples used in physics include the temperature distribution throughout space, the pressure distribution in a fluid, and spin-zero quantum fields, such as the Higgs field. These fields are the subject of scalar field theory.

Mathematically, a scalar field on a region *U* is a real or complex-valued function or distribution on *U*.^{[1]}^{[2]} The region *U* may be a set in some Euclidean space, Minkowski space, or more generally a subset of a manifold, and it is typical in mathematics to impose further conditions on the field, such that it be continuous or often continuously differentiable to some order. A scalar field is a tensor field of order zero,^{[3]} and the term "scalar field" may be used to distinguish a function of this kind with a more general tensor field, density, or differential form.

Physically, a scalar field is additionally distinguished by having units of measurement associated with it. In this context, a scalar field should also be independent of the coordinate system used to describe the physical system—that is, any two observers using the same units must agree on the numerical value of a scalar field at any given point of physical space. Scalar fields are contrasted with other physical quantities such as vector fields, which associate a vector to every point of a region, as well as tensor fields and spinor fields.^{[citation needed]} More subtly, scalar fields are often contrasted with pseudoscalar fields.

In physics, scalar fields often describe the potential energy associated with a particular force. The force is a vector field, which can be obtained as a factor of the gradient of the potential energy scalar field. Examples include:

- Potential fields, such as the Newtonian gravitational potential, or the electric potential in electrostatics, are scalar fields which describe the more familiar forces.
- A temperature, humidity, or pressure field, such as those used in meteorology.

- In quantum field theory, a scalar field is associated with spin-0 particles. The scalar field may be real or complex valued. Complex scalar fields represent charged particles. These include the Higgs field of the Standard Model, as well as the charged pions mediating the strong nuclear interaction.
^{[4]} - In the Standard Model of elementary particles, a scalar Higgs field is used to give the leptons and massive vector bosons their mass, via a combination of the Yukawa interaction and the spontaneous symmetry breaking. This mechanism is known as the Higgs mechanism.
^{[5]}A candidate for the Higgs boson was first detected at CERN in 2012. - In scalar theories of gravitation scalar fields are used to describe the gravitational field.
- Scalar–tensor theories represent the gravitational interaction through both a tensor and a scalar. Such attempts are for example the Jordan theory
^{[6]}as a generalization of the Kaluza–Klein theory and the Brans–Dicke theory.^{[7]}

- Scalar fields like the Higgs field can be found within scalar–tensor theories, using as scalar field the Higgs field of the Standard Model.
^{[8]}^{[9]}This field interacts gravitationally and Yukawa-like (short-ranged) with the particles that get mass through it.^{[10]}

- Scalar fields like the Higgs field can be found within scalar–tensor theories, using as scalar field the Higgs field of the Standard Model.

- Scalar fields are found within superstring theories as dilaton fields, breaking the conformal symmetry of the string, though balancing the quantum anomalies of this tensor.
^{[11]} - Scalar fields are hypothesized to have caused the high accelerated expansion of the early universe (inflation),
^{[12]}helping to solve the horizon problem and giving a hypothetical reason for the non-vanishing cosmological constant of cosmology. Massless (i.e. long-ranged) scalar fields in this context are known as inflatons. Massive (i.e. short-ranged) scalar fields are proposed, too, using for example Higgs-like fields.^{[13]}

- Vector fields, which associate a vector to every point in space. Some examples of vector fields include the electromagnetic field and air flow (wind) in meteorology.
- Tensor fields, which associate a tensor to every point in space. For example, in general relativity gravitation is associated with the tensor field called Einstein tensor. In Kaluza–Klein theory, spacetime is extended to five dimensions and its Riemann curvature tensor can be separated out into ordinary four-dimensional gravitation plus an extra set, which is equivalent to Maxwell's equations for the electromagnetic field, plus an extra scalar field known as the "dilaton".
^{[citation needed]}(The dilaton scalar is also found among the massless bosonic fields in string theory.)