Web Design & UI/UX9 min read

Corner Radius in UI Design: Why Everything at 8px Looks Off, and the Scale to Use

One radius for everything makes a UI look flat and nested corners fight. Scale the radius with the box, use inner = outer minus padding, make pills real at 999 and smooth the curve to 60% in Figma.

By Boone
XLinkedIn
Corner Radius in UI Design: Why Everything at 8px Looks Off, and the Scale to Use

Many interfaces pick one corner radius, usually 8px, and put it on everything. The chip, the card, the dialog and the button all end up with the same curve, and the screen looks flat and a little off without anyone being able to say why.

The fix is four small rules, a radius scale you can copy and the CSS to hand your developer.

Why everything ends up at 8px

A radius is usually picked once, early, for the first button, and then copied. In code it becomes one variable. In Figma it becomes the number you type without thinking. Nobody decides that a dialog should have the same corner as a tag; it just inherits it.

The trouble is that a corner is read relative to the size of the box. An 8 px curve on a 32 px chip is a soft, friendly shape. The same 8 px on a 300 px dialog is almost square.

So one number does not give you one look. It gives you a different look on every size of box, and the larger parts feel stiff next to the small ones.

Fix 1: inner radius = outer radius minus padding

24 inside 24

A listing card for Alfama loft, Lisbon, with a photo inset 8 pixels and rounded at the same 24 radius as the card, shown at 2x

16 inside 24

The same card with the photo rounded at 16, so the white border runs at an even width around the corner
Same card, radius 24, photo inset by 8, shown at 2x. On the left the photo also uses 24, and the white border swells at each corner. On the right the photo uses 16, and the border stays the same width all the way round.

Why the gap swells at the corner

The reason is geometry. Two curves only run parallel when they share a center. The card's corner arc has its center 24 px in from each edge. Give the photo 24 px as well and its center moves another 8 px inward, so the two arcs bend at different points and the gap between them grows at the corner.

Two centers

The card corner zoomed 8 times: the photo's curve has its own center, and the gap measures 11.3 pixels on the diagonal against 8 on the sides

One center

The same corner with a 16 radius photo: both curves share one center and the gap is 8 pixels on the diagonal too
The corner zoomed 8 times. With 24 inside 24 the gap is 8 on the straight sides and 11.3 on the diagonal. With 16 inside 24 both curves share one center, and the gap is 8 everywhere.

The same rule applies anywhere one rounded thing sits inside another: a thumbnail in a list row, a selected segment inside a segmented control, a focus ring around a button (there the ring is outside, so you add the gap instead of subtracting it), an image inside a bento tile. If the padding is as big as the outer radius or bigger, the inner corner goes to 0.

OuterPaddingInnerGap on the diagonal
2482411.3 (swells)
248168.0 (even)
24884.7 (pinches)

Fix 2: bigger box, bigger corner

8, 8, 8

Three date chips, an event card and a Delete this event dialog, all with an 8 pixel radius, shown at 1.5x

8, 12, 28

The same chips at 8, the event card at 12 and the dialog at 28, shown at 1.5x
Chips, a card and a dialog at 1.5x. On the left all three use 8, and the dialog reads as a stiff box. On the right the radius grows with the box, 8, 12 and 28, and the three parts look like one family.

Material 3 builds its whole shape system on this idea. Its core scale runs 4, 8, 12, 16 and 28, then full, and each component takes a step that fits its size: the assist chip uses small (8), the elevated card medium (12), the dialog extra large (28), and the bottom sheet extra large on its top corners only.

Where else it applies: a tooltip is small, so it sits near the chip. A popover menu sits between card and dialog. A full screen modal on a phone usually has 0, because its corners meet the corners of the screen.

Fix 3: pill or not, pick one

Radius 18

An Air Runner product card with Add to Cart and Save for Later buttons, 44 tall, at radius 18, shown at 2x

Radius 999

The same buttons as full pills at radius 999
Two 44 tall buttons at 2x. At 18 each end keeps a short flat edge, 8 px tall, so the button looks like a pill that did not quite get there. At 999 the ends are true half circles.

