🧮 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
⚠️ 使用說明與注意事項