Geometric Formulas

Common formulas for area, perimeter, surface area, and volume.

  • JSON5,217 B
  • YAML3,523 B · −32%
  • TOON2,662 B · −49%

Area, surface area and volume formulas for the common plane and solid shapes, with the Pythagorean theorem, plus trapezoids, ellipses, cones, pyramids, regular polygons, Heron's formula, the distance formula and the law of cosines. Each row names the variables so the formula can be applied directly.

Use it when

  • You need the formula for the area or volume of a shape and the meaning of each symbol.
  • You are checking a geometry calculation.

Watch out for

  • Units multiply: areas are in square units and volumes in cubic units.
  • Pick the right measurement: height is perpendicular to the base, not the slanted side.

The data

ShapeFormulaVariables
CircleA = pi r^2A: area, r: radius
RectangleA = l wA: area, l: length, w: width
TriangleA = 1/2 b hA: area, b: base, h: height
Sphere Surface AreaA = 4 pi r^2A: surface area, r: radius
Sphere VolumeV = 4/3 pi r^3V: volume, r: radius
Cylinder VolumeV = pi r^2 hV: volume, r: radius, h: height
Pythagorean Theorema^2 + b^2 = c^2c: hypotenuse, a,b: legs of right triangle
SquareA = s^2A: area, s: side length
ParallelogramA = b hA: area, b: base, h: perpendicular height
TrapezoidA = (a + b) h / 2A: area, a and b: parallel sides, h: height between them
EllipseA = pi a bA: area, a: semi-major axis, b: semi-minor axis
Regular PolygonA = a P / 2A: area, a: apothem, P: perimeter
Triangle (Heron's formula)A = sqrt(s (s - a) (s - b) (s - c))A: area, a, b, c: side lengths, s: semi-perimeter (a + b + c) / 2
Cube VolumeV = s^3V: volume, s: edge length
Rectangular Prism VolumeV = l w hV: volume, l: length, w: width, h: height
Cylinder Surface AreaA = 2 pi r (r + h)A: total surface area, r: radius, h: height
Cone VolumeV = pi r^2 h / 3V: volume, r: base radius, h: height
Pyramid VolumeV = B h / 3V: volume, B: base area, h: height
Distance Formulad = sqrt((x2 - x1)^2 + (y2 - y1)^2)d: distance, (x1, y1) and (x2, y2): points
Law of Cosinesc^2 = a^2 + b^2 - 2 a b cos(C)a, b, c: side lengths, C: angle opposite c

Fields

The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.

SectionFieldTypeExample
datashapestringCircle
dataformulastringA = pi r^2
datavariablesstringA: area, r: radius

Fetch the same bytes

The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.

curl "https://yjtoon.yunusemrevurgun.com/api/dataset/geometric-formulas?format=toon"
const res = await fetch(
  "https://yjtoon.yunusemrevurgun.com/static-data/dataset/geometric-formulas.toon"
);
const toon = await res.text();

Rate limit: 120 requests per minute per IP, no key and no signup. API reference →

Topics

  • math
  • geometry
  • formulas

Search the library

Search by a topic, title, or keyword.

Start with a collection

Browse all 205 datasets