when vs. while

Last Updated : Aug 08, 2023 |

When is more specific than while. Use when to describe a short action with a specific timeline.

Examples

When you create a post, you can include attachments.

When you receive a call, you can answer or decline it.

Use while for an action or event that occurs over an undefined period of time. You can also use while to describe simultaneous actions or an interruption that occurs during an event.

Examples

While you are on a call, you can make another call and then merge them.

An upgrade can take several hours to complete. Do not turn off your computer while an upgrade is in progress.