Legato what? Legato scales? Legato chords? Legato octaves? It's different for everything! The secret of legato is overlapping. The two sounds are heard simultaneously for a very short time, that gives the illusion of legato. You can do this with your fingers, or with pedal. Trying and listening is definitely the key to everything.