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 .
- 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.

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.

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 . An angle over (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 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.

Slices of a circle
- A slice (a sector of a circle) is convex if its angle is or less.
- A slice is not: its centre corner is reflex, and a segment between its straight edges crosses the gap.

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.

- 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, . A cube: .
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 with points at and : and .
- Halfway, at , the chord is at .
- The curve is only at , so the chord is above it.

- Naming clash: school calculus calls a bowl like 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?
- A regular polygon's angle is . For a hexagon, .
- , under .
Final answer: Yes, it is convex.
Example 2
A quadrilateral has angles 80°, 200°, 30° and 50°. Is it convex?
- They add to , but that only shows it is a real quadrilateral.
- is over , a reflex angle.
Final answer: No, it is concave.
Example 3
Which are convex: a square, a crescent, an arrow, a ring?
- Square: four angles, convex.
- Crescent: a segment across the horns leaves it.
- Arrow: the notch at the tail is a reflex angle.
- 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?
- C and E lie on the line .
- D, at , sits below that line, so the boundary dips in at D.
- The angle at D is a reflex angle of about .
Final answer: Concave. Moving D up to would make it convex.

Example 5
Is y = x³ convex?
- At the graph is at ; at it is at .
- Halfway, the chord is at , but the curve is at .
- The chord is below the curve.
Final answer: No. It is convex only for positive .
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 .
The correct way: Check each angle for one over , 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.

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 . 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:
- Is a regular octagon convex? Use the angle formula.
- Classify a quadrilateral with angles , , and .
- Is convex? Test the chord from to .
Answers:
- Each angle is , so it is convex.
- Concave: .
- Yes. The chord is at height 2 at , 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
- Types of Polygon: how polygons are grouped, including convex and concave
- Irregular Polygons: where convex and concave shapes both appear
- Geometric Shapes: the wider family of 2D and 3D forms
- Octagon: another convex regular polygon, worked through
Research Behind This Article
- OpenStax, Calculus Volume 1, Section 4.5: Derivatives and the Shape of a Graph (concave up and concave down). openstax.org
- S. Boyd and L. Vandenberghe, Convex Optimization, Cambridge University Press, Chapters 2 and 3 (convex sets and functions), Stanford University. stanford.edu
- OpenStax, Contemporary Mathematics, Section 10.4: Polygons, Perimeter, and Circumference. openstax.org
- 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?
What is the difference between a convex and a concave shape?
Is every regular polygon convex?
Is a star convex?
What is a convex function?
