The Geometry of a Nation: Unfolding the Nepali Flag

Table of Contents

A Flag Unlike Any Other

Nepali flag is the only national flag that isn’t a quadrilateral, its distinctive shape precisely defined by mathematical instructions enshrined within Nepal’s constitution.

It might look like two simple triangles joined together, but look closer. Within those crimson and deep blue borders lies a story, a careful sequence of construction, each step precise, each line a brushstroke in a grand mathematical painting.

If you Want to see these rules in action, There are tons of resources online. Numberphile beautifully demonstrated hand-drawing the flag on cardboard. It’s where I found out first that there is a rule to draw the flag. This GeoGebra project offers a step-by-step visualization using a slider. I took a picture for this article from that project. And for the coding enthusiasts, Stack Overflow has a thread where some folks generated the flag using Javascript, Python, SVG, Mathematica, and Postscript.

Here is the extracted flag construction details.

Drawing by Decree: The Geometry of Nepal’s Flag

Step 1: The Foundation

It begins with the foundation: a single line, the base.

The images I’m using come from GeoGebra, but if you’re making a real flag, you’d traditionally use crimson cloth (Hex: #DC143C, RGB: 220, 20, 60). Let’s be honest, though, printing it out is much easier!

But, if you were going the traditional route, you’d start at the bottom of your crimson cloth and draw a line, AB, any size. This line is the foundation upon which all other measurements are based, setting the scene for everything that follows.

On the lower portion of a crimson cloth draw a line AB of the required length from left to right.

From this foundation, the next lines will rise, forming the two distinct triangles.

Step 2–5: Constructing the Twin Triangles

From point A, a perpendicular line AC is drawn, its length precisely determined as AB plus one-third of AB. This vertical axis becomes the backbone of the upper and lower triangles, setting the stage for their formation.

From A draw a line AC perpendicular to AB making AC equal to AB plus one third AB. From AC mark off D making the line AD equal to line AB. Join BD.

The next step is marking point D, ensuring AD equals AB, followed by connecting BD, the diagonal stroke that gives the flag its first defined shape.

From BD mark off E making BE equal to AB.

The structure deepens as we bisect BD at E and extend a parallel segment FG, identical in length to AB.

Touching E draw a line FG, starting from the point F on line AC, parallel to AB to the right hand-side. Mark off FG equal to AB.
Join CG.

With CG now established, the foundational framework is complete.

Step 6–18: Constructing the Moon

With the skeleton in place, we turn our attention to the celestial emblems, the moon and sun.

The moon, positioned on the upper triangle, is an careful assembly of arcs and radii.

From AB, we measure a quarter of its length to determine AH, establishing the moon’s placement. A vertical line HI extends parallel to AC, guiding the internal construction. Bisecting CF at J and further extending JK, we refine the structure until the central reference points emerge.

From AB mark off AH making AH equal to one-fourth of line AB and starting from H draw a line HI parallel to line AC touching line CG at point I.
Bisect CF at J and draw a line JK parallel to AB touching CG at point K.

With geometric precision, arcs are drawn from centers L, M, and N, curving into crescents that form the moon’s distinct shape. Additional arcs define the eight triangular rays.

Let L be the point where lines JK and HI cut one another.
Join JG.
Let M be the point where line JG and HI cut one another.
With center M and with a distance shortest from M to BD mark off N on the lower portion of line HI.
Touching M and starting from O, a point on AC, draw a line from left to right parallel to AB.
With center L and radius LN draw a semi-circle on the lower portion and let P and Q be the points where it touches the line OM respectively.
With the center M and radius MQ draw a semi-circle on the lower portion touching P and Q.
With center N and radius NM draw an arc touching PNQ at R and S. Join RS. Let T be the point where RS and HI cut one another.
With center T and radius TS draw a semi-circle on the upper portion of PNQ touching at two points.
With center T and radius TM draw an arc on the upper portion of PNQ touching at two points.
Eight equal and similar triangles of the moon are to be made in the space lying inside the semi-circle of No (16) and outside the arc of No (17) of this Schedule.

The moon takes shape as a construct of pure geometry, its curves and edges dictated by the same principles that govern the flag’s form.

Step 19–22: Constructing the Sun

Below the moon, centered within the lower triangle, shines the radiant sun, a geometric marvel in its own right. The process begins with a careful bisection of AF at U, ensuring precise alignment. A parallel line UV extends to meet BE at V, marking the sun’s foundation.

Bisect line AF at U, and draw a line UV parallel to AB line touching line BE at V.

From a central point W, determined by the intersection of UN and HI, two perfect circles emerge, each drawn with meticulous care to maintain flawless proportion. The outer circle defines the sun’s reach, while the inner boundary shapes its core. Within this radiant sphere, twelve equal triangles burst outward, their tips delicately touching the outer edge.

With center W, the point where HI and UN cut one another and radius MN draw a circle.
With center W and radius LN draw a circle.
Twelve equal and similar triangles of the sun are to be made in the space enclosed by the circle of No (20) and No (21) with the two apexes of two triangles touching line HI.

Step 23–25: The Final Border

With the celestial bodies in place, the last step in this geometric construction is the deep blue border, a frame that binds the entire design with both visual and structural unity.

The border’s width is determined by the segment TN, ensuring that the proportions remain consistent.

The width of the border will be equal to the width of TN. This will be of deep blue color and will be provided on all the sides of the flag. However, on the given angles of the flag the external angles will be equal to the internal angles.

If the flag is to be hoisted, an additional extension may be made on the side along AC, allowing for the necessary fixtures. With this final touch, the construction is complete, a flag born not of abstract representation but of precision, logic, and national identity.

The completed Nepalese flag.

Fun Fact: Because the slope of the upper triangle is less than the bottom triangle, while creating the blue border, the top triangle extends more to the right than the bottom triangle. It is small, but if you look carefully, you will see it.

Weird Fact: The aspect ratio of Nepal’s flag is unusual. This weirdness comes from the blue border. Without the blue border, just considering the internal crimson triangle, the aspect ratio is 3:4. But with the blue border, the aspect ratio is:
$$ 1 : \frac{6136891429688 - 306253616715\sqrt{2} - (934861968 + 20332617192\sqrt{2}) \sqrt{118 - 48\sqrt{2}}}{4506606337686} $$ which is roughly, $$ \sim 1 : 1.219010337829452184570024869930988566… $$ More on the aspect ratio here.

Reflections on a Flag Unlike Any Other

The Nepalese flag stands unique among nations with its distinctive double-pennant design. Unlike the standardized rectangular flags common today, its geometric shape draws from ancient regional traditions of military and ceremonial banners that have been used in the region for centuries. Its distinctive shape recalls the dhvaja (victory banners) that adorned temples and battlefields since the time of the Mahabharata, where such pennants led armies into righteous battles.

This geometric shape serves as both a national symbol and a monument to the mathematical and artistic achievements of Nepal’s past, connecting its present identity to centuries of cultural development.