Sunstar photography settings and lens choice

by Konstantin Voronov · Techniques

In short: A sunstar is the ray pattern around the sun or a streetlamp, and it needs no filter or editing. Close the aperture: rays usually appear from f/8 to f/11 and reach full size at f/14 to f/16. Keep the bright source from blowing out, and choose a lens whose aperture blades draw a clean star.

What is a sunstar in photography?

A sunstar is a point of light, such as the sun or a streetlamp, rendered as a star framed by rays. Photographers also call it a sunburst or starburst. It makes a frame more striking: at dawn the sun can be a barely visible dot, or it can be a star with sharp rays. The same holds for city lights at night.

Sun setting behind a rocky ridge above a sea of clouds, rendered as a star with sharp rays

You need neither special filters nor any processing to get these rays. Correct camera settings are enough.

Technically, a sunstar is a kind of optical flaw: light diffracts at the edges of the aperture blades. Lenses show the effect to different degrees. With certain lenses a star is almost impossible to get because of their optical design. With others, shapeless blotches form around the light source instead of a neat star.

Sun on the horizon as a small star above a rocky gorge with a gnarled pine in the foreground

What aperture gives the best sunstar?

The answer is f/14 to f/16. Rays usually appear from f/8 to f/11 and reach their full size at f/14 to f/16. Closing further to f/22 or f/32 makes the star no bigger and softens the whole frame through diffraction.

Shoot at a closed aperture. Stars usually appear around point light sources from f/8 to f/11 and reach their full size at f/14 to f/16. At even smaller apertures, such as f/22 or f/32, image quality drops noticeably because of diffraction. So do not chase the star by closing the aperture that far.

The three frames below come from one series shot at different apertures. As the aperture closes, rays appear around the streetlamp above the bridge.

Lit bridge over a river at blue hour, the streetlamp above it a soft glow with no rays
Wider aperture: the streetlamp is a round glow.
The same bridge scene with short, faint rays starting to show around the streetlamp
Closer to f/8: short rays begin to show.
The same bridge scene with long, distinct rays forming a full star around the streetlamp
Closed further: the rays form a full star.

How much sharpness does f/22 cost?

The softening past f/16 is measurable. A closed aperture spreads every point of light into a small blur disk, the Airy disk. Its diameter grows in direct proportion to the f-number. The table compares that disk with the pixels of a 45.7-megapixel full-frame camera, the Nikon D850 used for three photos on this page.

ApertureBlur disk diameterWidth in D850 pixels
f/810.7 µm2.5
f/1114.8 µm3.4
f/1418.8 µm4.3
f/1621.5 µm4.9
f/2229.5 µm6.8
f/3242.9 µm9.9

How the numbers were computed: disk diameter = 2 × 1.22 × λ × N, with λ = 0.55 µm (green light) and N the f-number, from the first-minimum formula on the Airy disk page. Pixel pitch = 35.9 mm sensor width ÷ 8,256 pixels = 4.35 µm, from Nikon's D850 specifications.

From f/16 to f/32 the disk doubles, from about 5 pixels to about 10. That is the arithmetic behind the advice to stop at f/14 or f/16. The star gets no bigger, and every detail in the frame gets softer.

Why is there no star around the sun?

Exposure is the main reason. If the sky with the sun is overexposed and the sun becomes a plain white patch, you will see no star. The same goes for night lights: keep as much detail as possible in the highlights.

Domed church towers and a Gothic gate tower at dusk, with a lit street lamp in the foreground forming a small star
Nikon D850, 70-300mm f/4.5-5.6 lens. ISO 64, f/9, 4 s, 160 mm equivalent.

When you shoot the sun, it must not sit in haze or cloud. Through haze, catching a star with rays is harder. You either shoot without the star or wait until the sun comes out of the haze. Plan the shoot around the weather forecast.

Hiker beside a red tent and a smoking campfire on a lakeshore at sunset, the low sun a star above the water
Nikon D810, 18-35mm f/3.5-4.5 lens. ISO 200, f/14, 1/30 s, 24 mm equivalent.

When should you shoot city lights for sunstars?

Shoot night lights at twilight. In full darkness, with no natural light, city lights are very contrasty. You will still get stars around them, but most likely on a nearly black background. So shoot soon after sunset, when the street lighting has just come on and it is not yet fully dark. Sunset time is a good starting point for an evening shoot.

White house built against a cave wall at night, its lit windows reflected in still water
Nikon D850, 18-35mm f/3.5-4.5 lens. ISO 100, f/16, 91 s, 18 mm equivalent.

Bright light sources in the frame call for a lens with good flare control. Otherwise flare spots appear in the photo, and contrast and detail can drop. All current Nikon lenses handle flare well. Even budget optics, such as the Nikon AF-P DX 18-55mm f/3.5-5.6G VR kit zoom, cope well with backlight.

