Average position is a number reported in Google Search Console for pages, queries and other groupings. It takes the position of your result each time it appeared in search and averages them over the date range you select. A position of 1 means the top organic result; larger numbers sit further down.
The key point is that it is an average, not a fixed rank. A page can be at position 3 for some searchers and position 40 for others, depending on location, device and personalisation, and the figure blends them. When a page starts ranking for many new queries, its average can even get worse because it is now appearing for lots of low-ranked searches.
The usual mistake is treating it as an exact ranking for one keyword. It works better as a trend or as a filter on a single query, and it only counts results that were actually shown. Example: a build-log article shows an average position of 12 across the month; filtering to its main query reveals it sits at 5 there, while dozens of obscure long-tail queries at positions 50 or lower drag the overall figure down.
Related: Google Search Console, impressions, click-through rate (CTR), ranking