# Heliocentric distance from galactic x y and z coordinates

How can I get heliocentric distance to a star when I have galactic x y and z coordinates known ?

• Can you give an example of what you mean by "galactic x y and z coordinates"? The standard Galactic coordinate system (l, b) only has two numbers, which are angular directions on the sky, as seen from the Earth. – Peter Erwin Jun 29 '18 at 18:46

Since it is a heliocentric system the Euclidian distance is $\sqrt{x^2+y^2+z^2}$.