Let (M,g)(M,g) be a and let P=span(u,v)TpMP=\operatorname{span}(u,v)\subset T_pM be a two-dimensional plane in the at pp. With the convention

R(X,Y)Z=XYZYXZ[X,Y]Z,R(X,Y)Z=\nabla_X\nabla_YZ-\nabla_Y\nabla_XZ-\nabla_{[X,Y]}Z,

the sectional curvature of PP is

Kg(P)=g(R(u,v)v,u)g(u,u)g(v,v)g(u,v)2.K_g(P)=\frac{g(R(u,v)v,u)}{g(u,u)g(v,v)-g(u,v)^2}.
Basis independence

The denominator is the squared area of the parallelogram spanned by u,vu,v, so the quotient is independent of the chosen basis of PP.

Geometric meaning

Sectional curvature is the intrinsic curvature of the geodesic two-plane determined by PP, measured to second order by the metric. A metric has constant sectional curvature kk when Kg(P)=kK_g(P)=k for every point and every tangent two-plane. In dimension two, sectional curvature is the Gaussian curvature.

Relation to Ricci curvature

For a unit vector uu and an orthonormal basis u,e2,,enu,e_2,\ldots,e_n of TpMT_pM,

Ric(u,u)=j=2nKg(span(u,ej)).\operatorname{Ric}(u,u)=\sum_{j=2}^n K_g(\operatorname{span}(u,e_j)).

Thus Ricci curvature records the sum of sectional curvatures of planes containing a direction, while sectional curvature retains the individual two-plane information.

Sign convention

Some authors define the Riemann tensor with the opposite overall sign, which reverses every sectional curvature. The displayed formula and the linked convention fix the sign used here.

References
  1. John M. Lee, Introduction to Riemannian Manifolds, 2nd ed., Springer, 2018. Publisher record. Relevant: Chapter 7, sectional curvature.
  2. Manfredo P. do Carmo, Riemannian Geometry, Birkhäuser, 1992. Publisher record. Relevant: Chapter 3, sectional curvature.