How To Shoot A Star Shaped Lens Flare

The setting sun peeking from behind a small tower on rocky ground, with a star-shaped burst of light at the edge of the structure.
Photo: Sunset And Structure Atop Table Mountain by Duncan Rawlinson. 70mm, f/19, 1/90, ISO 100. The sun is partly hidden behind the tower and shot at f/19, a small aperture, which is what gives the light its pointed star.

A star-shaped lens flare, usually called a sunstar or starburst, is the set of sharp rays that spreads from a bright point of light when you shoot at a small aperture. It is made by the straight edges of your lens’s aperture blades, so you can control it: the number of points, how crisp the rays are and how long they reach all follow from a few choices you make before you press the shutter. This page explains where the rays come from and how to get a clean star around the sun or a streetlight. For the hazy washes and colored blobs that bright light also causes, see lens flare; a sunstar is a different effect with a different cause.

Why a point of light turns into a star

Light passing an edge spreads a little past it. That is diffraction, and every lens has it. A straight edge spreads light into a thin line at right angles to that edge, running out in both directions. The aperture of most lenses is a ring of overlapping blades, and when you stop down, the opening they leave becomes a polygon with one straight side per blade. A bright enough point of light then gets a pair of rays from every side of that polygon, and the rays together make the star.

Two things follow. First, wide open the opening is usually set by a round part of the lens, or the blades curve into a near circle, so there are no straight edges and no star. Second, the star is not a reflection bouncing between pieces of glass, which is why a lens hood or better coatings do not change it, and why it always stays centered on the light that makes it.

Wide openround edge, no rays6 blades6 points7 blades14 points
Each straight side of the aperture sends rays out at right angles to itself, in both directions. With six blades, opposite sides are parallel, so their rays land on top of each other and you see six. With seven, no two sides are parallel, so every side shows its own pair: fourteen. A round opening has no straight side and gives no rays.

How many points your lens will give

Count the aperture blades (the number is in the lens’s specifications, or you can count them by looking into the front of the lens while it is stopped down). An even number of blades gives that many points. An odd number gives twice as many, because no two sides of an odd polygon are parallel and every ray shows.

Aperture bladesPoints on the star
510
66
714
88
918
1010
1122
Even blade counts give one point per blade; odd counts give two per blade.

Fewer, longer points read as a bold, graphic star; 14 or 18 thin points read as a finer sparkle. Neither is better. What matters more is the blade shape. Straight blades make clean, narrow rays. Rounded blades, chosen by lens designers to keep out-of-focus highlights circular for smooth bokeh, make the sides of the opening curved, which fans each ray out and softens it. Many lenses with rounded blades still give a decent star once stopped well down, because the curve matters less as the opening shrinks. The blade count of a lens is fixed: zooming changes the size of the opening, not how many blades form it.

What makes a star crisp

  • A small aperture. The rays grow steadily as you stop down; there is no point where they switch on. Around f/8 a strong light shows short rays, f/11 to f/16 gives a well defined star on most lenses, and f/22 makes it longer still at a cost in sharpness (below).
  • A light that is close to a point. The sun is about half a degree across. A lens draws it on the sensor at about its focal length divided by 108: roughly 0.2 mm across at 24mm, 0.5 mm at 50mm and nearly 2 mm at 200mm. On a wide lens the sun is nearly a point, which is why wide angles give the classic crisp sunstar and long lenses give a big blown disc with weaker rays.
  • Only part of the light showing. Let the sun peek past the edge of a building, a tree trunk, a rock or the horizon so only a sliver of it is in the frame. The sliver acts like a point, the star tightens, and much less of the frame floods with glare.
  • Clear air. Haze, fog, mist, smoke and thin cloud scatter the light into a soft glow before it reaches the lens, and the rays dissolve into it.
  • Focus on the scene. A light that is far out of focus becomes a blurred disc shaped like the aperture, not a star. With distant scenes this is rarely a problem; with a streetlight a few meters away, check it.
  • A clean front element and no extra glass. Smudges smear the rays, and a protective filter adds two more surfaces for reflections. Take off a UV filter for sunstar shots.
