
sofort
immediately
Without any delay; right away and instantly.
Als sie den Feueralarm hörte, verließ sie sofort das Gebäude.
When she heard the fire alarm, she immediately left the building.
immediately
Loading your saved state.

immediately
Without any delay; right away and instantly.
Als sie den Feueralarm hörte, verließ sie sofort das Gebäude.
When she heard the fire alarm, she immediately left the building.

directly adjacent
An outdated or regional meaning for 'directly adjacent.'
Sein Grundstück liegt sofort am Waldrand.
His property lies directly next to the edge of the forest.
As an adverb, 'sofort' (immediately) can stand in different positions in the sentence. In position 1, it emphasizes urgency, and the verb follows directly after it. Inside the sentence, it usually stands after the conjugated verb.
Sofort rannte er los.
Immediately, he started running.
The word 'sofort' (immediately) is very direct and can sound strict in requests or commands. It leaves no room for delays.
Komm sofort hierher!
Come here immediately!
The meaning 'directly adjacent' is very rare today and is considered outdated or regional. In modern German, you will encounter almost exclusively the meaning 'unverzüglich' (immediately).
Das Grundstück liegt sofort am Park.
The property lies directly next to the park.
immediate / same
Both words refer to an action that will happen without a long wait. Gleich usually still allows a very short delay, whereas sofort explicitly means that there will be no delay. Use gleich for an action that will happen soon and sofort when it is supposed to begin or happen immediately.

Bitte ruf den Arzt sofort an, weil die Schmerzen plötzlich stärker geworden sind.
Please call the doctor immediately because the pain has suddenly become worse.
Ich rufe dich gleich zurück, sobald ich diesen Satz beendet habe.
I’ll call you back shortly, as soon as I’ve finished this sentence.