Most teachers who use Moodle know the Auto-create groups button. It is quick, but it only knows how to deal people out: at random, or in alphabetical order. If you want every project team to get a mix of strong and weak students, or every discussion group to mix languages, you end up moving names around by hand. So I built a free Moodle group maker that does that part. It’s a plugin called Balanced groups, it went live on Moodle Marketplace this week, and it makes groups where each one looks like the whole class.
Below: what Moodle already does, what the plugin adds, what it sends out of your site, and how it got through Moodle’s review.
What Moodle already does
Moodle’s own Auto-create groups lets you pick a number of groups or a number of members per group, a naming scheme like “Group @”, and a grouping to put them in. Then it fills the groups randomly, alphabetically by first or last name, or by ID number. That’s it. It never looks at grades, at a profile field, or at anything else you know about your students.
Random is fine for a one-off. It’s not fine for a term project, where one team can end up with the three best students and another with none, and you find out in week six.
What the plugin adds
The plugin uses the same engine as my Balanced Group Maker web tool. You tell it which data matters and how much, and a mixed-integer solver (a real optimization model, not a shuffle) finds groups that each mirror the whole list. Categories, like language or experience level, get spread in proportion. Numbers, like a quiz score or the course total, get equal group averages.
In a course, it’s under More > Balanced groups, and it works in three steps:
- People and data. Pick the role (students by default) and tick the fields to balance: profile fields, custom profile fields, gradebook items including the course total, or columns from a CSV file you upload.
- Priorities, rules and sizes. Give each field a priority (1 is the most important, and each step down counts four times less). Add together and apart rules if you need them: people who share a “must be together” code land in the same group, people who share a “must be apart” code never do. These are hard rules, never broken. Then choose a number of groups or a minimum and maximum size, and a naming scheme, same as Moodle’s.
- Preview and create. You see the groups and a balance table for every field, computed inside Moodle from your real values. Nothing is created until you press Create. If you don’t like the answer, Run again gives you another arrangement that is just as balanced.

Why one score in that picture is only 66.7
Look at the language table. The quiz averages came out between 75.25 and 75.50 in every team, a balance score of 98.7. Language got 66.7. That’s not the solver giving up. There are three Mandarin speakers, three French speakers and three Portuguese speakers for six teams, so half the teams can’t get one of each. No arrangement fixes that. I’d rather the plugin show a lower number than pretend every group is a perfect copy of the class. If a score looks low, the table right under it usually tells you why.
What leaves your Moodle site
A plugin that sends student data to an outside server should say exactly what it sends. Here’s the short version. The plugin does nothing until a site administrator reads the disclosure in its settings and turns on sending data. After that, only when a teacher presses Make groups or Run again, it sends:
- a random code for each person, new on every run
- the chosen fields as f1, f2 and so on, with their priorities
- the values: numbers such as grades as they are, text values replaced by codes
- the together and apart rules, also as codes, and the group sizes
It does not send names, email addresses, usernames, Moodle user ids, field names or the real text values. The table that turns the codes back into people never leaves the teacher’s session. On my side the data sits in memory for the length of the request and is then thrown away. Grades are still personal data even without names, so check your school’s rules before you turn it on. The full details are in the plugin’s README and the privacy policy.
The limits
It’s free and runs on one modest server, so there are caps: 300 people, 60 groups and 15 balancing fields per run, and 10 runs a minute per Moodle site. A run usually takes 5 to 20 seconds. It needs Moodle 4.5 to 5.3, PHP 8.1 or later, and your Moodle server has to be allowed to reach group-maker.kindoflost.com over HTTPS. Some sites block outgoing calls, and then your admin has to allow it.
It makes groups. It doesn’t do seating charts, and it doesn’t watch the groups after they are made.
Getting through Moodle’s review
This is the same idea as my free WooCommerce delivery route planner plugin: the solver already exists, so the work is a thin layer inside the platform where people already are. I built it with Claude, like the rest of this year’s tools. I made the calls (what gets sent, what stays in Moodle, the name), Claude wrote most of the code, and we tested it on Moodle 4.5 and 5.3.
I sent it to the Moodle plugins directory in late November. A reviewer went through it and found no blockers, and the review passed on December 2. The part I didn’t expect was that passing review doesn’t publish anything. The listing stayed private until I added a short description and an icon myself and pressed publish. (Ten days of waiting, then a few minutes of filling in boxes.)
The code is GPL and on GitHub, and so is the issue tracker.
Try it
Install Balanced groups from Moodle Marketplace or from the Install plugins page of your site, turn it on in its settings, and run it on a course you already know well. You’ll see quickly whether the groups make sense. If you’re not on Moodle, the same solver runs as a free web tool and as a Google Sheets add-on. If it makes groups a teacher would laugh at, email me at [email protected]. I want to hear about the bad ones.
Things that I use, like, and am affiliated with:
Mint Mobile offers great cell phone service for $15 flat, get $15 off using the link. Get discounted phones with service activation and no contract.
I never spend money before I check Mr Rebates or Rakuten to get cashbacks, rebates, discounts, coupons or cheaper gift cards.
