Ball Lens Focal Length Calculator
A ball lens is the simplest focusing optic there is: a polished sphere, usually glass or sapphire, a few millimeters across. Shine a collimated beam at it and the sphere focuses the light to a point just outside its surface, which is why ball lenses are the workhorse couplers in fiber optics, endoscopy, barcode scanners, and laser alignment. The catch is that the focal point sits very close to the ball, so getting the diameter and material right matters to fractions of a millimeter.
The Ball Lens Focal Length Calculator below computes the full set of parameters: effective focal length (EFL), back focal length (BFL), front focal length (FFL), and numerical aperture (NA). It also runs in reverse: give it the EFL you need and it tells you what diameter or what refractive index will produce it. Material presets cover the four most common glasses, and an optional wavelength input applies a Cauchy dispersion correction so the index matches your actual operating wavelength. Most competing tools only run the forward calculation with a single formula.
Quick Answer
Key takeaways
- EFL = nD / (4(n-1)) is measured from the ball center; BFL = EFL - D/2 is measured from the ball surface.
- Higher refractive index means shorter focal length: sapphire focuses much tighter than BK7.
- The tool also solves backwards: required diameter or required index for a target EFL.
- Entering a wavelength applies a Cauchy dispersion correction for the real operating index.
- Quick Answer
- EFL, BFL, FFL, and NA: what each one means
- The formulas, and what the 4(n-1) does
- Materials table: pick your glass
- Worked example, checked against this exact tool
- What competing calculators miss
- Dispersion: why wavelength matters
- Frequently asked questions
- Add This Calculator to Your Website
- References
EFL, BFL, FFL, and NA: what each one means
Four numbers describe a ball lens, and mixing them up is the most common design error. Here is the precise meaning of each:
The distinction that bites is EFL vs BFL. EFL is measured from the center of the sphere; BFL is measured from the surface, which is EFL minus the radius (D/2). If your mechanical design places the fiber tip at the EFL distance from the surface, you will be off by a full radius, and on a 2 mm sapphire ball that error (1 mm) is nearly seven times the BFL itself (0.1509 mm). Always design to BFL for mounting and EFL for optical calculations.
The formulas, and what the 4(n-1) does
For a sphere in air, the paraxial formulas are closed-form and exact:
The denominator 4(n-1) carries the physics: the (n-1) term is the refractive bending power at each of the two spherical surfaces, and the factor of 4 comes from the sphere's geometry (two surfaces, each with radius D/2). As n approaches 2, the EFL approaches D/2, meaning the focus lands exactly on the back surface of the ball. That is why n = 2 materials (like S-LAH79 glass, n = 2.00) are special: the focal point sits on the surface itself, which is ideal for certain retroreflector and coupling geometries.
Materials table: pick your glass
The material choice dominates the result. Here is what a 2 mm ball gives you in the four preset materials, computed with this tool's own formulas:
| Material | n | EFL (mm) | BFL (mm) | NA |
|---|---|---|---|---|
| Fused silica | 1.4584 | 1.5908 | 0.5908 | 0.342841 |
| BK7 glass | 1.5168 | 1.4675 | 0.4675 | 0.329641 |
| Sapphire | 1.7682 | 1.1509 | 0.1509 | 0.282773 |
| SF11 | 1.7847 | 1.1372 | 0.1372 | 0.280159 |
The pattern is clear: higher index pulls the focus in tight. Fused silica leaves a comfortable 0.59 mm working distance; sapphire leaves only 0.15 mm, which demands precise mounting but gives a much smaller focused spot. Fused silica wins where UV transmission or thermal stability matters; sapphire wins where hardness and a tight focus matter; BK7 is the economical default for visible-light work. RP Photonics' ball lens encyclopedia entry is a solid deeper reference on these trade-offs.
Worked example, checked against this exact tool
Keep the defaults (2 mm diameter, sapphire preset n = 1.7682, millimeters) and click Calculate. Here is what the tool returns, verified against the underlying code:
| Figure | Value |
|---|---|
| Effective focal length (EFL) | 1.1509 mm |
| Back focal length (BFL) | 0.1509 mm |
| Front focal length (FFL) | 2.1509 mm |
| Numerical aperture (NA) | 0.282773 |
Check the arithmetic: EFL = 1.7682 x 2 / (4 x 0.7682) = 3.5364 / 3.0728 = 1.1509 mm. BFL = 1.1509 - 1.0000 = 0.1509 mm. NA = 1 / (2 x 1.7682) = 0.282773. Try the reverse tabs: ask for the diameter that gives EFL = 1.1509 mm at n = 1.7682 and the tool returns D = 2.0000 mm; ask for the index that gives EFL = 1.1509 mm with D = 2 mm and it returns n = 1.76817, matching the input to four decimal places.
What competing calculators miss
BraveCalculator and CalculatorUltra both implement the forward EFL formula correctly, and BraveCalculator shows its worked example clearly (a 2 mm sapphire ball giving EFL 2.30 mm, though note it uses EFL = nD/(2(n-1)), the radius-based form, which equals the same 1.1509 mm result when computed from the diameter correctly; check which convention a tool uses before comparing numbers). What neither offers is any reverse mode: if you know the EFL your detector needs, you are on your own.
GoPhotonics' ball lens calculator is the most complete competitor, adding the input beam diameter to refine the NA calculation, which is genuinely useful for fiber coupling. SavvyCalculator has the best worked example of the group, with a clear table showing that a 3 mm crown-glass ball puts the focus exactly one diameter behind the surface. But none of them apply a wavelength-dependent dispersion correction: they all use the catalog index at the sodium d-line regardless of your operating wavelength. This tool's optional wavelength input applies the Cauchy correction for the selected material, which is the winning move for anyone working away from 587.6 nm. Edmund Optics' ball lens application note covers the practical mounting consequences of these small focal distances.
Dispersion: why wavelength matters
The refractive index in the material presets is quoted at the standard d-line wavelength (587.6 nm). But glass disperses: blue light sees a higher index than red light. If your system runs at 532 nm (green laser) or 1550 nm (telecom fiber), the catalog index is slightly wrong, and on a ball lens with a 0.15 mm BFL, slightly wrong matters.
Enter your operating wavelength in nanometers and the calculator applies a Cauchy dispersion model (n = A + B/lambda^2 + C/lambda^4) fitted to each preset material, then recomputes with the corrected index. The result line tells you exactly what it did, for example: "Approximate dispersion correction (Cauchy) applied at 532 nm: n = 1.77521." If you enter a wavelength with the Custom index option, the tool tells you plainly that it cannot correct an index it does not know the dispersion of, and uses your value as entered. That honesty beats a silent wrong answer.
Frequently asked questions
EFL = nD / (4(n-1)), where n is the refractive index and D is the ball diameter. Back focal length is BFL = EFL - D/2, and numerical aperture is NA = 1 / (2n). For a 2 mm sapphire ball (n = 1.7682), EFL = 1.1509 mm and BFL = 0.1509 mm.
EFL (effective focal length) is measured from the center of the ball to the focal point; BFL (back focal length) is measured from the ball's surface to the focal point, equal to EFL minus the radius. Use BFL when designing the mechanical mount and EFL for optical calculations.
BK7 is the economical default for visible light. Fused silica suits UV work and high temperatures. Sapphire gives a much tighter focus and extreme hardness for harsh environments. SF11 offers the highest index of the common presets for the shortest focal length.
Use the Diameter tab: enter your target EFL and the refractive index, and the tool computes D = EFL x 4(n-1) / n. Similarly, the Index tab finds the required n from a target EFL and a fixed diameter.
Yes, through dispersion: the refractive index depends on wavelength. Enter your operating wavelength in nm and the calculator applies a Cauchy correction to the preset material's index before computing. Without it, results assume the standard 587.6 nm d-line index.
NA = 1/(2n) measures the lens's light-gathering ability and, in fiber coupling, how well the focused cone matches the fiber's acceptance cone. Matching the ball lens NA to the fiber NA maximizes coupling efficiency.
Add This Calculator to Your Website
References
- Edmund Optics, “Understanding Ball Lenses” - Application note on ball lens geometry, focal lengths, and mounting practice. Understanding Ball Lenses. Accessed October 19, 2026.
- RP Photonics, “Ball Lenses” - Encyclopedia entry on ball lens properties, formulas, and applications. Ball Lenses. Accessed October 19, 2026.
- Thorlabs, “Ball Lenses” - Manufacturer catalog data for ball lens materials and sizes. Ball Lenses. Accessed October 19, 2026.
- RefractiveIndex.INFO, “Optical Glass Data” - Database of refractive index data and dispersion formulas for optical glasses. Optical Glass Data. Accessed October 19, 2026.
- Schott, “Optical Glass” - Manufacturer data for BK7, SF11, and fused silica optical properties. Optical Glass. Accessed October 19, 2026.
