CSSApril 2026 · 5 min read

How to Use CSS border-radius (Every Shape Possible)

CSS border-radius rounds the corners of any element. While border-radius: 8px covers most card and button designs, the property is far more powerful — it can create circles, pills, organic shapes, and asymmetric curves using eight-value syntax with the slash separator.

Try the Border Radius Lab
Free, no signup
DG
Derek Giordano
Designer & Developer
In this guide
01Basic Values02Individual Corner Control03The 8-Value Syntax for Organic Shapes04Common Patterns
⚡ Key Takeaways
  • Master CSS border-radius: circles, pills, organic shapes, and individual corner control.
  • Covers basic values.
  • Covers individual corner control.
  • The 8-Value Syntax for Organic Shapes.
  • Covers common patterns.

Basic Values

Single value rounds all corners equally: border-radius: 12px creates consistent rounded corners. Percentage values create relative rounding: border-radius: 50% on a square element creates a perfect circle. border-radius: 9999px on a rectangle creates a pill/capsule shape.

Individual Corner Control

Set each corner independently: border-radius: 20px 0 20px 0 rounds top-left and bottom-right (creating a leaf shape). The order is top-left, top-right, bottom-right, bottom-left — clockwise from the top-left.

💡 Tip
Stick to animating transform and opacity for smooth 60fps performance. These properties are handled by the GPU compositor and skip expensive layout recalculations.

The 8-Value Syntax for Organic Shapes

The slash syntax sets horizontal and vertical radii independently:

⚠ Warning
Avoid animating width, height, top, or left. These trigger layout recalculations on every frame and can drop performance below 60fps.

border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;

Values before the slash control horizontal radii; after the slash control vertical radii. This creates organic blob-like shapes from a simple rectangle. The Border Radius Lab lets you drag control points visually to create these shapes and copy the CSS.

Common Patterns

Circle: border-radius: 50% (element must be square). Pill/capsule: border-radius: 9999px. Card: border-radius: 8px to 16px. Button: border-radius: 6px to 12px. Avatar: border-radius: 50% with overflow: hidden. Notch: large radius on two adjacent corners, zero on the others.

Frequently Asked Questions

How do I make a circle with CSS?+
Set border-radius: 50% on an element with equal width and height. The percentage creates a radius relative to the element's dimensions, and 50% of both sides creates a perfect circle.
What is the slash syntax in border-radius?+
The slash separates horizontal and vertical radii: border-radius: 50% 50% / 30% 70% creates different curvatures in each direction, enabling organic shapes.
What border-radius should I use for cards?+
8px-16px is the most common range. 8px for compact, dense UIs. 12px-16px for spacious, modern designs. Use consistent values across all cards and containers in your design system.
Try it yourself

Use the Border Radius Lab — free, no signup required.

⚡ Open Border Radius Lab
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.