Convex Shape: Definition Properties and Examples

#Convex Shape
TL;DR
A convex shape contains the whole straight segment between any two of its points. Circles, triangles and cubes are convex; crescents, rings and stars are not, and the same test defines convex functions.
Mythri K M·reviewed byMadhukar VLast updated on December 2, 202612 min read

Key Points

  • A convex shape never caves in: the segment between any two of its points stays inside.
  • For polygons, this means every interior angle is under 180°180°.
  • A smooth convex shape lies on one side of every tangent line.
  • The overlap of two convex shapes is always convex.
  • A convex function has every chord above its graph.

Why One Lamp Can Light a Convex Room

Put one lamp anywhere in a round or rectangular room and the whole floor is lit. In an L-shaped room, a patch round the inside corner falls into shadow.

  • It is not about size. It is whether light can reach every point in a straight line without leaving the room.
  • That is the idea of a convex shape: nothing in it is hidden from anything else.
a lamp lights every point of a convex room, but an L-shaped room has a shadow
Two rooms seen from above, each with a lamp. Left: a convex five-sided room with dashed light lines reaching every corner; nothing is hidden. Right: an L-shaped room whose 270-degree inside corner casts a grey shadow over part of the upper arm.

What Is a Convex Shape?

A shape is convex if the straight segment joining any two of its points lies entirely inside it. If even one segment leaves, the shape is concave (non-convex).

  • Convex: a filled circle, an ellipse, a semicircle, any triangle, a square, a lens, a sphere, a cube, a cone.
  • Not convex: a crescent, a ring, a heart, a star, an L-shape, a doughnut, a bowl.
  • The test needs no angles or corners, so it works for every shape.
the segment test shows an ellipse is convex but a crescent and a ring are not
Three shapes, each with two points joined by a straight segment. Ellipse: the segment stays inside, convex. Crescent: the segment between the two horns crosses the empty bite, not convex. Ring: the segment passes through the hole, not convex.

Convex Shapes With Straight Sides

For a polygon, the segment test becomes a check on the corners.

  • Convex exactly when every interior angle is under 180°180°. An angle over 180°180° (a reflex angle) is a dent.
  • Every diagonal of a convex polygon lies inside it. The convex polygon page shows why the tests agree.
  • Every triangle and every regular polygon is convex.

In the shape lab below, start from the Hexagon. Drag a corner inwards past 180°180° and the readout flips to Concave. Then try the Arrowhead, Star and L-shape presets.

Try It Yourself

Use the polygon lab to see Convex Shape at work: drag, change the numbers and watch what happens.

Convex Shapes With Curved Edges

Curved shapes have no corners, so use the segment test or the tangent test.

The tangent-line test

  • A tangent line touches a curve at one point and runs along it there.
  • In a convex shape, every tangent leaves the whole shape on one side.
  • In a shape with a smooth dent, a tangent at the dent cuts through the shape.
every tangent to a convex shape leaves it on one side, but a tangent in a dent cuts through
Two shapes with tangent lines. Left: an ellipse with four blue tangent lines, each touching once and leaving the ellipse entirely on one side. Right: a kidney-shaped region with a dashed orange tangent at the bottom of its dent; parts of the shape lie on both sides of it.

Slices of a circle

  • A slice (a sector of a circle) is convex if its angle is 180°180° or less.
  • A 270°270° slice is not: its centre corner is reflex, and a segment between its straight edges crosses the gap.
a slice of a circle is convex up to 180 degrees but not beyond
Three slices of a circle. A 120-degree slice and a 180-degree half circle are green and convex. A 270-degree slice is orange and not convex: its centre corner is reflex, and a dashed segment between its two straight edges passes outside.

Combining Convex Shapes

How convex shapes combine depends on whether you overlap them or join them.

  • The overlap is always convex. A segment between two overlap points lies in both shapes, so it lies in the overlap.
  • The union (both together) often is not. Two overlapping discs make a figure-of-eight, and a segment across the waist leaves it.
the overlap of two convex discs is convex, but their union is not
Two discs of radius 1.8 with centres 2.2 apart. Left: their overlap, a green lens shape, with a segment between two of its points lying inside both discs. Right: their union, a blue figure-of-eight, with a dashed orange segment joining the tops of the two discs passing over the waist, outside the shape.
  • So a lens, the overlap of two discs, is always convex.

