🧮 Geometry Calculator

Compute area, perimeter and volume for common plane and solid figures.

📐 计算公式
九形状几何量公式合集(本页代码口径,按形状切换):矩形 S=w×h、C=2(w+h)、对角线 √(w²+h²);正方形 S=a²、C=4a、对角线 a√2;圆 S=πr²、C=2πr、直径 2r;三角形 A=底×高÷2(另按海伦复核)、C=a+b+c;梯形 S=(a+b)×h÷2、C=a+b+c+d、中位线 (a+b)÷2;球 V=4πr³÷3、S=4πr²;正方体 V=a³、S=6a²、体对角线 a√3;圆柱 V=πr²h、S=2πr(r+h)、侧面积 2πrh;圆锥 V=πr²h÷3、S=πr(r+l)、侧面积 πrl。校验:按当前形状逐项检查必填尺寸,空值、非数字、零或负数一律报错,不输出任何面积/体积/周长结论。判据(一致性守卫):三角形须满足三边不等式且底×高与海伦面积一致、梯形须腰长≥高且两腰水平投影能拼出两底之差(1% 容差)、圆锥须母线 l 与 √(r²+h²) 偏差 ≤0.5%,否则给出对应警告。

2D/3D 图形面积、体积、周长

形状

📏

👆 选择形状

📚 深度解析:几何计算器

💡 常见使用场景

  • 矩形、正方形、圆、三角形等基础图形的面积、周长、对角线,是装修、土地丈量、材料估算的常用量。
  • 不同形状公式差异大,先选对图形再代入对应公式。
  • 所有长度单位需统一(如都用 m),结果面积单位自动为平方单位。
算例:矩形 4×5 m
面积 S = w×h = 20.00 m²;周长 C = 2(w+h) = 18.00 m;对角线 = √(w²+h²) = 6.40 m。
算例:正方形边长 4 m
面积 S = a² = 16.00 m²;周长 C = 4a = 16.00 m;对角线 = a√2 = 5.66 m。

❓ 常见问题(FAQ)

计算前为什么要统一单位?
公式本身不做单位换算。若长用 m、宽用 cm 直接相乘,面积会错 100 倍。务必先把所有输入归一到同一单位再算。
圆形和矩形的面积公式为何不同?
源于几何本构:矩形=长×宽,圆=πr²(由极限逼近得到),三角=½底×高。它们对应不同边界形状,不能混用;本工具按所选形状自动切换公式。

Formula & Standard References

Item Formula / Note Source / Standard
Triangle area (Heron) S = sqrt( s(s-a)(s-b)(s-c) ), where s = (a+b+c)/2 Heron of Alexandria, Metrica
Sphere area and volume A = 4·pi·r^2; V = (4/3)·pi·r^3 Archimedes, On the Sphere and Cylinder
Cylinder volume V = pi · r^2 · h ISO 80000-2:2019, Quantities and units - Part 2: Mathematics
Circle circumference and area C = 2·pi·r; A = pi·r^2 Archimedes, Measurement of a Circle
⚠️ 使用说明与注意事项