ForHosting KIT · Developer Utilities

Student-teacher ratio calculator

This student-teacher ratio calculator turns a class or program headcount into a clear students-per-adult figure and checks it against the maximum ratio you provide.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the total number of students, then count the teachers and aides whose instructional support should be included. The result shows the calculated ratio, preserves your target for easy review, and gives an immediate pass-or-above-target status. It is useful for planning, reporting, and quickly comparing staffing scenarios without relying on ambiguous rounded mental arithmetic.

Count students and instructional adults consistently

Begin by choosing the exact class, group, shift, or program you want to measure. Enter every student covered by that scope, including students who are temporarily absent if your purpose is enrollment planning. For the adult count, include teachers and aides only when they genuinely provide instructional or classroom support within the same scope. Do not mix a whole-school student total with staff assigned to only one grade, and do not add administrators or occasional visitors merely because they work in the building. Consistency matters more than the label used for a role. If two part-time aides jointly cover one full schedule, your local reporting rules may require a full-time-equivalent calculation, but this tool accepts whole people and therefore works best with a defined headcount at a specific time. Write down the scope and counting rule beside the result whenever it will support a formal decision. That small note makes later comparisons meaningful and prevents an apparently precise ratio from hiding incompatible definitions.

Understand the ratio and target comparison

The calculation divides the number of students by the number of teachers and aides. For example, 28 students supported by two instructional adults produces 14 students per adult. The target is a maximum, so a calculated value equal to the target still meets it; only a value above the target is flagged as above target. The displayed decimal is rounded to six places for stable, readable output, while the comparison uses the unrounded calculation. This avoids a borderline value appearing to pass merely because its display was shortened. A lower ratio means fewer students per included adult, but it should not automatically be interpreted as better educational quality. Scheduling, student needs, staff experience, room design, and the kind of instruction all affect what a ratio means in practice. Use the status as a mathematical check against the policy or planning threshold you entered, not as a substitute for professional judgment or for the precise class-size rules that apply in your jurisdiction.

Use the result for planning and reporting

For staffing scenarios, run the calculation again with each plausible adult count and compare the resulting ratios. This makes it easy to see whether adding an aide would bring a group under its target or whether expected enrollment growth would push it above the limit. For reports, retain the student count, adult count, target, ratio, and status together; a ratio without its source counts cannot be audited. The calculator rejects a teacher count of zero because division by zero cannot produce a meaningful students-per-adult ratio. It also rejects negative, fractional, missing, or nonnumeric headcounts, which helps prevent accidental results from malformed data. The target may contain a decimal when a policy or internal benchmark uses one. When official compliance is involved, confirm whether the rule is based on enrolled students, students present, full-time-equivalent staff, licensed teachers only, or a specific classroom snapshot. Once those definitions are aligned, this deterministic calculation is suitable for repeated checks in spreadsheets, internal tools, enrollment workflows, or API-driven dashboards.

Check a classroom staffing target

Compare a current class headcount with the maximum students-per-adult ratio used by a school or program.

Model an added aide

Recalculate with another instructional adult to see whether a proposed staffing change reaches the target.

Validate enrollment planning

Test projected student totals against available teachers and aides before assigning groups or opening sections.

How is the student-teacher ratio calculated?

The number of students is divided by the number of teachers and aides included in the same group.

Does a ratio equal to the maximum pass?

Yes. The target is treated as a maximum, so an equal or lower ratio meets the target.

Can I include classroom aides?

Yes. Include aides when your chosen policy or planning definition treats them as instructional adults, and apply that definition consistently.

Why can the teacher count not be zero?

A students-per-teacher ratio requires division by the adult count. Division by zero is undefined, so the input is rejected.

Does meeting the target prove legal compliance?

No. Rules may define students, teachers, aides, attendance, and full-time equivalents differently. Verify the governing definition before using the result for compliance.

What does the API request cost?

Each API request costs $0.002; the same deterministic calculation is available free in the browser.

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/edu/class-size-ratio-check

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/edu/class-size-ratio-check \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"students":28,"teachers":2,"target_max_ratio":15}'
{
  "students": 28,
  "teachers": 2,
  "target_max_ratio": 15
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "edu.class_size_ratio_check",
  "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.

Read the full KIT documentation →