# (distance point1 point2) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="152"></a> ## (distance point1 point2) --- Determine the distance between two points. --- The **distance** function returns the distance between two points. *Point1* and *point2* are the x,y or x,y,z coordinates of the point. **Example** | Code | Returns | | --- | --- | | (setq a '(2 3)) (setq b '(5 1)) (**distance** a b) | 3.60555 | **Tell me about...** [(angle point1 point2)](%28angle%20point1%20point2%29.md) [(inters point1 point2 point3 point4 \[flag\])](%28inters%20point1%20point2%20point3%20point4%20-flag-%29.md) [(polar point angle distance)](%28polar%20point%20angle%20distance%29.md) [(setq symbol1 statement1 \[symbol2 statement2\] ...)](%28setq%20symbol1%20statement1%20-symbol2%20statement2-%20...%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28distance%20point1%20point2%29.md)