Can corydoras live with swordtails?

Verdict
Yes

Yes. Corydoras and swordtails make a good pair. Both are fine at 72–79°F. Plan on at least 30 gal.

Why it works

Water side by side

55°60°65°70°75°80°85°90°Both: 72–79°Corydoras 72–79°Swordtail 72–79°
The green band is the temperature range both can live in.
456789Both: 7–7.8Corydoras 6–7.8Swordtail 7–8.3
The green band is the pH both tolerate.

Size to scale

Corydoras · 2.5 inSwordtail · 5 in0"1"2"3"4"5"6"
Adult length in an aquarium. A fish can swallow anything that fits in its mouth, roughly a third to half its own length for predators.

Care at a glance

CorydorasSwordtail
Temperature72–79 °F72–79 °F
pH6–7.87–8.3
Adult size2.5 in5.0 in
Minimum tank20 gal30 gal
TemperamentPeacefulSemi-aggressive
Swims atBottomMiddle
GroupGroups of 6+Groups of 3+
DietOmnivoreOmnivore

Better tank mates for corydoras

All corydoras tank mates

Better tank mates for swordtails

All swordtail tank mates

Questions

Can corydoras live with swordtails?

Yes. Corydoras and swordtails make a good pair. Both are fine at 72–79°F. Plan on at least 30 gal.

What temperature suits both corydoras and swordtails?

72–79 °F. Corydoras need 72–79 °F, swordtails need 72–79 °F.

What size tank do corydoras and swordtails need together?

At least 30 gal, set by the swordtail. Add space for each extra fish.