Play a free tangram puzzle: fit the seven traditional pieces into a dark shape with no gaps and no overlaps. 16 shapes, drag or keyboard, a hint and a dividing-lines helper.
Pieces that fit 0 of 7
Selected none
Shapes finished 0 of 16
Fill the dark shape with all seven pieces so that nothing overlaps and nothing sticks out. Drag a piece to move it. It snaps to the grid when you let go. Tap a piece to select it, tap it again to turn it a quarter turn, or use the Turn piece and Flip piece buttons. Only the parallelogram looks different when it is flipped. Keyboard: Tab to a piece, arrow keys move it one square (hold Shift for two), Enter, Space or R turns it, Shift and R turns it back, F flips it, T sends it back to the tray, U undoes, H gives a hint. A piece that fits inside the shape gets a bold outline, and a piece that overlaps another gets a dashed one.
Every corner of every piece is a whole number on a grid where the small triangle has legs of 2, and pieces turn in quarter turns, so the corners stay whole numbers. The page decides that two pieces overlap by testing every edge direction with whole-number arithmetic. It decides that a piece is inside the shape by checking sample points placed so that none can lie on an edge.
The seven pieces have a total area equal to the shape's area, so seven pieces that are all inside the shape and do not overlap must fill it exactly. Any such arrangement counts, not only the one the shape was cut from.
As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.
Tangram is a very old puzzle of seven flat pieces. Two large triangles, one medium triangle, two small triangles, one square and one parallelogram together make a big square, and the same seven pieces can also be arranged into many other shapes. In this version you are given a dark silhouette and have to cover it completely with all seven pieces. Pieces must not overlap and must not stick out of the shape.
The seven pieces start in the tray under the shape. Press on a piece and drag it onto the shape. When you let go it snaps to the nearest square of the grid. Tap a piece to select it, and tap it again to turn it a quarter turn. The Turn piece button does the same for the selected piece. Flip piece mirrors the selected piece, but only the parallelogram looks different when flipped, so the page tells you if you try it on another one. A square looks the same however you turn it. The coloured key beside the board names every piece.
A piece that lies completely inside the shape gets a bold outline. A piece that overlaps another piece gets a dashed outline. The counter at the top says how many pieces fit. When all seven fit and none overlaps, the shape is finished. Any arrangement that fills the shape counts, so if you find a different way from the one it was cut from, that is a win too.
If a shape is hard, tick Show the dividing lines inside the shape to see where the pieces were cut. Hint outlines, with a dashed amber line, where one piece that is not in place yet would go. It may need turning first. Undo takes back the last move or turn. Restart puts all pieces back in the tray. There are 16 shapes, from a plain rectangle to spiky ones, and the page remembers which you have finished. The page address holds the shape number.
Keyboard. Tab moves between the seven pieces. The arrow keys move the piece you are on by one square, or by two while Shift is held. Enter, Space or R turns it a quarter turn and Shift with R turns it back. F flips the parallelogram. T sends the piece back to the tray. U undoes and H gives a hint. Every piece has a spoken description with its turn, its position and whether it fits or overlaps, and the status line says what happened after every move. Dragging is never the only way to play, and the buttons and key moves work without a pointer.
Everything sits on a whole-number grid. Take the small triangle with legs of 2. Then the large triangle has legs of 4, the medium triangle has a hypotenuse of 4, the square has sides of 2, and the parallelogram has sides of 2 and about 2.83 with a 45 degree sharp angle. Written as corner points, all seven pieces have whole-number coordinates, and so does every quarter turn and the mirrored parallelogram. Every edge runs along a row, a column or a 45 degree diagonal. That is why this version uses quarter turns only: an eighth of a turn would put corners on fractions of the square root of 2.
Overlap is a separating-axis test. All seven pieces are convex. Two convex shapes share area exactly when no edge direction separates them, and touching along an edge or at a corner does not count. The test projects both pieces on the normal of every edge and compares whole numbers.
Inside is a sample test. To check that a piece lies inside the silhouette, the page looks at sample points on a grid of a quarter square, shifted a little so that no point can sit on an edge. Every little triangular cell cut out by the grid lines and diagonals is big enough to contain one sample, so if any part of the piece were outside the shape, a sample in that part would show it. The shape is the union of its seven parts, so a sample inside the piece must also be inside one of those parts.
Why seven fitting pieces fill the shape. The seven pieces have a total area equal to the shape’s area. If all seven are inside the shape and none overlaps another, they must cover all of it.
Everything runs locally in your browser. There is no account, nothing is uploaded, and your progress stays on your device.
Free to play, no ads, nothing uploaded. These games are original and are not affiliated with any other game or brand.