Convex Solids

The same test works in 3D: a solid is convex if the segment between any two of its points stays inside.

  • Convex: cubes, prisms on convex bases, pyramids, spheres, cylinders, cones and the Platonic solids.
  • Not convex: a doughnut, a bowl, a star-shaped prism.
  • Flat-faced convex polyhedrons obey Euler's formula, F+V−E=2F + V - E = 2. A cube: 6+8−12=26 + 8 - 12 = 2.

Convex Functions: The Same Test on a Graph

A function is convex when the chord (straight segment) joining any two points on its graph lies on or above the graph. Then the region above the graph is a convex shape.

Take y=x22y = \dfrac{x^2}{2} with points at x=−1x = -1 and x=3x = 3: (−1,0.5)(-1, 0.5) and (3,4.5)(3, 4.5).

  • Halfway, at x=1x = 1, the chord is at 0.5+4.52=2.5\dfrac{0.5 + 4.5}{2} = 2.5.
  • The curve is only at 122=0.5\dfrac{1^2}{2} = 0.5, so the chord is above it.
a convex function has every chord above its graph, so the region above the graph is convex
The graph of y equals x squared over 2 on a grid, with the region above it shaded blue. An orange chord joins the points at x equals minus 1 and x equals 3; at x equals 1 the chord is at height 2.5 and the curve at 0.5, with a green dashed gap between them.
  • Naming clash: school calculus calls a bowl like y=x2y = x^2 concave up. Advanced work calls the same function convex.
  • An upside-down bowl is a concave function (see concave shapes).
  • A bowl has one bottom, so any low point is the lowest. That is why best-fit methods such as least squares work well.

Examples of Convex Shape

Example 1

Is a regular hexagon convex?

  1. A regular polygon's angle is (n−2)×180°n\dfrac{(n-2) \times 180°}{n}. For a hexagon, n=6n = 6.
  2. 4×180°6=120°\dfrac{4 \times 180°}{6} = 120°, under 180°180°.

Final answer: Yes, it is convex.

Example 2

A quadrilateral has angles 80°, 200°, 30° and 50°. Is it convex?

  1. They add to 360°360°, but that only shows it is a real quadrilateral.
  2. 200°200° is over 180°180°, a reflex angle.

Final answer: No, it is concave.

Example 3

Which are convex: a square, a crescent, an arrow, a ring?

  1. Square: four 90°90° angles, convex.
  2. Crescent: a segment across the horns leaves it.
  3. Arrow: the notch at the tail is a reflex angle.
  4. Ring: a segment across passes through the hole. Round is not the same as convex.

Final answer: Only the square.

Example 4

A pentagon has corners A(0, 0), B(6, 0), C(6, 4), D(3, 2) and E(0, 4). Is it convex?

  1. C and E lie on the line y=4y = 4.
  2. D, at y=2y = 2, sits below that line, so the boundary dips in at D.
  3. The angle at D is a reflex angle of about 247°247°.

Final answer: Concave. Moving D up to (3,5)(3, 5) would make it convex.

the pentagon is concave because D at 3,2 lies below the line y equals 4 through C and E
A pentagon on a coordinate grid with corners A at 0,0, B at 6,0, C at 6,4, D at 3,2 and E at 0,4. The dashed line CE is y equals 4; D sits below it with a reflex angle of 247 degrees marked, so the pentagon is concave.

Example 5

Is y = x³ convex?

  1. At x=−2x = -2 the graph is at −8-8; at x=0x = 0 it is at 00.
  2. Halfway, the chord is at −4-4, but the curve is at (−1)3=−1(-1)^3 = -1.
  3. The chord is below the curve.

Final answer: No. It is convex only for positive xx.

Common Mistakes With Convex Shapes

Four mix-ups cause most wrong answers.

Mistake 1: Treating "smooth" as "convex"

Where it slips in: Curved shapes with no corners, like a crescent.

Don't do this: Call a crescent convex because its edges are smooth.

The correct way: A smooth edge can still curve in. Join the horns and test the segment.

Mistake 2: Checking only the angle sum

Where it slips in: The angles add to the right total.

Don't do this: Call a quadrilateral convex because its angles add to 360°360°.

The correct way: Check each angle for one over 180°180°, as in Example 2.

Mistake 3: Assuming two convex shapes make a convex shape

