Circle diameter from circumference calculator
Measure the distance around a circle and get how wide it is: the diameter is the circumference divided by π, so a circumference of 2π gives a diameter of 2. The radius and the area come with it. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Circumference
- 31.4159265359
- Circumference
- 31.4159265359
- Diameter
- 10
- Radius
- 5
- Area
- 78.5398163397
When you know the distance around a circle but not how wide it is, the classical identity circumference equals pi times diameter solves the problem in one division: diameter equals circumference divided by π. This circle diameter from circumference calculator accepts a single finite length for the full perimeter, divides by π, and returns the diameter together with the matching radius and disk area so you can cross-check a tape measurement, a pipe schedule, a wheel size, or a homework answer without opening a full CAD package.
What d = C / π means and how circumference drives every related length
A circle is the set of points in a plane at a fixed distance—the radius—from a center. Rearranging for the unknown diameter gives the one-step formula this capability implements: d = C / π. Because diameter scales linearly with circumference, doubling the measured perimeter doubles the diameter, and halving the perimeter halves the diameter—unlike area, which scales with the square of a linear measure.
That linear map is why a small absolute error on a large circumference still maps to a proportional absolute error on the diameter, without the quadratic amplification that appears when you go from radius to area. Units are your responsibility: if the circumference is in metres the diameter is in metres and the area is in square metres; if the circumference is in inches the diameter is in inches.
When you need arc length for a partial sector you combine a central angle with the full circumference elsewhere; here the intent is the full closed perimeter to diameter, which matches the common search for a circle diameter from circumference calculator.
When a diameter from the circumference helps
Classrooms and tutoring platforms use a dedicated circle diameter from circumference calculator so learners can check d = C/π for arbitrary positive lengths without calculator-mode mistakes or wrong order of operations. Exam generators and LMS plugins need a deterministic oracle that marks negative circumference as invalid instead of silently taking an absolute value that would hide a student error. Failed validation does not consume balance.
Keep the circumference finite and non-negative, pin the rounded diameter in tests, and you get reproducible diameters for homework, CAD checks, and edge workers without standing up a geometry library of your own.
What you can do with it
Homework and classroom checks
Students enter a circumference and verify d = C/π (plus radius and area) against textbook answers without unit conversion surprises.
Exam and LMS auto-grading
Mark diameter-from-circumference items with a deterministic oracle that rejects negative perimeter and never silently abs-values a sign error.
FAQ
What happens if the circumference is negative?
A Euclidean circle circumference cannot be less than zero; those failures are not billed.
Is a zero circumference allowed?
Yes. Circumference zero yields diameter zero, radius zero, and area zero—the degenerate disk limit.
What value of π does it use?
Full double-precision π, about 3.141592653589793. The same constant rebuilds the radius and the area, so the diameter, radius and area you get always fit together.
Can I use it with a tape measurement of a pipe or wheel?
Yes. Wrap a tape once around the pipe, wheel or post, enter that length and you get the diameter in the same unit, along with the radius and the area of the circle.
If the circumference doubles, does the diameter double too?
Yes. The diameter grows in step with the circumference, unlike the area, which grows with the square. A small error on the tape therefore stays a proportional error on the diameter.
Related tools
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/geom/circle-diameter-circumference \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"circumference":31.41592653589793}'const res = await fetch("https://api.kit.forhosting.com/geom/circle-diameter-circumference", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"circumference": 31.41592653589793
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/geom/circle-diameter-circumference",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"circumference": 31.41592653589793
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/geom/circle-diameter-circumference", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"circumference":31.41592653589793}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"circumference":31.41592653589793}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/geom/circle-diameter-circumference", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"circumference": 31.41592653589793
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "geom.circle_diameter_circumference",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
A negative circumference is rejected with invalid_input because length cannot be negative in Euclidean geometry; a zero circumference is allowed and yields diameter zero.
What d = C / π means and how circumference drives every related length
The full closed path around that set is the circumference, classically written C = 2 π r or equivalently C = π d, where d is the diameter (exactly twice the radius). Alongside the diameter this endpoint also returns the radius (exactly half the diameter) and the disk area A = π r² rebuilt from that radius, so you can verify consistency with a drawing, a cut list, or a textbook exercise that asks for more than one circle measure from a single perimeter reading. The endpoint never converts units; it only applies the pure geometric map from circumference to diameter, radius, and area.
Input contract, response shape, and negative-circumference errors
Zero is accepted and yields diameter zero, radius zero, and area zero, which is the mathematical limit of a degenerate disk. On success the body includes the echoed circumference, the computed diameter d = C / π, the radius r = d / 2, the area A = π r², a formula string restating d = C / π, and the constant pi used by the runtime. Example: circumference equal to 2 π (approximately 6.283185307179586) yields diameter approximately 2, radius approximately 1, and area approximately π. Keep requests tiny—one number in, a handful of numbers out—and pin the rounded fields in automated tests so a future change to rounding would surface immediately. POST a JSON object with one required field: circumference (aliases c, perimeter, and circumference_length are accepted). The value must be a finite number or a numeric string; missing, empty, non-numeric, NaN, and Infinity values fail with invalid_input naming the field. Pair the response with your own unit labels in the UI; this endpoint does not emit unit strings or step-by-step prose beyond the formula field.
Where a circle-diameter-from-circumference API earns its keep
Fabrication, plumbing, and landscaping estimators recover pipe, wheel, and circular-bed diameters from a measured tape wrap before ordering material; calling a tiny parse API avoids embedding ad-hoc π constants in every spreadsheet.
Integration use cases
Pipe, wheel, and site estimates
Recover circular diameter from a tape-wrap measurement in scripts and spreadsheets via a tiny prepaid API call.
Technical questions
How do I calculate the diameter of a circle from its circumference?
Send a finite non-negative circumference. The API returns diameter = circumference / π, plus radius (d/2) and area (π r²), with formula d = C / π.
Which value of π is used?
The IEEE double Math.PI of the runtime (approximately 3.141592653589793). It is echoed in the pi field of the response.
What does the circle diameter from circumference calculator cost?
The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.