Code tool

Class Size Ratio Calculator

Calculate mean pupils per class, minimum sections for your own capacity and expected totals; compare actual class rows and named scenarios. All calculations stay in this browser.

In-browser processingNo account requiredPrivacy details ↗

No institutional, staffing, capacity or full-time policy is inferred.

The balanced allocation is a model; actual class rows are analyzed separately.

Each actual row represents one class. The class-weighted mean includes empty classes; the pupil-weighted mean weights each class by its pupil count.

Enter all required values as nonnegative plain decimals; counts must be integers and divisors positive. At most 512 digits per numeric input. Names are required.

Scenario name
Actual class rows

A QUICK WALKTHROUGH

How to use this tool

  1. Choose a calculation mode and give the scenario a name.
  2. Enter the active counts or add named actual classes.
  3. Calculate, inspect the full tables, and copy or download the fixed report.

Method

The balanced allocation is a model; actual class rows are analyzed separately.

Parsed values and formulas

Each actual row represents one class. The class-weighted mean includes empty classes; the pupil-weighted mean weights each class by its pupil count.

Frozen report

Exact fractions are retained when a decimal repeats. Enter all required values as nonnegative plain decimals; counts must be integers and divisors positive. At most 512 digits per numeric input. Names are required. No institutional, staffing, capacity or full-time policy is inferred.

GOOD TO KNOW

Common questions

Does this give a pupil–teacher ratio?

No. Classes and teachers are different denominators; this calculator has no teacher or staffing model.

How is a balanced class allocation shown?

For 101 pupils and 4 classes: one class has 26 pupils and three have 25. The exact mean is 25.25.