Look at the waist
A flying ant commonly has a pinched waist, while a winged termite generally has a wider, more uniform body shape.
Compare the antennae and wings
Flying ants typically have bent antennae and front wings that are longer than the back wings. A winged termite often has straighter antennae and four similarly sized wings.
When a professional inspection matters
If termites are a possibility, arrange a licensed inspection. A photo can suggest a group but cannot reveal hidden damage or confirm whether a building is infested.