ForHosting KIT · Math

Heptagon circumradius calculator

Get the radius of the circle that passes through every corner of a regular heptagon from its side, so side 4 gives about 4.60953 and a perimeter of 28. Apothem and area come along for the same worksheet. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Side
4
You get
Circumradius
4.6095297419
Apothem
4.1530427931
Perimeter
28
Area
58.142599104

A regular heptagon has seven equal sides and seven equal interior angles. Given only the side length, this calculator returns the circumradius—the radius of the unique circle that passes through every vertex—using the closed regular-polygon identity R equals side divided by two times the sine of pi over seven. Related apothem, perimeter, and area ship in the same response so one request covers the usual worksheet pack that asks for both the outer circle and the enclosed region.

How regular heptagon circumradius is computed from the side

Label the common side length of the regular heptagon as side (or s). Every regular n-gon sits on a circle whose center is the common meeting point of the perpendicular bisectors of the sides. Connecting that center to two adjacent vertices forms an isosceles triangle with apex angle two-pi over n and base equal to the side.

Bisecting the apex produces a right triangle with opposite side s over two and hypotenuse equal to the circumradius R, so sin of pi over n equals s over two R, which rearranges to the textbook formula R equals s divided by two times sin of pi over n. For a regular heptagon, n is seven, so R equals side divided by two times sine of pi over seven. Classic checks include side one, which yields R about 1.15238, and side two, which scales linearly to about 2.30476.

Because the path uses only multiplication, division, and a single sine of a fixed angle, it is deterministic, O(1), and free of iterative solvers. The response also echoes apothem (distance from center to a side midpoint), perimeter seven times side, and area one half times perimeter times apothem so a single call covers the metrics most worksheets ask for next to the circumradius.

Where heptagon circumradius calculations show up in real work

Secondary-school and college geometry courses ask for the radius of the circle through the vertices of a regular heptagon given only the side, and often for apothem or area on the same problem set; a trusted calculator with a strict positive-side gate speeds homework grading and removes spreadsheet mistakes where someone confuses inradius with circumradius.

Architecture, design, and manufacturing workflows size heptagonal plates, decorative tiles, hardware blanks, coin-like blanks, and clearance circles around regular seven-sided panels from a single edge length; circumradius feeds nesting and hole-circle layouts while apothem and area help place centerlines and material estimates. Game, graphics, and CAD libraries store regular heptagonal cells for maps, strategy boards, and procedural meshes; deterministic outer radius and related metrics support collision proxies and layout math without a full computational-geometry stack.

Survey and sketch tools sometimes approximate flat regular panels as heptagons when only the side is measured; having a shared numeric oracle keeps field notes and office scripts aligned. If you later need irregular heptagon metrics from vertices, a general regular n-gon solver, or heptagon area alone without the circumcircle, treat those as separate search intents rather than overloading this heptagon-circumradius landing.

Homework and exam checks

Compute regular heptagon circumradius from side length, and reject zero or negative sides with a clear error.

Plates, tiles, and hole circles

From a measured edge length, recover outer circle radius, apothem, and area for cut lists and bolt patterns.

What formula does this calculator use?

R = side / (2 × sin(π/7)) for a regular heptagon.

What happens if the side length is zero or negative?

The side must be a positive finite number; the error message names the field and requires a positive value.

Is circumradius the same as apothem?

No. Circumradius is the distance from center to a vertex (outer circle). Apothem is the distance from center to a side midpoint (inner circle). Both are returned so you can compare them.

What else is returned besides circumradius?

Apothem, perimeter (7×side), area (½×perimeter×apothem), sides (7), the circumradius formula string, and a method tag for logs and teaching UIs.

What does it cost?

The browser tool is free and runs locally.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/geom/heptagon-circumradius

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/geom/heptagon-circumradius \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"side":4}'
{
  "side": 4
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "geom.heptagon_circumradius",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

A missing, non-finite, zero, or negative side is rejected with a clear invalid_input error instead of a silent nonsense radius. No network calls, no random sampling, and no floating-point surprises beyond ordinary IEEE-754 arithmetic on the numbers you provide.

How regular heptagon circumradius is computed from the side

Huge magnitudes can still overflow IEEE-754 double range; when intermediates are non-finite the request fails with a clear overflow message instead of returning Infinity in JSON. That closed form keeps automated graders aligned with hand computation on the same side length.

What you send and what you get back

Provide one required finite number: side is the length of any edge of the regular heptagon and must be strictly positive. Example checks: side four yields circumradius about 4.60953 with perimeter twenty-eight; side one yields the unit regular heptagon outer radius; a side of zero or minus two fails naming the field and requiring a positive value. Wire the free browser tool for quick sanity checks, then call the identical contract from scripts for bulk evaluation without reimplementing the two-sine formula in every language. Optional precision is an integer from zero through fifteen decimal places (default twelve) for numeric fields in the response; aliases decimals and dp map to the same control. Missing fields, empty strings, non-numeric text, NaN, Infinity, zero, and any negative side are rejected with invalid_input and are not charged. On success the JSON response returns side, circumradius, apothem, perimeter, area, sides set to seven, formula_circumradius describing the closed form, and method set to regular_heptagon_side_to_circumradius so logs and teaching UIs can document the algorithm. API pricing is the published base of $0.002 per successful item.

Where heptagon circumradius calculations show up in real work

Because this capability is a pure parse engine, failed validation does not consume balance and successful runs stay at $0.002 per item.

Heptagon cells in games and CAD

Turn side length into circumradius and perimeter for layout, packing, and collision proxies in browser or API.

Read the full KIT documentation →