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.

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

16 inside 24

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

One center

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.
| Outer | Padding | Inner | Gap on the diagonal |
|---|---|---|---|
| 24 | 8 | 24 | 11.3 (swells) |
| 24 | 8 | 16 | 8.0 (even) |
| 24 | 8 | 8 | 4.7 (pinches) |
Fix 2: bigger box, bigger corner
8, 8, 8

8, 12, 28

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

Radius 999

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

60% smoothing

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

| Part | Radius | Use it for |
|---|---|---|
| Chip | 8 | Filters, tags, small toggles |
| Card | 12 | List cards, tiles, inputs |
| Large card | 16 | Feature cards, media cards |
| Dialog | 28 | Alerts, modals that float |
| Sheet top | 28 | Bottom sheets, top corners only |
| Button | 999 | Pill buttons at any height |
| Anything nested | outer minus padding | Photos, 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
: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
- Android, Material 3 Compose ShapeTokens: extra small 4, small 8, medium 12, large 16, extra large 28, full (the newer increased steps add 20, 32 and 48). Component tokens in the same folder: AssistChip small, ElevatedCard medium, Dialog extra large, bottom sheet extra large top, round buttons full.
- Figma, Adjust corner radius and smoothing: "click iOS to set corner smoothing to 60%".
- W3C, CSS Backgrounds and Borders Level 3, overlapping curves: radii that do not fit are scaled down together.
- Apple, SwiftUI RoundedCornerStyle.continuous.
- W3C, CSS Borders Level 4, corner-shape (draft).
- The diagonal gaps (11.3, 8.0 and 4.7) are computed from the geometry of a 24 radius card with 8 padding. The 24 and 16 pair and the 18 radius button are our own illustrations.
- The listing card, the event, the dialog and the Air Runner card are invented for this page.
- First published as a carousel on UX Brainy.





