The total length of Latvia's boundary is . The total length of its land boundary is , of which  is shared with Estonia to the north,  with the Russian Federation to the east,  with Belarus to the southeast and  with Lithuania to the south. The total length of its maritime boundary is , which is shared with Estonia, Sweden and Lithuania. Extension from north to south is  and from west to east .