Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 36 ยท Shapes, Text and Styles

Shapes, Corners and Boolean Operations in Figma

Draw rectangles, ellipses, lines, polygons and stars in Figma, round corners, and combine shapes with union, subtract, intersect and exclude, with runnable stand-ins.

Every icon, button, avatar and illustration in Figma starts from a handful of basic shapes. In this lesson you learn the shape tools, how to control size and corners precisely, and how to combine shapes with boolean operations to create new ones, such as a speech bubble or a crescent moon.

The shape tools

Shape Shortcut Notes
Rectangle R Hold Shift for a square
Ellipse O Hold Shift for a circle
Line L Hold Shift to snap to 15 degree steps
Arrow Shift+L A line with an arrowhead
Polygon (shape menu) Set the number of sides in the panel
Star (shape menu) Set points and inner ratio
Image/video Ctrl+Shift+K Place a file as a shape fill

Click and drag to draw, or click once on the canvas to open a small dialog where you type an exact width and height. Hold Alt while dragging to draw from the center outward.

Size, position and rotation

Select a shape and look at the right panel: X, Y set the position, W, H the size, and the rotation field sets the angle in degrees. Lock the proportions toggle (the small link icon between W and H) to scale evenly. You can type arithmetic into any number field: entering 320/4 gives 80.

Number fields accept simple expressions such as +8, *2 or 100-24. Typing *2 doubles the current value. It is faster than reaching for a calculator.

Corner radius

Rectangles, frames and many polygons have a Corner radius field in the Appearance section. A radius of 8 rounds all four corners by 8 px. Notes:

  • To set corners independently, click the toggle beside the radius field and enter four values (top-left, top-right, bottom-right, bottom-left).
  • Corner smoothing (an iOS-style "squircle") makes the curve blend more smoothly into the edge.
  • A radius larger than half the shortest side is capped, so a 48 px high button with radius 999 becomes a perfect pill shape.
Python Stand-in: the corner radius cap

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

That explains the common "use 999" trick for pills: Figma clamps it to the largest radius that fits.

Lines, arrows and strokes

A line is a shape with zero height, so it has a stroke but no fill. Set its stroke color, weight, caps (none, round, square, arrow ends) and style (solid, dashed) in the Stroke section. Draw an arrow with Shift+L, or add an arrowhead as a cap on either end of any line.

Boolean operations: combining shapes

Select two or more shapes and choose one of four boolean operations from the toolbar (or with the right-click Boolean menu, or Quick Actions). The result is a boolean group that stays editable: you can still move, resize and change each original shape, and the combined result updates.

Four boolean operations

Union Merge into one shape
Subtract Top cuts the bottom
Intersect Keep only the overlap
Exclude Remove the overlap

Stacking order decides subtract

1 / 2
  • Union: the result covers the area of all selected shapes (Ctrl+Alt+U).
  • Subtract: the top shapes are cut out of the bottom shape (Ctrl+Alt+S). Order matters: the bottom shape is what remains.
  • Intersect: only the area where all shapes overlap remains (Ctrl+Alt+I).
  • Exclude: the overlapping area is removed, leaving everything else (Ctrl+Alt+X).

To turn a boolean group into a single plain vector, flatten it (Ctrl+E). Flattening loses the live editability, so keep a copy if you might want to adjust the original shapes.

Recipes

  • Crescent moon: a large circle with a slightly offset smaller circle on top, then Subtract.
  • Ring (donut): a large circle with a smaller circle centered on top, then Subtract.
  • Speech bubble: a rounded rectangle plus a small triangle polygon, then Union.
  • Badge cutout: a square with a circle overlapping a corner, then Subtract to carve a notch for a notification dot.

How booleans work: a grid stand-in

Booleans on curves are complicated, but the idea is simple set logic. This stand-in draws two shapes on a tiny character grid and applies the four operations as set operations. It teaches the concept, not Figma's geometry engine.

Python Stand-in: boolean operations as set logic

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Union is |, subtract is -, intersect is & and exclude is ^: four set operations, nothing more.

Using the operations on dimensions

Another way to think about it: compute a donut's visible area as "big circle minus small circle".

Python Stand-in: area of a ring

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A 96 px circle with a 56 px hole is visually identical to a 76 px circle with a 20 px stroke. Using a stroke is often easier, and keeps the shape resizable.

Practical tips

  • Use Alt+drag to duplicate before subtracting, so you keep the originals.
  • For icons, build on a 24 by 24 frame with 2 px padding and keep strokes consistent.
  • Prefer boolean groups while designing; flatten only at the end.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which boolean operation keeps only the overlapping area?

    Intersect keeps the overlap; exclude removes it.
  2. 2. In Subtract, which shape is the one that remains (with the others cut out of it)?

    Top shapes are cut out of the bottom shape, so stacking order decides the result.
  3. 3. How do you draw a perfect circle?

    Shift locks the proportions of the ellipse.
  4. 4. What happens when corner radius exceeds half the shortest side?

    That is why a large radius gives a pill or circle.

Summary

  • R, O, L and the shape menu create rectangles, ellipses, lines, polygons and stars; Shift keeps proportions, Alt draws from the center.
  • Corner radius can be uniform or per corner, and it is capped at half the shortest side.
  • Union, subtract, intersect and exclude combine shapes non-destructively; flatten (Ctrl+E) makes the result a plain vector.
  • Strokes often replace boolean tricks and stay editable.

Next: The Pen Tool and Vector Editing