Guides · Migrations
Setting up the Moodle gradebook: categories and weights

A Moodle gradebook is a tree. Grade items sit in categories, categories can sit in other categories, and each category has a rule for turning what is inside it into one number. Most gradebook problems come down to one of those rules being different from what the module handbook says. This guide covers how to build the tree, which rule to pick, and how to set weights so the course total matches the assessment plan.
Menu names are from the Moodle 5.3 documentation.
Start from the assessment plan
Write the structure down before you open Moodle. For each assessment: its name, its maximum mark, its weight in the module, and which group it belongs to (coursework, exam, attendance). That list becomes the tree. Each group is a category; each assessment is a grade item inside it.
Build the tree
- Open the course gradebook and choose Gradebook setup from its drop-down menu.
- Choose Add, then Add category. Give it a name, set its aggregation (below), and save.
- Graded activities already have grade items. Place each in its category.
- For marks that live outside Moodle, such as a practical exam, choose Add grade item and fill in Item name, Grade type and Maximum grade.
- Give an ID Number to any item a calculation will refer to. Formulas use it.
Useful settings on an item: Grade to pass (completion can require a passing grade), Hidden and Hidden until to hold marks back, and Locked and Locked after to stop later changes.
Choose an aggregation
Each category has an Aggregation setting. Natural is the default, and by default no other type is available. A site administrator can switch others on at Site administration > Grades > Grade category settings > Available aggregation types.
| Method | What it does | Fits when |
|---|---|---|
| Natural | Adds up the grade values, scaled by weights. The category maximum is the sum of the items' maximums | Marks add up, or you want to set weights directly |
| Weighted mean | Each item's percentage times its weight, divided by the sum of the weights | The handbook gives each assessment a weight |
| Simple weighted mean | As weighted mean, with each item's maximum grade as its weight | Bigger assessments should count more, in proportion to their marks |
| Mean of grades | The average of the items' percentages | Every item counts equally |
| Median, Highest, Lowest, Mode | The middle, top, bottom or most frequent percentage | Special cases; Mode suits non-numeric grades |
Mean of grades (with extra credits) is an old method the documentation marks as unsupported. Leave it alone on new courses.
Set the weights
With Natural, the weights start as information only: each shows how much each item counts, given its maximum mark. To set a weight yourself, tick the item's weight box and type the figure. When you change one weight the others adjust. Ticking every weight box and setting them equal turns Natural into a plain mean.
With Weighted mean, set each item's weight, or a category's weight in its parent using Parent Category - Item Weight. Weights inside a category do not need to add up to 100: Moodle divides by their sum.
Extra credit
In a Natural category, tick Act as extra credit on an item. Its grade counts towards the total, but its maximum does not add to the category maximum. The documentation's own example: a 0 to 100 extra credit item beside a 0 to 75 item gives a 0 to 75 category, and scores of 20 and 70 give 75 out of 75.
Dropping the lowest grade
Drop the lowest and Keep the highest are category settings. In a Natural category, Drop the lowest is only allowed when every item in the category has the same weight and the same maximum grade, and the category has no subcategories and no extra credit items. If the setting will not take, check those four conditions.
Empty grades
An empty grade is a missing entry, and the documentation warns it can mean several things, so read it with care. Aggregate only non-empty grades is the category setting for them. The documentation notes that Lowest is usually used with it.
A worked example
At a demo university a module has three essays and an exam. The handbook says coursework counts for 40 and the exam for 60, with the weakest essay dropped.
- Two categories, Coursework and Exam, under the course total, both Natural.
- The three essays have the same maximum mark and no extra credit, so Drop the lowest is allowed in Coursework.
- At the course level, the weight boxes for the two categories are ticked and set to 40 and 60.
- A test student with invented marks is checked against a hand calculation before any real marks go in.

The last step is the one teams skip. A gradebook that has never been checked against a hand calculation is a guess. Our grade check guide sets out how to check grades before release.
Next year
A course reset can keep this structure or remove it: our guide to resetting a Moodle course explains which option does which. If grades feed completion, see Moodle completion tracking.
Bradawl Content Check does not look at grades. It checks what sits around them after a rollover: dates against the new course start, links, missing files, duplicate titles and empty sections. It works with Moodle, opens a backup made without user data, runs in your browser and sends nothing anywhere. It has been tested on invented data, and no findings is not a sign-off that a course is ready. Download Content Check, or see all the free tools.
Moodle is a trademark of its owner. Bradawl is independent and not affiliated with it.
Related guides
- Checking grades before release in Blackboard Ultra
- Resetting a Moodle course for a new year
- Moodle activity completion: conditions and tracking
Panopto, Blackboard, Moodle, Canvas and Microsoft Teams are trademarks of their owners. Bradawl is independent and not affiliated with them.