Classroom group allocator calculator

Choose the nearest feasible group count to students / desired size, then distribute students as evenly as possible.

Your inputs

Use the units shown.

Group count
8
Balanced group sizes
4, 4, 4, 4, 4, 4, 3, 3

Your calculation
How is this calculated?

Feasible group counts range from roundUp(a/d) through floor(a/c). Clamp round(a/b) to that range; reject if the range is empty.

Give each group floor(a/group count) students, then give one extra to the first a remainder group count groups.

Choose the nearest feasible group count to students / desired size, then distribute students as evenly as possible. Groups differ by at most one; this allocates counts, not named students.

OpenStax: algebra and proportional reasoning ↗

Try an example

Worked example

Group count: 8

Inputs
  • Students: 30
  • Desired group size: 4
  • Minimum group size: 3
  • Maximum group size: 5

Compare inputs

Group count: 4

Inputs
  • Students: 17
  • Desired group size: 4
  • Minimum group size: 3
  • Maximum group size: 5
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.