Skip to content
Tutorials Center
My learning

Topics

Lesson 11 of 36 ยท Shapes, Text and Styles

The Pen Tool and Vector Editing in Figma

Learn the Figma pen tool, anchor points, Bezier handles, vector networks, bending, joining and outlining strokes, with a runnable stand-in that computes curves.

Basic shapes only go so far. Logos, icons and custom illustrations need freeform paths, and in Figma you draw those with the Pen tool. Pens feel awkward for the first ten minutes and then become second nature. This lesson explains how a path is made from points and handles, and how to edit one.

Paths, points and handles

A vector path consists of anchor points (also called vertices) connected by segments. A segment can be a straight line or a curve. A curve is controlled by handles attached to the points: the length and direction of a handle decide how the curve bends. Mathematically this is a cubic Bezier curve, defined by two end points and two control points.

Anatomy of a path

Anchor point Where the path passes
Segment Line or curve between points
Handle Controls the curve bend
Closed path Ends where it began

Few points make smooth shapes

1 / 2

Drawing with the Pen tool

  1. Press P to choose the Pen tool.
  2. Click to place a point. Click again somewhere else to make a straight segment.
  3. Click and drag instead to place a point with handles, which creates a curve.
  4. To close a shape, click the first point again.
  5. To finish without closing, press Enter or Esc, or double-click the last point.

Hold Shift to constrain the angle to multiples of 45 degrees. A good habit is to use as few points as possible; smooth shapes come from well-placed points, not many points.

Pencil

Press Shift+P for the Pencil tool to draw freehand. Figma smooths the stroke into a path with a reasonable number of points. It is good for sketches and handwriting; clean it up with the Pen tool later.

Editing a path

Select a vector and press Enter (or double-click) to enter edit mode. Then:

  • Drag a point to move it; drag a handle to reshape the curve.
  • Double-click a point (or press Ctrl while clicking) to change it between corner and smooth: corners can have independent handles, smooth points keep handles mirrored.
  • Hold Alt while dragging a handle to break symmetry.
  • Click a segment with the Pen tool to add a point; select a point and press Delete to remove it.
  • The Bend tool (Shift+Ctrl while hovering, or via the toolbar in edit mode) turns a straight segment into a curve by dragging it.
  • Select a point and use the right panel to set corner radius on just that corner.

Figma also supports vector networks: unlike traditional paths, points can connect to more than two others, so a "Y" or a grid can be a single vector object without being split into pieces.

Anyone who has used other vector tools may expect the path to be a single line. In a vector network, points can branch. Fills then apply to every enclosed region.

Join, flatten and outline

  • Join two end points to close a gap (select both and press Ctrl+J in vector edit mode, or use the toolbar action).
  • Flatten (Ctrl+E) merges selected shapes into one vector.
  • Outline stroke (Ctrl+Shift+O) converts a stroke into a filled shape. It is useful when you need to apply a gradient along a stroke or when handing an icon to a developer as a single filled path.
  • Convert text to outlines uses the same command, making text a vector (you lose editability, so keep a copy).

Cubic Bezier math: a stand-in

A cubic Bezier curve from P0 to P3 with control points P1 and P2 is the set of points:

B(t) = (1-t)^3 P0 + 3(1-t)^2 t P1 + 3(1-t) t^2 P2 + t^3 P3, for t from 0 to 1.

The program below is a stand-in: it evaluates that formula so you can see how handles move a curve. Figma does the same arithmetic internally, though not with this code.

Python Stand-in: points on a Bezier curve

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.

With zero-height handles the middle of the curve stays at y = 0; the taller the handles, the higher the curve peaks (here up to 0.75 times the handle height).

Drawing the curve as text

Let us sample the curve and print it so you can see the shape.

Python Stand-in: sketching a curve

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.

The two equal handles produce a symmetrical hill, which is the same result you get by dragging both handles of a Pen tool curve straight up.

Tips for clean vectors

  • Place points at extremes (the highest, lowest, leftmost and rightmost spots of a curve) and keep handles horizontal or vertical there.
  • Use few points and long handles, rather than many points and short handles.
  • Zoom in and check joins at 400%. Slight gaps become visible only when zoomed.
  • Keep a non-destructive original: do not flatten until you are done.
  • For common icons, check whether the product's design system already has them before drawing from scratch.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How do you create a curved segment with the Pen tool?

    Dragging pulls out Bezier handles that curve the segment.
  2. 2. What does Outline stroke do?

    The stroke becomes a filled vector shape, useful for gradients on strokes and icon handoff.
  3. 3. What is a vector network?

    Figma vectors can branch, so complex shapes can be single objects.
  4. 4. Which shortcut starts the Pencil tool?

    P is the Pen and Shift+P is the freehand Pencil.

Summary

  • Paths are anchor points and segments; handles shape curves (cubic Bezier).
  • P draws with the Pen: click for corners, click-drag for curves, click the first point to close.
  • Edit mode lets you move points, add or delete them, switch corner and smooth, and bend segments.
  • Flatten, join and outline stroke prepare shapes for reuse and handoff.

Next: Fills, Strokes and Effects