How to win tic tac toe: the strategy that never loses

Updated November 20, 2026

In short: To win tic tac toe, go first and take a corner. If your opponent answers anywhere except the center, you can force a win with a fork: a move that makes two lines of two at once, so only one can be blocked. Every turn, first check if you can win, then block your opponent's two in a row. With perfect play on both sides tic tac toe is always a draw, so the second player never has to lose: answer a corner with the center, a center with a corner, and an edge with the center.
Play Tic Tac Toe freeIn your browser, no download, no sign-up and no ads.▶

Tic tac toe looks too simple to have a strategy, but it has one, and it is small enough to learn in ten minutes. Here is how to win tic tac toe whenever your opponent slips, and how to make sure you never lose.

How to win tic tac toe: the short version

  1. Go first and take a corner.
  2. Every turn, win if you can, then block if your opponent has two in a row.
  3. If your opponent didn’t take the center, set up a fork: a move that makes two lines of two at once.
  4. If they did take the center, take the opposite corner and wait for a mistake.
  5. Going second, answer a corner with the center, the center with a corner, and an edge with the center. You will never lose.

The rest of this page shows each of these with a board.

The rules in brief

  • Two players take turns on a 3×3 grid. One plays X, the other O, and traditionally X goes first.
  • On your turn you put one mark in an empty square.
  • The first to get three in a row, across, down or diagonally, wins.
  • If all nine squares fill up with no line, the game is a draw (sometimes called a cat’s game).

There are eight lines in total. The center is part of four of them, each corner of three and each edge square (the middle of a side) of just two. Keep that in mind: it explains almost everything below.

corner | edge | corner
-------+------+-------
 edge  |center|  edge
-------+------+-------
corner | edge | corner
Square How many Lines through it Strength
Center 1 4 Strongest
Corner 4 3 Strong, best for traps
Edge 4 2 Weakest

Why perfect play is a draw

Tic tac toe is a solved game: if both players always make the best move, it ends in a draw every time. So nobody can “always win”. What you can do is pick the moves that leave your opponent the most ways to go wrong, and punish the mistake when it comes. That is the whole strategy.

The two rules for every turn

Before every move, check these in order:

  1. Can I win right now? If you have two in a row with an empty third square, take it.
  2. Do I need to block? If your opponent has two in a row, put your mark in the gap.

Only when neither applies do you think about the moves below. Most games between casual players are lost by skipping rule 2.

The fork: how games are won

A fork is a move that makes two threats at once: two different lines, each with two of your marks and an empty square. Your opponent can block only one, and you complete the other. Nearly every tic tac toe win is a fork, so the real game is about setting one up, or stopping your opponent from setting one up.

Start in a corner

As the first player, the corner is the best opening. Against a corner, there is only one safe reply: the center. Any other square loses by force. For example, if O answers on an edge next to your corner, take the center. O has to block the far corner, and then you take the corner below your first X:

X | O | .
. | X | .
X | . | O

You now threaten the left column and the diagonal. O can block only one: you win.

If O takes the opposite corner, play another corner. O must block between your two X’s, and your third corner makes a fork.

The trap after the center reply

If O answers your corner with the center, take the opposite corner. Now O must play an edge. If O takes a corner instead, O has two in a row, you block it with the last corner, and that block is a fork:

X | . | O
. | O | .
X | . | X

You threaten the left column and the bottom row. If O plays an edge correctly, the game is a draw.

Opening in the center

The center is also strong. O’s safe replies are the four corners; an edge reply loses. After X center, O edge, take a corner next to O’s mark. O must block the opposite corner, and your next corner makes a fork.

If O answers with a corner, try the opposite corner. Now O must take another corner. If O plays an edge, you will block it and the block becomes a fork:

O | O | X
. | X | .
. | . | X

X threatens the right column and the diagonal.

Opening on an edge

The edge is the weakest opening, because the second player has the most safe replies. The simplest one is the center. But if O takes a far corner (one not touching your edge), you can still win. Take the corner beside your X on O’s side of the board, so you have two in a row. O must block in the other corner, and now O’s two corners line up through the center. Take the center: it blocks O and makes a fork:

X | X | O
. | X | .
O | . | .

Tic tac toe strategy table: first move and reply

X opens O’s safe replies Replies that lose by force What X should do next
Corner Center only Any edge or corner Against the center, take the opposite corner and wait for a mistake. Against anything else, build a fork
Center Any corner Any edge Against an edge, take a corner next to O; against a corner, take the opposite corner
Edge Center, the corners next to X, the opposite edge The far corners and the edges next to X Against a far corner, make two in a row and fork through the center

How to never lose as the second player

Learn three answers and two follow-ups:

  1. X takes a corner: you take the center. If X then takes the opposite corner, play an edge, never a corner.
  2. X takes the center: you take a corner. If X then takes the opposite corner, play another corner, never an edge.
  3. X takes an edge: you take the center.

After that, keep blocking every two in a row and watch for any move that would give X two threats at once. Do this and you will never lose a game of tic tac toe.

Tips to win more games

  1. Go first when you can. The first player has the traps; the second player only defends.
  2. Open in a corner. It leaves your opponent one safe reply out of eight.
  3. Block with a threat. When you must block, choose a square that also makes your own two in a row, so your opponent has to answer you.
  4. Count lines, not squares. Before each move, ask how many lines a square adds to. Two at once is a fork.
  5. Mix up your openings. Against a friend, change between corner and center so they can’t learn one answer.

Play Tic Tac Toe free

Try these traps in Tic Tac Toe on KepoGames. You are Kepo with the orange X and Puff plays the blue O, on the classic 3×3 board. Easy makes mistakes and misses your lines, Medium blocks most of them, and Hard never loses: the best you can get against it is a draw. Or choose 2 players and pass the device to a friend. Who goes first changes every round. It’s free, with no ads and no sign-up.

Play Tic Tac Toe freeIn your browser, no download, no sign-up and no ads.▶

Questions

Is there a way to always win tic tac toe?

No. If both players make the best moves, every game of tic tac toe ends in a draw. You can only win when your opponent makes a mistake, so the best strategy is to choose moves that give them the most chances to go wrong, like opening in a corner.

What is the best first move in tic tac toe?

A corner. Against a corner, the only safe reply is the center: any of the other seven squares lets the first player force a win. The center is also a strong opening, but it gives the second player four safe replies, the four corners.

How do you never lose tic tac toe as the second player?

Block every two in a row, and answer the first move correctly: a corner with the center, the center with a corner, and an edge with the center. After corner, center, opposite corner, play an edge, not a corner. After center, corner, opposite corner, play a corner, not an edge.

What is a fork in tic tac toe?

A fork is a move that creates two lines with two of your marks and an empty square at the same time. Your opponent can block only one of them, so you win on your next move. Almost every tic tac toe win comes from a fork.

Who goes first in tic tac toe?

Traditionally X goes first. Going first is an advantage because the first player has more chances to set a trap. In a series of games it is fair to take turns going first, which is what Tic Tac Toe on KepoGames does.

How many lines are there in tic tac toe?

Eight: three rows, three columns and two diagonals. The center is part of four lines, each corner of three and each edge square of only two. That is why the center and the corners are the strong squares.

Can you win tic tac toe if you go second?

Only if the first player makes a mistake. Play the safe replies (center against a corner, a corner against the center, the center against an edge), block every two in a row, and take any fork the first player leaves open. A careless first player who leaves two of your lines open loses.

Blog