A suspension bridge over calm water at sunrise, with the sun just appearing beneath the bridge deck on the right and spreading into a star of rays, its reflection glowing in the water
Photo: Golden Sunrise at the Bridge by Duncan Rawlinson. 29mm, f/18, 1/30, ISO 64. The sun is partly hidden by the bridge deck, so only a small sliver of it shows and it spreads into a crisp star; 29mm, f/18, 1/30, ISO 64, a wide focal length and a small aperture, the two settings that make the rays sharp.

How far to stop down: the sharpness cost

The same diffraction that makes the star also blurs every point in the picture a little. The blur spot, called the Airy disc, grows in step with the f-number, and at the same f-number it is the same size on any lens. For green light its diameter is about 2.44 times the wavelength times the f-number:

ApertureAiry disc diameter (green light)
f/810.7 µm
f/1114.8 µm
f/1317.4 µm
f/1621.5 µm
f/2229.5 µm
2.44 × 0.55 µm × f-number. Each full stop down multiplies the blur by about 1.4.

Whether you see that blur depends on how many pixels you have and how big you print. A smaller sensor has to be enlarged more to make the same print, so the same blur shows sooner on it; that is the real reason small sensors look soft earlier, not any difference in the diffraction itself. In practice, start at f/11, try f/16, and use f/22 only when the star needs to be bigger and the scene can afford a softer look. If the rest of the picture matters most, take a frame at your lens’s sweet spot, often around f/5.6 to f/8, then stop down for the star from the same spot on a tripod. The two can be blended later.

Want a full set of landscape settings around that aperture? Best camera settings for landscape photography gives a quick reference for aperture, shutter speed, ISO and focusing.

Exposing a frame with the sun in it

The sun itself will always clip to white; that is fine, the star is made of the rays around it. What you are choosing is how bright the rest of the scene is. Shooting toward a low sun, the land usually goes dark, so the meter’s choice is a fair start for a silhouette, and you can add exposure if you want detail in the foreground. A brighter exposure also makes the rays longer, because their faint outer parts start to register. Check the histogram rather than the screen, and if the sky and land are too far apart, take a set of frames with exposure bracketing and blend them.

Stopping down costs light. Going from f/8 to f/16 is two stops, so a sunset scene that metered 1/250 at f/8 needs 1/60 at f/16, and in the dim minutes after sunset or at night you are into whole seconds. Use a tripod, or brace the camera, and a two second self-timer so pressing the button does not shake the star. See what each stop of aperture does to the shutter speed here:

Telling the star from ghosts and haze

A frame with the sun in it often has three things at once: the star, a chain of colored shapes, and a lighter haze over the shadows. Only the first is diffraction. The colored shapes are ghosts, reflections between the glass surfaces inside the lens, and the haze is stray light scattered through it. To tell them apart, shift the camera slightly and watch. The star stays on the light. Ghosts sit on a line from the light through the center of the frame, so they swing across the picture to the opposite side as the light moves. How many you get depends on the number of glass surfaces and how well they are coated; lens elements explains what is inside.

  • Move a little so the ghosts fall on a dark, busy area where they hide, or off the subject.
  • Show less of the sun: tucking it behind an edge cuts ghosts and haze as well as tightening the star.
  • Take a second frame with a finger or a card held so it just blocks the sun, then paint the ghost-free area into the first frame when editing.
A snow-covered marina at sunrise with a brick grain silo behind it; the sun peeks through a gap beside the silo as a small bright star, and long soft light beams fall across the ice
Photo: Frozen Marina and Malting Silo by Duncan Rawlinson. 55mm, f/11, 1/640, ISO 400. The sun is tucked behind the silo so only a sliver shows and it stays a tight star with little glare; 55mm, f/11, 1/640, ISO 400, a mid aperture that gives short, clean rays.

Want the glow and the colored rings on purpose, or rid of them for good? Lens flare covers veiling flare and ghosts, what makes them worse and how to use them.

Looking at the sun safely