A sunlit scene can hold more brightness range than one frame records. If the star is clean but the foreground goes black, auto exposure bracketing gives you darker and lighter frames to combine.

How do aperture blades change the shape of the star?

Different lenses draw different stars. The shape depends on the optical design and on the aperture mechanism. The more blades a lens has, the more rays its star tends to have. The simplest stars come from lenses with 5 or 6 blades. That is very few, and the stars look unattractive. Today, though, almost no lenses with so few blades remain on the market.

Marina at dusk with motorboats moored along a stone quay, the waterside lamps forming stars
Nikon D850, 18-35mm f/3.5-4.5 lens. ISO 64, f/16, 3 s, 18 mm equivalent.

Blade count also sets the number of points, and odd beats even. Each straight blade edge throws two spikes in opposite directions. With an even number of blades, the spikes from opposite blades overlap. With an odd number, they fall between each other. The table applies that rule.

Aperture bladesRays in the star
44
510
66
714
88
918
1010

Rule: rays = n for an even number of blades n, and 2n for an odd number, from the Diffraction spike page.

Odd blade counts double the rays. A lens with n blades draws n rays when n is even and 2n rays when n is odd. A 7-blade lens draws 14 points, more than a 10-blade lens with its 10.

A 7-blade lens therefore draws more points than a 10-blade lens. Blade count is only part of the story, though: optical design shapes the width and length of the rays. That is why a wide zoom and a fast prime such as the Canon EF 50mm f/1.8 STM can draw very different stars at the same f-number.

Each lens model gives its own kind of star. So if you want to shoot the sun or night lights, check whether your lens can draw a good star. Take a few test shots with a couple of evening streetlamps in the frame.

My main lens for this is the Nikon AF-S NIKKOR 18-35mm f/3.5-4.5G ED. It has only 7 aperture blades, yet it forms stars with a dense ring of wide rays. The rule above explains the count: 7 blades give 14 rays. Rays like these look striking in landscape photos with the sun. By contrast, the Nikon AF-S NIKKOR 24mm f/1.8G ED draws long but narrow rays.

Sun rising over a forested ridge as a small star, with long grass and limestone rocks in the foreground

How to photograph a sunstar, step by step

  1. Put the camera in aperture priority or manual mode and set f/14 or f/16. Start at f/11 if the lens softens early.
  2. Set the lowest ISO. Use a tripod at twilight: the twilight photos on this page took from 3 s to 91 s.
  3. Expose for the highlights. Check the histogram and pull exposure down until the sky around the sun keeps detail.
  4. Shoot city lights soon after sunset, while the sky still holds color.
  5. Make test frames at two or three apertures, then compare the stars at 100 percent.

Sunstars are one more creative tool for making your photos more expressive. Every good photo is built from small touches like this one. The more of them you have at hand, the better your pictures get. For another way to shape how light renders in a frame, see the Scheimpflug principle, which tilts the plane of focus itself.

Frequently asked questions

What are the best sun star photography settings?
Close the aperture. Stars around point light sources usually appear from f/8 to f/11 and reach full size at f/14 to f/16. Use a low ISO and set the exposure so the sky around the sun keeps its detail: a blown-out sun turns into a white blob with no rays. Going past f/16 to f/22 or f/32 adds little and softens the whole frame through diffraction.
What causes a sunstar in a photo?
A sunstar is diffraction at the edges of the aperture blades. At small apertures the opening becomes a polygon, and each straight edge spreads light into two spikes pointing in opposite directions. That is why the effect needs a closed aperture and a point light source, and why no filter or editing is required. Lens design also matters: one lens renders neat stars, another only shapeless glare.
How many points will my sunstar have?
It depends on the number of aperture blades. A diaphragm with an even number of blades gives one ray per blade, because opposite spikes overlap. An odd number gives two rays per blade. So a 7-blade lens draws a 14-point star, while an 8-blade lens draws only 8 points. The ray table on this page lists blade counts from 4 to 10.
Is it safe to photograph the sun?
A sunrise or sunset star is shot with the sun low and softened by the atmosphere, but your eyes still need care. NASA warns that viewing any part of the bright sun through a camera lens without a special-purpose solar filter will instantly cause severe eye injury. Compose on the rear screen or electronic viewfinder rather than through an optical viewfinder, and keep the sun in frame only briefly.
Why do I get no star around the sun?
Three things usually kill the effect. The aperture is too wide: stars rarely show before f/8. The sun is overexposed into a white patch, so the rays have no darker sky to show against. Or the sun sits in haze or cloud, which spreads its light into a soft disk. Check the forecast, meter for the highlights and close the aperture to f/14 or f/16.

Sources

  1. Diffraction spike, Wikipedia (2026)
  2. Airy disk, Wikipedia (2026)
  3. Nikon D850 tech specs, Nikon USA (2026)
  4. Eclipse safety, NASA Science (2026)

Originally published on Prophotos.ru.