<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt" -->

---
title: The Math Behind Nesting Rounded Corners | daily.dev
description: The Math Behind Nesting Rounded Corners is the math behind nesting rounded corners. To nest one circle inside of another, the inner circle needs a smaller...
canonical: https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Math Behind Nesting Rounded Corners | daily.dev
og:description: The Math Behind Nesting Rounded Corners is the math behind nesting rounded corners. To nest one circle inside of another, the inner circle needs a smaller...
og:url: https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt
og:image: https://api.daily.dev/og/posts/cJir_J7zT.png
og:image:alt: The Math Behind Nesting Rounded Corners
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Math Behind Nesting Rounded Corners

**[Community Picks](https://daily.dev/sources/community)** · 2 min read · 161 upvotes · 5 comments

## Summary

The Math Behind Nesting Rounded Corners is the math behind nesting rounded corners. To nest one circle inside of another, the inner circle needs a smaller radius than the outer circle.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cloudfour.com/thinks/the-math-behind-nesting-rounded-corners/>

## Community discussion

Top comments from developers on daily.dev.

**@zataara** · 2 upvotes

> I’ve struggled with this exact issue before! Excellent explanation to solve this fun problem.

**@jessejsamuel** · 1 upvotes

> I get this, but whenever I use use border radius it is more like a oval 😂

**@ghost** · 1 upvotes

> Thinking in circles and a neat math usage.

**@chraebsli** · 1 upvotes

> This will help me a lot!

**@antoinemesnil** · 1 upvotes

> Interesting read, I will remember that equation  👍

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#math](https://daily.dev/tags/math)

[View this post on daily.dev](https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Math Behind Nesting Rounded Corners","url":"https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt"},"datePublished":"2022-11-16T18:57:16.674Z","dateModified":"2023-12-07T12:02:45.284Z","description":"The Math Behind Nesting Rounded Corners is the math behind nesting rounded corners. To nest one circle inside of another, the inner circle needs a smaller...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8c3632e472ea93f7142fc1698dfbfbd0","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8c3632e472ea93f7142fc1698dfbfbd0","isAccessibleForFree":true,"articleSection":"Community Picks","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Community Picks","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1655817725/logos/community","url":"https://daily.dev/sources/community"},"commentCount":5,"discussionUrl":"https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":161},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":5}],"keywords":"css,math","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Community Picks","item":"https://daily.dev/sources/community"},{"@type":"ListItem","position":3,"name":"The Math Behind Nesting Rounded Corners"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-math-behind-nesting-rounded-corners-cjir-j7zt","comment":[{"@type":"Comment","text":"I’ve struggled with this exact issue before! Excellent explanation to solve this fun problem.","datePublished":"2022-11-17T17:15:08.085Z","url":"https://daily.dev/posts/cJir_J7zT#c-lkA_vBRC3","author":{"@type":"Person","name":"Bryant MacMahon","url":"https://daily.dev/zataara","image":"https://avatars.githubusercontent.com/u/75229911?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"I get this, but whenever I use use border radius it is more like a oval 😂","datePublished":"2022-11-17T02:32:41.578Z","url":"https://daily.dev/posts/cJir_J7zT#c-vYl8VoUGy","author":{"@type":"Person","name":"Jessej Samuel","url":"https://daily.dev/jessejsamuel","image":"https://lh3.googleusercontent.com/a/ALm5wu0GnNwNZwZmQE2eZgIJHHXfHypt6UT8GwMrhow1sA=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Thinking in circles and a neat math usage.","datePublished":"2022-11-17T06:42:42.945Z","url":"https://daily.dev/posts/cJir_J7zT#c-NDWfiPqMG","author":{"@type":"Person","name":"Deleted user","url":"https://daily.dev/ghost","image":"https://media.daily.dev/image/upload/s--hNIUzLiO--/f_auto/v1705327420/public/ghost_vlftth"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"This will help me a lot!","datePublished":"2022-11-17T15:24:32.557Z","url":"https://daily.dev/posts/cJir_J7zT#c-CKNSnOhUT","author":{"@type":"Person","name":"Nicholas Krebs","url":"https://daily.dev/chraebsli","image":"https://media.daily.dev/image/upload/v1668448430/avatars/avatar_oF0hmUjqJhWpZunNuP9qT.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Interesting read, I will remember that equation  👍","datePublished":"2022-11-19T09:06:48.704Z","url":"https://daily.dev/posts/cJir_J7zT#c-6Jc_OPVUo","author":{"@type":"Person","name":"Antoine Mesnil","url":"https://daily.dev/antoinemesnil","image":"https://media.daily.dev/image/upload/v1668338468/avatars/avatar_ElLING2sGhTfX5Lf6pldM.jpg"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