Never look at the sun through an optical viewfinder, and least of all through a long lens, which gathers enough light to injure your eye in moments. Compose on the rear screen in live view, with the sun mostly hidden behind its edge while you set up, and keep the time the lens points straight at a high sun short, since focused sunlight can damage a shutter or sensor. A low sun near the horizon is far dimmer and is the easiest time to work.

Stars from streetlights and other small lights

Any bright point works, not just the sun. Streetlights, car headlights, lit windows in the distance and string lights all turn into stars at small apertures, and in a city at dusk or night you can fill a frame with them. The smaller and brighter the glowing part, the crisper the star; a bare LED gives sharp rays, a frosted globe gives a soft one. Exposures run to seconds, so use a tripod, and expect each light’s star to grow as you lengthen the exposure. Blue hour, when the sky still holds some color, balances the lights against the sky better than full dark. Fog and mist turn every light into a soft halo instead of a star.

Shooting city lights after dark? Night photography covers exposure, focus and noise when the light runs out.

Phones, star filters and stars added later

  • Phones. Most phone cameras have a fixed aperture with no blades to close, so you cannot set the number or length of the rays. Many still draw rays around bright lights, but all you can change is how much of the light you show and where it sits.
  • Star filters. A cross screen or star filter has fine lines etched into the glass that draw a fixed pattern of 4, 6 or 8 rays on every bright light at any aperture. The look is uniform and usually reads as an effect.
  • Stars added in editing. Software can paint rays onto any light. They rarely match the real light’s color, size and position in the scene, and they never interact with the edges around the sun the way real ones do.

Common mistakes with sunstars

  • Showing the whole sun. A full disc floods the frame and blurs the star. Hide most of it behind an edge.
  • Jumping straight to f/22. The star gets bigger but the whole frame gets softer. Try f/11 and f/16 first and compare.
  • Shooting through haze or a dirty lens. Both smear the rays. Clean the front element and look for clear air.
  • Leaving a protective filter on. Extra glass adds ghosts and glare right where you are pointing the camera.
  • Expecting a lens hood to help. With the sun in the frame, a hood cannot shade it. It helps only with light from outside the frame.
  • Putting the star dead center by habit. A star placed where an edge, a line or a gap leads to it usually holds the picture together better.
  • Handholding at small apertures in dim light. At f/16 near sunset the shutter slows fast, and camera shake blurs the rays first.

Try this: count your lens’s star

Find a bright point you can shoot in the next ten minutes: a low sun behind a tree, or a streetlight at dusk. Put the camera on a tripod or a wall, use aperture priority, and shoot the same framing at f/4, f/8, f/11, f/16 and f/22. Then shoot f/16 again with the light first fully in view, then half hidden behind an edge.

Judge the set at 100 percent on a screen. Count the points and work back to your blade count, using the table above. Note the aperture where the rays first look clean and the one where fine detail elsewhere in the frame starts to soften; those two numbers are your lens’s star range. Compare the full light with the half-hidden one and see how much tighter the second star is. If you want to check your lens more carefully, how to test a lens sets out a full sharpness test.

Sunstar questions

Which lenses make the best sunstars? Lenses with straight aperture blades and a short focal length give the crispest stars, because the sun is drawn as a near point and the rays stay narrow. Primes and simple wide zooms often do well. Check the blade count and whether the blades are described as rounded in the specifications, then test it, because blade shape varies.

What f-stop do I need for a sunstar? Start at f/11 and try f/16. Wider than about f/8 gives few or no rays on most lenses, and f/22 gives a bigger star with a softer picture. The f-stop page explains the scale.

Why does my star have 14 points when my friend’s has 8? Your lens probably has seven blades and theirs eight. An odd blade count doubles the number of points.

Is a sunstar the same as lens flare? People often call it flare, but it has a different cause. The star is diffraction at the aperture blades and stays on the light. Flare is reflection and scatter inside the lens, and its ghosts move across the frame as you move the camera.

Does sensor size change the star? The star and the diffraction blur are the same size on the sensor at the same f-number. A smaller sensor is enlarged more for the same print, so the softness from stopping down shows sooner, and you may stop at f/11 where a larger sensor could use f/16.