Focal length describes optical behavior. Filter diameter describes the front mechanical thread; they use the same unit but answer different questions.
Make the exact-model decision
Use the lens specification's Filter Size row. Nikon Z 50mm f/1.8 S uses 62 mm, not 50 mm. Locate the exact lens front-thread size in its manual or spec table, then verify whether the accessory is screw-in, magnetic, square-holder or drop-in.
A manufacturer example
Nikon specifies a Z mount, FX coverage and a 62 mm screw-in filter for its NIKKOR Z 50mm f/1.8 S. Use the linked page for its stated model and revision; a different model may need a different support document.
Where to draw the line
Thread arithmetic can identify a ring direction, but it cannot certify hood clearance or an image without corner shading. If a source does not address the exact feature you need, record that feature as unknown rather than treating silence as support or incompatibility.
Your next step
Take the model code from the body or lens label, open the official source below, and compare its scope with the equipment you have. Then use the calculate a filter route to organize what is known. Do not mount an item that resists or appears on a maker’s exclusion list.
Official sources and scope
Checked for this reference on October 30, 2026. Product firmware and support lists can change; inspect the current maker page for your exact revision.