Metric Tensor Calculator

Build geometric insight with a flexible tensor tool. Choose dimensions, set signature, and compute fast. Download tables as CSV or PDF for reports instantly.

Calculator

Enter numeric values. For symbolic metrics, evaluate numerically at a chosen point first.

Supported: 2 to 6.
Use Jacobian for coordinate transforms.
Used only in Jacobian mode.

Jacobian matrix J = ∂x/∂u

Enter Jᵃᵢ where rows are old coordinates xᵃ and columns are new coordinates uⁱ.


Provide ∂g/∂x as numeric blocks (supported up to n=3).

Example data

Example: polar coordinates (r, θ) in 2D Euclidean space.

Input Value Notes
n 2 Two coordinates: r, θ
Mode Build g = Jᵀ η J Use Jacobian of (x,y) w.r.t (r,θ)
η diag(1,1) Euclidean base metric
J [ [cosθ, -r sinθ], [sinθ, r cosθ] ] Evaluate numerically at a point, e.g., r=2, θ=0.5
Expected g [ [1, 0], [0, r²] ] At r=2 ⇒ g = diag(1, 4)

Formula used

When you provide a Jacobian for a coordinate transformation, the metric is computed by:

gᵢⱼ = Σₐ Σ_b (∂xᵃ/∂uⁱ) ηₐ_b (∂xᵇ/∂uʲ)
In matrix form: g = Jᵀ η J.

From the metric, the calculator computes:

How to use this calculator

  1. Select the dimension n for your coordinate system.
  2. Choose Build g = Jᵀ η J for coordinate transformations, or Direct for known metrics.
  3. If using Jacobian mode, pick a base signature (Euclidean, Minkowski, or custom).
  4. Fill the matrix fields with numeric values, then press Submit.
  5. Use Download CSV or Download PDF to export your results.
  6. For Christoffel symbols, enable the option and provide numeric ∂g blocks.

FAQs

1) What is a metric tensor?

A metric tensor gᵢⱼ defines distances and angles on a space. It converts coordinate changes into measurable lengths using ds² = gᵢⱼ duⁱ duʲ.

2) When should I use Jacobian mode?

Use Jacobian mode when you know a coordinate transformation from x to u. The calculator applies g = Jᵀ η J to produce the metric in the new coordinates.

3) Why must det(g) be nonzero?

A nonzero determinant means the metric is invertible. Invertibility is needed to raise indices, compute Γᵏᵢⱼ, and define consistent inner products.

4) What does √|det(g)| represent?

It is the volume density used in integrals on curved spaces. For example, the area element is √|det(g)| du¹ du² in two dimensions.

5) Can I enter symbolic expressions like cos(θ)?

This tool is numeric. Evaluate expressions at a point (choose θ, r, etc.), then enter the resulting numbers to compute g, gⁱʲ, and det(g).

6) How do I input derivatives for Christoffel symbols?

Enter one n×n matrix per derivative coordinate, separated by “|”. Within each matrix, separate rows by “;” and values by commas, like “0,0;0,0 | 0,0;0,0”.

7) What if my metric is not symmetric?

Most standard metrics are symmetric. If yours is not, the calculator still computes the inverse if possible, but interpretations like distances may not apply without additional structure.

Related Calculators

injectivity radiustorsion tensorcotangent spacenormal orientation

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.