"on or at the top," 1650s, from a- (1) + top (n.1). Two words or hyphenated at first; not fully established as one word until late 19c.
Entries linking to atop
a- 1
prefix or inseparable particle, a conglomerate of various Germanic and Latin elements.
In words derived from Old English, it commonly represents Old English an "on, in, into" (see on (prep.)), as in alive, above, asleep, aback, abroad, afoot, ashore, ahead, abed, aside, obsolete arank "in rank and file," etc., forming adjectives and adverbs from nouns, with the notion "in, at; engaged in." In this use it is identical to a (2).
It also can represent Middle English of (prep.) "off, from," as in anew, afresh, akin, abreast. Or it can be a reduced form of the Old English past participle prefix ge-, as in aware.
Or it can be the Old English intensive a-, originally ar- (cognate with German er- and probably implying originally "motion away from"), as in abide, arise, awake, ashamed, marking a verb as momentary, a single event. Such words sometimes were refashioned in early modern English as though the prefix were Latin (accursed, allay, affright are examples).
In words from Romanic languages, often it represents reduced forms of Latin ad "to, toward; for" (see ad-), or ab "from, away, off" (see ab-); both of which by about 7c. had been reduced to a in the ancestor of Old French. In a few cases it represents Latin ex.
[I]t naturally happened that all these a- prefixes were at length confusedly lumped together in idea, and the resultant a- looked upon as vaguely intensive, rhetorical, euphonic, or even archaic, and wholly otiose. [OED]
top n.1
"highest point," Old English top "summit, crest, tuft," from Proto-Germanic *toppa- (source also of Old Norse toppr "tuft of hair," Old Frisian top "tuft," Old Dutch topp, Dutch top, Old High German zopf "end, tip, tuft of hair," German Zopf "tuft of hair"); no certain connections outside Germanic except a few Romanic words probably borrowed from Germanic.
Few Indo-European languages have a word so generic, which can be used of the upper part or surface of just about anything. More typical is German, which has Spitze for sharp peaks (mountains), oberfläche for the upper surface of flat things (such as a table). The meaning "highest position" is from 1620s; the meaning "best part" is from 1660s. The sense of "dominant sexual partner" is by 1961.
To go over the top is World War I slang for "start an attack," in reference to the top of the trenches; as "beyond reasonable limits, too far" it is recorded from 1968. Top of the world as "position of greatest eminence" is from 1670s. Top-of-the-line (adj.) is by 1950.