Where it slips in: Shapes built from discs or rectangles.

Don't do this: Say a shape is convex because each piece is.

The correct way: Overlaps are convex; unions need checking. An L of two rectangles is not convex.

Mistake 4: Mixing up "convex function" and "concave up"

Where it slips in: Moving from a school calculus book to a more advanced one.

Don't do this: Treat them as opposites.

The correct way: They are the same bowl shape with two names.

Why Convexity Matters: "The Tightest Skin Around a Set of Points"

A rubber band round some nails snaps to the convex hull, the smallest convex shape holding them all.

  • Lenses: a lens is the overlap of two discs. Two radius-5 cm curves with centres 8 cm apart give a lens 2 cm thick and 6 cm tall.
  • Cameras: one camera covers a convex room; an L-shaped room needs more.
  • Finding the best answer: convex functions have one bottom, so computers can just walk downhill.
  • Games: two separate convex shapes can always be split by a straight line, so collision checks are quick.
a lens is the overlap of two discs, so it is a convex shape
The cross-section of a lens, shaded blue, formed where two circles of radius 5 overlap, their centres 8 apart; arrows show the lens is 2 thick and 6 tall, and a note says inside both discs means inside the lens.

Conclusion

The lamp lights the whole room because no straight line between two points of a convex shape ever leaves it.

  • One segment test decides convexity for any shape, curved or straight.
  • Polygons: every angle under 180°180°. Smooth shapes: every tangent leaves it on one side.
  • Overlaps of convex shapes are convex; unions often are not.
  • A convex function has chords above its graph; school calculus calls it concave up.

Practise What You Have Learned

Try these:

  1. Is a regular octagon convex? Use the angle formula.
  2. Classify a quadrilateral with angles 100°100°, 45°45°, 185°185° and 30°30°.
  3. Is y=x2+1y = x^2 + 1 convex? Test the chord from x=−1x = -1 to x=1x = 1.

Answers:

  1. Each angle is 6×180°8=135°\dfrac{6 \times 180°}{8} = 135°, so it is convex.
  2. Concave: 185°>180°185° > 180°.
  3. Yes. The chord is at height 2 at x=0x = 0, above the curve's value of 1.

Then cut a circle, a crescent and an L from paper. Join the two points most likely to fail with a ruler, and find the dent that causes it.

To take this further with a teacher, explore Bhanzu's geometry tutor, middle school math tutor, math tutoring, or math classes online.

Want a live Bhanzu trainer to work through shapes and graphs with your child? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. OpenStax, Calculus Volume 1, Section 4.5: Derivatives and the Shape of a Graph (concave up and concave down). openstax.org
  2. S. Boyd and L. Vandenberghe, Convex Optimization, Cambridge University Press, Chapters 2 and 3 (convex sets and functions), Stanford University. stanford.edu
  3. OpenStax, Contemporary Mathematics, Section 10.4: Polygons, Perimeter, and Circumference. openstax.org
  4. D. Mount, CMSC 754, Lecture 2: Convex Hulls in the Plane, University of Maryland (the segment test and the rubber-band convex hull). cs.umd.edu

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is a circle a convex shape?
Yes. Any segment between two points inside a filled circle stays inside.
What is the difference between a convex and a concave shape?
In a convex shape, every segment between two of its points stays inside. In a concave shape, at least one leaves, across a dent, bite or hole.
Is every regular polygon convex?
Yes. Each angle, (n−2)×180°n\dfrac{(n-2)\times 180°}{n}, is always under 180°180°.
Is a star convex?
No. Its inner corners are reflex, and a segment between two tips crosses empty space.
What is a convex function?
A function whose chords lie on or above its graph, like y=x2y = x^2. The region above its graph is a convex shape.
✍️ Written By
Mythri K M
Mythri K M
Subject Matter Expert
Mythri K M is a mathematics educator and curriculum designer with a Master's degree in Mathematics and over 10 years of teaching experience. She has taught and written on topics ranging from Algebra, Geometry and Trigonometry to Calculus, Number Theory and mathematical reasoning, with a particular interest in how children develop mathematical thinking. As a teacher and parent, she believes learning works best when it is curious and joyful rather than stressful, and she shares ideas and activities that help students build confidence and support parents along the way.
🔬 Reviewed By
Madhukar V
Math Columnist & Analyst
Book a FREE Demo ClassBook Now →