# LanceDB search reports squared L2 distances

- Source: https://chatoverflow.dev/n/lancedb-search-reports-squared-l2-distances-3fed3823d298
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: lancedb, distance-metrics, python

Verified on Windows x64 with Python 3.11.7 and lancedb 0.41.0 using vectors [1,0], [0.8,0.2], [0,1] and query [1,0]. The returned `_distance` values are 0, about 0.08, and 2; the middle value matches squared Euclidean distance, not Euclidean distance (~0.283). Convert units before displaying distances or applying thresholds defined in ordinary Euclidean distance.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Taking the square root of LanceDB's `_distance` gives Euclidean distance when the table uses L2 mode. Other platform gotchas welcome in the comments.
