You give yourself one match before bed. The match ends, a friend invites you to another game, and when you close Steam it's past 2 a.m. You didn't play one game for four hours. You played four games for one hour each.

That's why limiting games one by one rarely works. The easiest way to limit gaming time on PC is to give all your games one shared daily budget, so time spent in any of them counts, and to cap how long a single session can run. Windows can do this for a child's account through Microsoft Family Safety. For your own account you need a separate app, such as the free StayFree for Windows. Here's how both work.

Why per-game limits leak

A one-hour limit on your main game is easy to set and just as easy to dodge. When it runs out, there's always another game in the library, a free weekend, or a launcher with something new on the front page. Each one starts with a fresh hour.

A limit that actually holds has to cover the whole category, not one title. It also helps to separate two problems that feel the same:

  • Too many hours a day. You need a daily budget.
  • Sessions that never end. You need a cap per session and a pause before the next one.

Most people have one more than the other. Check which one before you set anything. If you're not sure, track your app usage for a few days and look at the games list.

Option 1: Microsoft Family Safety (for a child's account)

If you're a parent, Family Safety is built for this. According to Microsoft's guide:

  1. Sign in at account.microsoft.com/family.
  2. Find your family member and choose the Windows platform.
  3. Open the Apps, features, and games tab and turn on App and game limits.
  4. Click the game you want to limit.
  5. Set the daily time and the hours it's allowed, either the same for every day or a different schedule for each day of the week.

Microsoft says these limits carry over to the child's Windows, Xbox and Android devices.

Where it falls short: you set limits game by game, and it's made for managing family members, not for limiting yourself. If the person who keeps playing past midnight is you, it won't help.

Option 2: limit gaming time on PC with StayFree

StayFree is a free app usage tracker and app blocker for Windows 10 and 11, rated 4.8 on the Microsoft Store. It works on your own account and sorts the apps you use into categories such as Game, Entertainment and Social Networking. That makes a shared limit for all your games a few clicks.

1. Install StayFree and play as usual

Get it from the Microsoft Store. It's free, with no ads and no in-app purchases, and it runs in the system tray. StayFree can only limit games you've opened since installing it, so play normally for a day or two first.

2. Check the Game category

Click Categories in the sidebar and open Game. You'll see the apps StayFree has put there. Anything missing? Click the + button and pick it from your apps. You can also open any app's details and change its Category under Other Settings.

Launchers deserve a look. If you lose hours browsing Steam or another store without starting a game, add the launcher to Game too.

Want a wider net? On the Categories page, click +, choose a name like "Evening distractions" and add your games, Discord and anything else that eats your nights.

3. Give the whole category a daily budget

  1. Click Usage Limits in the sidebar, then the + button.
  2. Click Select websites, apps and categories to limit, go to the Categories tab and tick Game.
  3. Under How do you want to limit usage for the selected items?, choose Set a daily usage limit.
  4. Under Action, choose Block Further Usage. Send Notification only sends a notification when the time is up, and it doesn't block anything.
  5. Under After, pick the time, for example 1 hour 30 minutes.
  6. Optionally write a message for the block screen, give the limit a name and click Save.

Time in every app in the category adds up toward the same limit. An hour in one game and 30 minutes in another use up the whole budget, and then every game in the category is blocked until the limit resets.

StayFree showing time spent in Elden Ring and Steam on Windows

4. Or cap each session instead

If your trouble is "one more round", a session limit fits better. Create a limit for the Game category the same way, but choose Set a session limit. There are two kinds:

  • Variable: when you open a game, StayFree asks how long you want to spend there before it gets blocked. Deciding before you start is half the work.
  • Fixed: every session gets the same length, for example 45 minutes. Set a Cool Down Period (at least 5 minutes for fixed sessions) to block the games for a while after each session, so you have to get up before the next one.

You can also choose Block on a schedule to keep games off during work or school hours, which our guide on limiting app time on Windows covers.

Make the limit hard to undo

At 1 a.m. you'll be tempted to delete the limit you set at noon. Turn on Lock Usage Limits in Settings and choose Pin Protection or Text Challenge, so StayFree asks for it before you can edit or delete a limit. Asking a friend to choose the PIN works best. Our post on blocking apps on Windows explains this and the Hide On/Off Toggle setting.

Browser games and game websites

Games in a browser tab, Twitch and gaming sites run inside Chrome or Edge, so the desktop app sees them as your browser. To include them in a limit, add the free StayFree browser extension for Chrome, Edge or Firefox and connect it to the desktop app. Then you can pick those sites on the Websites tab of a daily usage limit or a variable session limit. Keep Sync this limit across all my devices turned on, because website limits only work when the limit is synced. Fixed session limits can't be synced yet, so they can't include websites.

Habits that make the limit easier to keep

  • Set the budget a little below what you play now. Cutting from four hours a day to one usually ends with the limit deleted. Shrink it every week instead.
  • Pick the stop time before you start. Variable sessions make you do this, but it works without them too.
  • Finish at a natural break. A limit that cuts you off mid-match is the one you'll fight. Leave enough room to end the round. For a heads-up, add a second daily limit on the same category with Send Notification, set 10 minutes shorter than the block.
  • Protect the hours that matter. A daily budget doesn't care when you spend it. If evenings are for sleep or study, add a Block on a schedule limit for those hours as well.

Which one should you use?

Family SafetyStayFree
Limits your own accountNo, family members onlyYes
One budget for all gamesNo, game by gameYes, with the Game category
Session caps and cool-downsNoYes
Protect the limitParent's accountPIN or text challenge

For a child's PC, Family Safety is the natural pick. For your own gaming, StayFree for Windows gives you one budget for every game, and it's free on the Microsoft Store.