跳到主要内容

梯形计算器

从另外三个值计算梯形的面积、高度或平行边之一。显示中位线(中段)的长度,并且——有腿部长度时——显示周长和等腰梯形/不等腰梯形的分类,以及带标签的图表。

输入

将底边a、底边b、高度或面积中的任意一个留空——它将从其他三个计算得出。

输出

图表

求解后,梯形图表将显示在此处。

解答
 
图表(SVG源代码)
 
这对您有帮助吗?

使用此工具的更多方式

REST API

curl -X POST https://api.iotools.cloud/v1/tool/trapezoid-calculator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "base1": "6",
    "base2": "10",
    "height": "4"
  }'

替换成您账户中的密钥。工具的字段即为请求体——没有额外包装。

让 AI 代理执行

Use the IOTools `trapezoid-calculator` tool (Trapezoid Calculator) on this input:

YOUR_INPUT_HERE

将此粘贴给任何已连接 IOTools MCP 服务器的代理,再加上您的输入内容。

嵌入式小组件

<iframe
  src="https://iotools.cloud/embed/trapezoid-calculator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="梯形计算器 — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

把它放到您自己的页面上——免费,无需密钥,只需保留一个反向链接。

每次 API/MCP 调用费用5 积分起
需要更多积分?查看定价

也可通过

使用指南

Solve a trapezoid's area, height, or either parallel base from the other three values, plus its median (midsegment) length. Add the two leg (non-parallel side) lengths for the perimeter and an isosceles/scalene classification, and get a labeled diagram either way.

The formula

For a trapezoid with parallel bases a and b and height h (the perpendicular distance between them):

area = (a + b) / 2 × h

The median (or midsegment) — the segment connecting the midpoints of the two legs — always has length (a + b) / 2, which is also area / h.

Solve for any of the four

Leave any ONE of base a, base b, height, or area blank and the calculator solves for it from the other three:

  • Missing areaarea = (a + b) / 2 × h
  • Missing heighth = 2 × area / (a + b)
  • Missing base aa = 2 × area / h − b
  • Missing base bb = 2 × area / h − a

If all four are supplied, the calculator checks they're consistent and flags it if they aren't.

Perimeter and shape (optional)

Fill in leg 1 and leg 2 (the two non-parallel sides) and the calculator also reports:

  • Perimetera + b + leg 1 + leg 2
  • Shape — isosceles (equal legs) or scalene

How to use it

  1. Enter any three of base a, base b, height, and area — the fourth is solved for you.
  2. Optionally add both leg lengths for the perimeter and shape classification.
  3. Read the labeled diagram and the full solution, or copy the SVG source.

All calculations run in your browser — nothing is uploaded.

What if my four values don't match up?

If you fill in all four of base a, base b, height, and area, the calculator verifies area = (a + b) / 2 × h and tells you what area those three dimensions actually give if it doesn't — leave one field blank instead to have it solved for you.

trapezoidgeometryquadrilateralarea of a trapezoidmedianmidsegmentperimeterisosceles trapezoid

喜欢这些工具?去掉广告吧。

一次性付款即可永久移除您账户中的所有广告。无需订阅,不追踪。