ForHosting KIT · Math

Spherical sector calculator

Solve the cone-plus-cap solid cut from a sphere in one step: a sphere of radius 5 with a cap 2 high gives a rim radius of 4, plus the volume and the total surface. Heights above the diameter are rejected. 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
Radius
5
Height
2
You get
Base radius
4
Volume
104.7197551197
Surface area
125.6637061436

A spherical sector, sometimes called a spherical cone, is the solid formed when a sphere is cut by a cone whose apex sits at the sphere center and whose base is the rim of a spherical cap. Two positive lengths fix the figure completely: the sphere radius R and the cap height h measured along the axis from the cap base plane to the sphere surface. Once those are known and the height does not exceed the sphere diameter, the classical closed forms give the sector volume as two-thirds pi times R squared times h, the circular rim radius as the square root of h times two-R-minus-h, and the total surface area as pi times R times the sum of twice the height and that rim radius. Students meet these identities in solid-geometry units that follow sphere volume and spherical segments; engineers and designers need the same numbers when a dome, tank head, or packaging sketch lists radius and dome height rather than a full CAD solid.

What a spherical sector is and which two measures determine it

In Euclidean solid geometry a spherical sector is the region swept by radii from the sphere center out to every point of a spherical cap. Equivalently, it is the union of that cap with the right circular cone whose apex is the center and whose base is the circular rim of the cap. The sphere radius R is the distance from center to surface; the cap height h is the sagitta from the plane of the rim to the cap vertex along the symmetry axis.

The rim radius follows at once from the right triangle in an axial cross-section: a equals the square root of h times two-R minus h. The sector volume formula V equals two-thirds pi R squared h is standard in textbooks and reduces correctly when h equals two R: the sector fills the whole ball and the volume becomes four-thirds pi R cubed.

The total surface area counts both the spherical zone of the cap, which contributes two pi R h, and the lateral surface of the cone, which contributes pi a R, combining into pi R times two h plus a. Search intent clusters around phrases like spherical sector calculator, volume of a spherical sector, spherical cone volume, sector surface area from radius and height, and cap height twice radius limit.

People want numeric results they can check against an answer key or a tank sketch, not only a geometric argument that the solid is determined.

How this calculator validates input and applies the closed-form formulas

Each must be a positive finite number. When the bound holds, base radius a is the square root of height times two-radius minus height, volume is two-thirds pi times radius squared times height, and surface area is pi times radius times the sum of twice the height and a. Edge cases are explicit: missing fields, non-numeric strings, zero or negative radius, zero or negative height, and height larger than twice the radius all fail before any metric is returned.

The boundary h equals two R is accepted and yields the full-sphere volume with a degenerate zero rim radius, matching the classical limit. You may use any consistent unit system for radius and height; volume and area are expressed in the corresponding cubic and square units without conversion inside the engine.

Homework and exam spherical-sector drills

Students and graders confirm volume and surface area from radius and cap height, including rejection when height exceeds twice the sphere radius.

Which formulas does the calculator use?

Volume is (2/3)·π·R²·h. Base radius a is √(h·(2R−h)). Total surface area is π·R·(2h+a), the sum of the spherical zone and the cone lateral area.

What happens if the height exceeds twice the radius?

A spherical cap cannot be taller than the sphere diameter (2·R); height greater than twice the radius is rejected and those calls are not charged.

Is the spherical sector calculator free?

The browser tool runs free on your device.

How is a spherical sector different from a sphere or a spherical segment?

A full sphere needs only radius. A spherical segment (cap) is the solid cut by a plane without the cone from the center. A spherical sector includes both the cap and the cone from the sphere center to the rim.

What are the results for radius 5 and cap height 2?

The rim radius is 4, the volume is 104.7197551197 cubic units and the total surface is 125.6637061436 square units. All three come from the same two lengths, so they always agree with each other.

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/spherical-sector

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/spherical-sector \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"radius":5,"height":2}'
{
  "radius": 5,
  "height": 2
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "geom.spherical_sector",
  "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.

This capacity accepts radius and height, rejects non-positive measures and any height larger than twice the radius, and returns radius, height, base radius, volume, and surface area as structured JSON.

What a spherical sector is and which two measures determine it

Delivering radius, height, base_radius, volume, and surface_area as JSON makes the result easy to paste into notes, pin in automated tests, or feed into a larger pipeline without reimplementing pi multiplications and square roots in every language you teach or deploy.

How this calculator validates input and applies the closed-form formulas

Send a JSON body with both required fields radius and height. The engine first checks that radius and height are strictly positive and within a stable numeric range, then enforces the geometric bound that height must not exceed twice the radius: if height is greater than two times radius, the request fails with invalid_input and a message that names the twice-the-radius limit, because a spherical cap cannot be taller than the sphere diameter. Results are rounded to a stable decimal precision so the same input always yields the same JSON across JavaScript engines.

Practical use, limits, pricing, and delivery channels

Use the browser tool when you want an immediate spherical-sector solution while checking homework, sizing a dome-and-cone solid, verifying a storage volume from a measured radius and cap height, or confirming a workshop drawing without installing a computer-algebra system. Results are fully deterministic: the same radius and height always yield the same base radius, volume, and surface area. There is no language model, no external geometry service, and no randomness, so the capacity is safe to pin in continuous-integration checks and reproducible lesson materials. Each successful request is one billable item at $0.002; failed validation does not consume balance. Accepted inputs must be strictly positive with height at most twice the radius; excess height is always rejected with invalid_input, and zero or non-finite measures are likewise refused. Wire the endpoint into solid-geometry drills, contest answer checkers, dome capacity worksheets that list only R and h, or floating preprocessing steps where you already prefer explicit domain errors over opaque black-box widgets that cannot show why a height larger than twice the radius is rejected.

Deterministic fixtures for solid-geometry tests

Pipelines that seed unit tests or interactive sector demos can call a pure spherical-sector oracle instead of reimplementing (2/3)πR²h and πR(2h+a) in every language.

Domes, tank heads, and sector solids from R and h

Shop or logistics notes that list sphere radius and dome height recover full sector metrics as structured JSON for reports, capacity charts, or lightweight CAD helpers.

How do I compute spherical sector volume and surface area with this API?

Send a JSON body with positive radius and height to geom.spherical_sector. The response returns radius, height, base_radius, volume, and surface_area.

Read the full KIT documentation →