This is highly debatable among historians, and people usually define their own range.
Usually, antiquity starts with the foundation of the large empires, and ends with the great migration, when the Middle Ages begin. The Middle Ages are often said to last until the (re-)discovery of the American continent.