Auto Layout in Figma: How It Works and When to Use It

November 01, 2026 by Andrew Smith

Use Auto Layout in Figma when a design must grow, shrink, or stay aligned as content changes. It is best for buttons, cards, menus, forms, headers, sidebars, tables, and reusable components. Figma describes Auto Layout as a way to create frames and components that respond to content, spacing, and resizing rules [source: Figma].

TLDR: Auto Layout is Figma’s system for controlling spacing, alignment, direction, padding, and resizing inside a frame. For example, a button can grow from “Save” to “Save changes” without you dragging the background by hand. In a design system with 40 buttons and cards, that can cut repetitive resizing work by more than half. Use it when consistency matters; skip it for loose mood boards or one-off visual sketches.

What Auto Layout does

Auto Layout turns a normal frame into a structured container. Items inside that container follow rules. You set the direction, spacing, padding, alignment, and resizing behavior. Figma then keeps those rules in place while the content changes.

A simple example is a button. Without Auto Layout, you draw a rectangle, add text, and adjust both by hand. If the label changes, the button breaks. With Auto Layout, the text sits inside a frame with padding. When the text gets longer, the frame expands.

That sounds small. It is not. Tiny fixes pile up fast. It drives me crazy that one label change can turn into 15 seconds of nudging, resizing, and checking alignment. Auto Layout removes much of that manual cleanup.

How it works

Auto Layout is built around a few core settings. Once you understand them, the feature becomes much less scary.

  • Direction: Items can stack horizontally or vertically. A button with an icon and label usually uses horizontal layout. A card with an image, title, and text usually uses vertical layout.
  • Spacing: This controls the gap between child layers. You can set a fixed gap or use space between items.
  • Padding: This controls the space inside the frame. For a button, padding is the space between the text and the button edge.
  • Alignment: You can align child layers to the left, center, right, top, middle, or bottom, depending on the layout direction.
  • Resizing: Layers can hug their contents, fill available space, or use a fixed size.

The resizing options matter most. Hug contents means the frame wraps tightly around what is inside. Fill container means the item grows to use available space. Fixed means the size stays locked until you change it.

For a real interface, these settings work together. A search bar might have a fixed-height frame, a text field that fills the remaining width, and an icon that keeps a fixed size. The result feels controlled, even when the parent frame gets wider or narrower.

When to use Auto Layout

Use Auto Layout when your design needs order. It is especially useful for interface design, product screens, and design systems. If a component will be reused, it should usually have Auto Layout.

Good use cases include:

  • Buttons: Labels change. Icons may appear or disappear. Padding must stay consistent.
  • Cards: Cards often contain images, titles, tags, prices, and actions. Auto Layout keeps the spacing tidy.
  • Forms: Inputs, labels, helper text, and error messages need clear spacing rules.
  • Menus and sidebars: Items should align cleanly, even when text lengths vary.
  • Responsive screens: Frames can adapt better when content and screen widths change.
  • Design systems: Components stay easier to maintain when the rules are built in.

When not to use it

Auto Layout is not always the right choice. For early visual ideas, it can slow you down. A rough landing page concept may not need strict structure yet. A collage, poster, illustration, or brand direction board may be easier to build with free positioning.

The catch is that Auto Layout can feel fussy at first. One wrong setting can make a layer jump to a place you did not expect. This is usually caused by fill, hug, or alignment rules fighting your intent. When that happens, check the parent frame first. Then check the child layer. Most problems live in those two places.

Common mistakes

The biggest mistake is adding Auto Layout too late. If you build a full screen with manual spacing, then try to clean it up at the end, expect extra work. It is better to apply Auto Layout piece by piece as the structure becomes clear.

Another mistake is nesting too much. Auto Layout frames can sit inside other Auto Layout frames, which is powerful. But too many nested frames can make a file hard to read. Give frames clear names. Group related items with intent.

Also avoid mixing random manual spacing with Auto Layout rules. If a layout uses 8, 16, and 24 pixel spacing, keep that system steady. Figma’s layout grid and spacing practices are often used with 8 point systems in interface work, though the exact scale depends on the team [source: Figma].

A practical workflow

  1. Start with the smallest repeated item, such as a button or input.
  2. Add Auto Layout to that item.
  3. Set padding, direction, and spacing.
  4. Choose hug, fill, or fixed sizing.
  5. Turn the item into a component if it will be reused.
  6. Build larger sections from those smaller parts.

Auto Layout is worth learning because it protects your time and your design quality. It makes files cleaner, components stronger, and edits less painful. Use it when structure matters. Skip it when freedom matters more. That simple rule will keep your Figma work faster and easier to maintain.