The short answer
There is no single answer. The result would depend on the period, the numbers, the equipment, the terrain and the commanders. Roman armies were well organized and disciplined, but they did lose battles. Medieval armies varied too much for one verdict to cover them all.
Which Roman army, and which medieval army?
The Roman army existed for many centuries, from the Republic into the late Empire. The Eastern Roman Empire, often called the Byzantine Empire, lasted into the medieval period, so the line between “Roman” and “medieval” is blurry. “Medieval” also covers about a thousand years across Europe and beyond. Any comparison has to name a period first.
How the two were organized
Roman. Units were standardized on paper. Early Imperial legions had about 5,000 men, split into cohorts and centuries, and soldiers trained together under regular drill. Later Roman forces changed in size and form.
Medieval. Armies were usually assembled for a campaign from levies, retinues and paid companies. Their organization varied by realm and changed over time. Mounted men-at-arms, often called knights in English sources, were an important part of many medieval armies.
What each side had going for it
- Roman strengths. Discipline, drill, logistics, engineering and experience with sieges. Roman forces built camps and roads, and they were trained to fight as units.
- Medieval strengths. Heavy cavalry in some periods, castles that could hold out against sieges, and, in the later Middle Ages, the English longbow in the hands of skilled archers.
Two battles where Roman-heritage armies lost
- Adrianople, 378. A Roman army under Emperor Valens was defeated by Gothic forces, and the emperor died in the battle. It is often treated as a serious Roman defeat.
- Manzikert, 1071. A Byzantine army was defeated by Seljuk Turks, and the Byzantine emperor, Romanos IV, was captured.
These examples do not decide the question. They show that Roman-heritage forces could lose badly, and that the outcome depended on the circumstances.
Why a direct contest is hard to judge
- No such battle took place, and centuries separate the two forms of warfare.
- Weapons, tactics, logistics and army sizes all changed over time.
- Any answer depends on which period of each army is chosen, so a verdict for one pairing may not hold for another.
Summary
A Roman army would not win every time, and a medieval army would not always lose. The more useful question is under what conditions each side had the advantage.