Sphere circumscribed about a cube calculator
Find the smallest sphere that encloses a cube, passing through all eight corners: its radius is the edge times √3/2, so an edge of 1 gives about 0.866. The volume of that sphere comes with it. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Edge
- 2
- Radius
- 1.7320508076
- Volume
- 21.7655923708
The circumscribed sphere of a cube is the unique sphere that passes through all eight vertices—the smallest sphere that fully encloses the solid. Its radius is half the cube space diagonal, so once you know the edge length a you only need R equals a times the square root of three over two, then the sphere volume follows as four-thirds pi R cubed. Packaging engineers sizing spherical containers around cubic products, CNC and 3D-print operators planning clearances, game developers placing spherical collision bounds on cubic meshes, and students checking solid-geometry homework all need that enclosing radius and volume without re-deriving the space diagonal each time. This sphere-circumscribed-about-cube calculator accepts a single positive edge length, applies the closed forms, and returns the radius, the sphere volume, and a short formula string you can show next to the answer.
What the circumscribed sphere of a cube is and why the formulas are closed form
A cube has twelve equal edges, six square faces, and eight vertices. The longest distance inside the cube is the space diagonal, which joins opposite corners through the interior and measures a times the square root of three by applying Pythagoras twice: first the face diagonal is a times the square root of two, then that face diagonal and a third orthogonal edge form a right triangle whose hypotenuse is the square root of two a squared plus a squared, which simplifies to a times the square root of three.
The circumscribed sphere—also called the circumsphere or the smallest enclosing sphere about the cube—has that space diagonal as its diameter, because the sphere must pass through all eight vertices and the centre of the cube is the midpoint of any space diagonal. Therefore the circumradius R is exactly half the space diagonal: R equals a times the square root of three, all over two. The volume of that sphere is the standard ball formula V equals four thirds pi R cubed.
This is not the same as the inscribed sphere (insphere), whose radius is only half the edge and touches the face centres rather than the corners. Searchers looking for a sphere circumscribed about a cube calculator almost always want the outer enclosing radius and volume for packing, clearance, or bounding geometry, so this tool reports those two scalar results and does not mix in surface area of the cube, face diagonals, or inradius.
Where the sphere around a cube is needed
Classrooms and tutoring platforms use a sphere circumscribed about a cube calculator so learners can check the half space-diagonal identity and the ball volume formula for arbitrary edge lengths without mis-applying the square root of three or confusing face diagonals with space diagonals. Exam-prep generators need a deterministic oracle that marks negative edges as invalid instead of silently returning nonsense radii a buggy grader might accept.
Game and map engines that use cubic cells convert edge length to vertex radius when placing spherical collision shapes or camera bounds on axis-aligned voxels. Failed validation does not consume balance. Keep requests small, pin the rounded radius and volume in tests, and you get reproducible enclosing spheres for homework, LMS plugins, and edge workers without standing up symbolic math infrastructure of your own.
Fabrication shops can batch-convert a list of cube stock sizes into minimum sphere diameters by doubling the returned radius when ordering spherical blanks or protective domes.
What you can do with it
Classroom and homework checks
Let students submit a positive cube edge length and verify the circumscribed-sphere radius against R=a·√3/2 and the volume against (4/3)πR³ without hand-computing roots incorrectly.
Packaging, CAD, and fabrication clearances
Convert a known cube edge into the enclosing sphere radius and volume for packing into spherical stock, shipping shells, laser paths, and outer clearances.
Games and voxel collision bounds
Map cubic cell or mesh edge lengths to spherical hitbox radii when placing assets on a shared circumsphere in engines and layout tools.
FAQ
What happens if the edge is negative?
A geometric cube edge length cannot be negative; zero and non-positive values are also rejected and not billed.
Is the circumscribed sphere the same as the inscribed sphere?
No. The circumscribed (enclosing) sphere passes through the vertices with radius a·√3/2. The inscribed sphere touches the face centres with radius a/2. This tool returns only the enclosing sphere radius and volume.
Why is the formula half the space diagonal?
The cube space diagonal is a√3 by double application of Pythagoras and is also the diameter of the unique sphere through all eight corners, so the radius is half of that: R = a·√3/2.
What sphere do I get for a cube with an edge of 2?
A radius of exactly √3, about 1.732050807569, because half of 2 times √3 is √3 itself. The volume of that sphere is about 21.765 cubic units.
What units are the radius and volume in?
The same unit as the edge you enter, with the volume in that unit cubed. The calculator does not convert units, so an edge in millimetres gives a radius in millimetres and a volume in cubic millimetres.
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/cube-circumscribed-sphere \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"edge":2}'const res = await fetch("https://api.kit.forhosting.com/geom/cube-circumscribed-sphere", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"edge": 2
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/geom/cube-circumscribed-sphere",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"edge": 2
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/geom/cube-circumscribed-sphere", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"edge":2}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"edge":2}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/geom/cube-circumscribed-sphere", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"edge": 2
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "geom.cube_circumscribed_sphere",
"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
Negative edge lengths fail with invalid_input instead of a silent NaN.
Input contract, response shape, and error behaviour
On success the body includes the echoed edge, the enclosing sphere radius rounded to twelve decimal places, the sphere volume rounded the same way for stable goldens across runtimes, and a formula string restating R equals a times the square root of three over two and V equals four thirds pi R cubed. Example: edge equals two yields radius approximately one point seven three two zero five zero eight zero seven five six nine, because half of two times the square root of three is the square root of three itself, and a volume near twenty-one point seven six five. Edge equals one yields half the square root of three for the radius, about zero point eight six six, with a correspondingly smaller volume. Keep units consistent yourself: the calculator is unit-agnostic, so if edge is in millimetres the radius is in millimetres and the volume is in cubic millimetres. POST a JSON body with one required field: edge, the finite positive edge length of the cube. The value may arrive as a JSON number or as a numeric string; non-finite values, missing fields, empty strings, and non-numeric text fail with invalid_input naming the field. Pair the response with your own drawing code if you need a sketch of the circumsphere or the space diagonals; this endpoint computes the scalar radius and volume only and does not emit SVG, step-by-step prose beyond the formula field, or related cube metrics such as face area or total surface. Extremely large finite edges remain valid as long as the IEEE floating results stay finite; non-finite intermediate results would fail the finite-number checks on input rather than return Infinity as a success payload. String edges such as scientific notation that parse to a positive finite number are accepted the same way as bare JSON numbers.
Where a sphere-circumscribed-about-cube API earns its keep
Architecture, packaging, and product-design notebooks often size cubic crates, dice, or UI voxels from a known edge and need the bounding sphere for packing into spherical stock, shipping clearance, or round protective shells; calling a tiny parse API avoids pulling a full computer-algebra system for a one-parameter special case.
Technical questions
How do I compute the circumscribed sphere of a cube from edge length?
Send a finite positive number edge. The API returns R = a·√3/2 (radius of the sphere through all eight vertices), volume V = (4/3)πR³, and a short formula string.
What does the sphere circumscribed about a cube calculator cost?
The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.