What is it?
A progress indicator shows that the app is busy with something the user is waiting for. It comes in two kinds:
- A spinner (also called an activity indicator or loader) says: “I’m working, I don’t know how long it takes.”
- A progress bar says: “I’m working, and I’m this far.”
It’s one form of the loading stateLoading stateWhat the UI shows while it waits for data or an action to finish, such as a spinner or skeleton.Open in glossary →. Two close relatives have their own pages: the loading state inside a button is covered on Button, and skeletonsSkeleton screenA grey placeholder layout shaped like the real content, shown while data loads.Open in glossary → for loading whole screens are on Empty & error states. This page is about the indicators themselves and their timing.
Anatomy
A determinate bar with label, value and Cancel, and an indeterminate spinner
- 1
Label
Says what is happening: “Uploading 3 of 8 photos”, not just “Loading”. Screen readers need it too.
- 2
Active indicator
The filled part. In a determinate bar its length matches the real progress and only ever grows.
- 3
Track
The full length, so people can judge how much is left. Needs 3:1 contrast against the background.
- 4
Stop indicator
Material 3 adds a small dot at the end of the track so the end stays visible.
- 5
Value and time left
“38% · about 2 min left”. Optional, but very welcome for anything longer than ~10 seconds.
- 6
Cancel
A way out of long work. Cancel must really stop the work, not just hide the bar.
- 7
Spinner
Indeterminate: “working, no idea how long”. Fine for a few seconds, never on its own for minutes.
Determinate vs indeterminate
This is the most important distinction on the page:
| Determinate | Indeterminate | |
|---|---|---|
| Shows | How much is done (38%, 3 of 8) | Only that something is happening |
| Looks like | A bar or ring that fills up | A spinning wheel or a looping bar |
| Use when | The app can measure progress: uploads, downloads, exports, installs | The app can’t: waiting for a server answer, signing in |
| Rule | Must only move forward and match reality | Must end in seconds, not minutes |
An indeterminate indicator can switch to determinate once the app knows the size of the work: “Preparing…” with a spinner, then “Uploading 1 of 8” with a bar. The other way round (a bar that turns into an endless spinner at 99%) is a classic bug.
Linear vs circular
The shape is a layout choice, not a meaning:
- Linear (a bar) fits in a row, a card, under a toolbar or at the top of a web page. It has room for a label and “2 min left”.
- Circular (a spinner or ring) fits in small, square places: a button, a list row, the middle of an empty screen, a download icon.
Both shapes exist in both kinds: a determinate ring (like a download in an app store) and an indeterminate bar (like the thin moving line under a browser’s address bar).
How it differs from similar components
| Component | What it shows | Example |
|---|---|---|
| Progress bar / spinner | The app is working right now | “Uploading 3 of 8 photos” |
| Skeleton | Content is coming, in its future layout | Grey rows on a feed while it loads |
| Stepper / steps | Where the user is in a multi-step task | “Step 2 of 4: Delivery” |
| Meter / gauge | A measured amount, not work in progress | Storage 80% full, password strength |
| Toast | The result, after the work is done | “Album exported” |
Dev note
On iOS: UIActivityIndicatorView (spinner) and UIProgressView (bar) in UIKit, and ProgressView in SwiftUI, which is a spinner without a value and a bar with one. On Android (Material 3): LinearProgressIndicator and CircularProgressIndicator, determinate when you pass a progress value; newer Material 3 Expressive versions add a “wavy” style. On the web: the native <progress> element, or any element with role="progressbar". Don’t confuse <progress> with <meter>, which is a gauge (disk space, a score), not work in progress.
Designs & variants
The determinate indicators replay a fake 6-second upload. Pause it to compare them at the same value.
Activity indicator
iOSUIActivityIndicatorView or SwiftUI ProgressView(). Indeterminate only. Medium and large sizes; it hides itself when stopped by default.
Progress view
iOSUIProgressView or SwiftUI ProgressView(value:). A thin determinate bar, often under a label like a file name.
Uploading 0 of 8 photos
Syncing contacts…
Linear progress indicator
Android · Material 3Determinate (top) shows the gap and the stop dot; indeterminate (bottom) loops. Compose LinearProgressIndicator.
Circular progress indicator
Android · Material 3Determinate ring (left) and indeterminate (right). Good for small spaces: a card, a button, a download icon.
Native <progress>
WebThe browser draws it, so it looks different in Chrome, Safari and Firefox. Without a value it is indeterminate. It already has the progressbar role.
Importing photos0 of 8
Custom role="progressbar"
WebA styled div needs role, aria-valuenow/min/max, a label and ideally aria-valuetext (“5 of 8 photos”).
Inside a button
AllA small spinner replaces the label while an action runs. Its rules (block repeat taps, always end) are on the Button page.
Skeleton instead of a spinner
AllFor loading a whole list or screen, a skeleton in the content’s layout often feels faster. See Empty & error states.
Check this part
What is the difference between a determinate and an indeterminate indicator?
A bar turns into an endless spinner at 99%. Is that OK?