Abstract. Since the mid 1990s, Australia's Commonwealth Science Industry and Research Organisation (CSIRO) has developed a biogeochemical (BGC) model for coupling with a hydrodynamic and sediment model for application in estuaries, coastal waters and shelf seas. The suite of coupled models is referred to as the CSIRO Environmental Modelling Suite (EMS) and has been applied at tens of locations around the Australian continent. At a mature point in the BGC model's development, this paper presents a full mathematical description, as well as links to the freely available code and User Guide. The mathematical description is structured into processes so that the details of new parameterisations can be easily identified, along with their derivation. The EMS BGC model cycles carbon, nitrogen, phosphorous and oxygen through multiple phytoplankton, zooplankton, detritus and dissolved organic and inorganic forms in multiple water column and sediment layers. The underwater light field is simulated by a spectrally-resolved optical model that includes the calculation of water-leaving reflectance for validation with remote sensing. The water column is dynamically coupled to the sediment to resolve deposition, resuspension and benthic-pelagic biogeochemical fluxes. With a focus on shallow waters, the model also includes particularly-detailed representations of benthic plants such as seagrass, macroalgae and coral polyps. A second focus has been on, where possible, the use of geometric derivations of physical limits to constrain ecological rates, which generally requires population-based rates to be derived from initially considering the size and shape of individuals. For example, zooplankton grazing considers encounter rates of one predator on a prey field based on summing relative motion of the predator with the prey individuals and the search area, chlorophyll synthesis includes a geometrically-derived self-shading term, and the bottom coverage of benthic plants is generically-related to their biomass using an exponential form derived from geometric arguments. This geometric approach has led to a more algebraically-complicated set of equations when compared to more empirical biogeochemical model formulations. But while being algebraically-complicated, the model has fewer unconstrained parameters and is therefore simpler to move between applications than it would otherwise be. The version of the biogeochemistry described here is implemented in the eReefs project that is delivering a near real time coupled hydrodynamic, sediment and biogeochemical simulation of the Great Barrier Reef, northeast Australia, and its formulation provides an example of the application of geometric reasoning in the formulation of aquatic ecological processes.