--- title: "avg (Average)" slug: "calc-function-avg" updated: 2026-05-12T12:50:06Z published: 2026-05-12T12:50:06Z canonical: "docs.lobstersoftware.com/calc-function-avg" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # avg (Average) > [!NOTE] > $avg (Average) calculates the average value over the specified parameters. > > > [!TIP] > > **Tooltip** > > > > Syntax: *$avg(a [, b[, c[...]]])* > > > > | Parameter | Description | > > | --- | --- | > > | `a` | A value (e.g. "5"), a list (e.g. $el(3,true) ) or a reference to a value (e.g: $el(3) ). | > > | `other parameters` | Other parameters of type a. | > > > > Returns the average value over the specified values or fields. > > > > Example: $avg(2, 5, 7) – returns 4,67 ## Syntax: *$avg(a [, b[, c[...]]])* ## Parameter | Name | Description | | --- | --- | | a | A value (e.g. "5"), a list (e.g. $el(3,true) ) or a reference to a value (e.g. $el(3) ). | | Other parameters | Other parameters of type a. | ## Return value The mean value over the specified values or fields. ## Example | Syntax | Result | | --- | --- | | $avg(2, 5, 7) $avg($el( 28, true) ) | 4.67 The mean value of the elements of the repeating element with Id 28. |