A 44 tall button at radius 18 uses 36 of its height for the two curves and leaves 8 straight. That small flat edge is what makes it read as a mistake. Either commit to a pill or pick a radius that is clearly a rounded rectangle, such as 12.

Why 999 and not 22? Because 22 is only a pill while the button is exactly 44 tall. Change the height for a larger button and it stops being one.

In CSS, when the radii are larger than the box allows, the browser scales them down until the curves just meet, so 999 always gives a perfect pill at any height. Material's round buttons use the same idea: their shape is full, not a number.

Fix 4: smooth the curve

0% smoothing

One corner of a radius 120 blue shape, zoomed, with a plain circular arc and corner smoothing at 0%

60% smoothing

The same corner with corner smoothing at 60%; a dashed line shows where the plain arc would be
One corner of a radius 120 shape, zoomed. On the left a plain circle arc: the straight edge stops and the curve starts at once. On the right 60% smoothing, with the plain arc dashed: the curve starts earlier and eases in.

A plain rounded rectangle joins a straight line to a quarter circle, and the change in curvature is sudden. The eye catches it most on large shapes: app icons, big cards, sheets. Corner smoothing spreads the bend over a longer stretch, which is the softer shape people know from iOS app icons.

In Figma, open the corner radius options and click iOS to set corner smoothing to 60%. Smoothing barely shows on small radii, so do not spend time on chips.

A plain CSS border-radius cannot draw it: SwiftUI has a continuous corner style built in, while on the web you need an SVG mask or the newer corner-shape property, which not every browser supports yet. Agree with your developer which parts get it before you design every card that way.

The radius scale to copy

Six shapes on a light gray ground: chip 8, card 12, large card 16, dialog 28, sheet top 28 and a blue pill button at 999
The six steps, each shape drawn at its own radius.
PartRadiusUse it for
Chip8Filters, tags, small toggles
Card12List cards, tiles, inputs
Large card16Feature cards, media cards
Dialog28Alerts, modals that float
Sheet top28Bottom sheets, top corners only
Button999Pill buttons at any height
Anything nestedouter minus paddingPhotos, thumbnails, inner panels

These numbers line up with Material 3's small, medium, large and extra large steps. If your brand is sharper or softer, move every step together rather than changing one part.

Hand this to your developer

css
:root { --radius-chip: 8px; --radius-card: 12px; --radius-card-lg: 16px; --radius-dialog: 28px; --radius-sheet: 28px 28px 0 0; --radius-pill: 999px; } /* nested: inner = outer minus padding */ .media-card { --pad: 8px; padding: var(--pad); border-radius: 24px; } .media-card img { border-radius: max(0px, calc(24px - var(--pad))); }

In Figma, make the same six steps number variables and apply them to the corner radius field, so a change to one step updates every component that uses it. Our paper on design tokens covers naming, and padding vs margin covers the padding half of the nested formula.

FAQ

What is a good corner radius for UI?

There is no single value. Use a scale that grows with the size of the part: about 8 for chips, 12 for cards, 16 for large cards and 28 for dialogs and sheets, with 999 for pill buttons.

How do you calculate the inner border radius?

Inner radius equals outer radius minus the padding between them. A 24 radius card with 8 padding needs a 16 radius inside. If the padding is equal to or larger than the outer radius, use 0.

Why use border-radius 999px?

It makes a perfect pill at any height. When the radii are larger than the box, the browser scales them down until the curves meet, so the ends are always half circles, even if the button grows.

What is corner smoothing in Figma?

It is a setting that makes the curve ease out of the straight edge instead of starting suddenly, like iOS app icons. Click iOS in the corner radius options to set it to 60%.

What corner radius does Material Design use?

Material 3's core shape scale is 4, 8, 12, 16 and 28, plus full for pills. Chips use 8, cards 12, dialogs 28, and bottom sheets 28 on the top corners.

Should every element have the same border radius?

No. The same radius looks different on boxes of different sizes, so a dialog at 8 feels square next to a chip at 8. Keep one scale and give each part the step that fits its size.

Sources

More from Brainy Papers

Keep reading