# How is average session duration calculated?

> Average session duration divides the total first-to-last event span of reconstructed sessions by the session count. It measures activity, not attention.

By Yos Riady. Updated 2026-09-28. Published 2026-09-28. Canonical URL: https://manalens.dev/glossary/session-duration

Average session duration is the sum of reconstructed sessions’ first-to-last event spans divided by session count. It measures observed activity, not continuous attention.

## Key points

- Average session duration is the sum of first-to-last event spans in each session divided by the number of sessions.
- A session with one recorded event has a zero span, so a three-minute session and a one-event session average 90 seconds.
- Session duration measures observed activity, not attention, because an open tab without events does not make the span longer.

## A worked example

One session has page events at 10:00 and 10:03, giving a three-minute span. Another has only one event, giving a zero span. Their average observed duration is 90 seconds.

## Missing endpoints matter

The tracker does not continuously prove that someone is present. Leaving a tab open without events does not create a longer first-to-last span. Blocking, lost delivery, and missing custom events can shorten observations.

## Use the right context

Compare dates and filters consistently. A changing mix of routes or devices can move the average. Long inactivity starts another session; a session that crosses midnight stays one session.

## Frequently asked questions

### Why can duration be zero?

A session with one recorded event has no later timestamp, so there is no elapsed activity to calculate. Its duration is zero. Leaving a tab open without events does not make the span longer. For example, a session with a three-minute span and a one-event session give an average of 90 seconds.

### Does session duration measure attention?

No. It measures observed activity, not continuous attention. The tracker does not continuously prove that someone is present. Blocking, lost delivery and missing custom events can shorten the observed span. So read the average as the time between the first and last events received in each session.

### What happens after long inactivity or at midnight?

Long inactivity starts another session, so a long pause does not make one session longer. A session that crosses midnight stays one session. Compare dates and filters consistently, because a changing mix of routes or devices can also move the average session duration.

## Related guides

- [Session definition](https://manalens.dev/glossary/session)
- [Visitor definition](https://manalens.dev/glossary/daily-visitor)
- [UTM builder](https://manalens.dev/tools/utm-builder)
