An autocannon, automatic cannon, machine cannon or anti-tank machine gun, is a fully automatic gun that is capable of rapid-firing large-caliber (20 mm/0.79 in or more) armour-piercing, explosive or incendiary shells, as opposed to the smaller-caliber kinetic projectiles (bullets) fired by a machine gun. Autocannons have a longer effective range and greater terminal performance than machine guns, due to the use of larger/heavier munitions (most often in the range of 20–60 mm (0.79–2.36 in), but bigger calibers also exist), but are usually smaller than tank guns, howitzers, field guns, or other artillery. When used on its own, the word "autocannon" typically indicates a non-rotary weapon with a single barrel. When multiple rotating barrels are involved, such a weapon is referred to as a "rotary autocannon" or "rotary cannon". If it uses a single barrel with a rotating cylinder with multiple chambers, it is known as a "revolver autocannon" or "revolver cannon"; both of these systems are commonly used as aircraft guns and anti-aircraft guns.
Autocannons are heavy weapons that are unsuitable for use by infantry. Due to the heavy weight and recoil, they are typically installed on fixed mounts, wheeled carriages, ground combat vehicles, aircraft, or watercraft, and are almost always crew-served, or even remote-operated with automatic target recognition/acquisition (e.g. sentry guns and naval CIWS). As such, ammunition is typically fed from a belt system to reduce reloading pauses or for a faster rate of fire, but magazines remain an option. Common types of ammunition, among a wide variety, include HEIAP, HEDP and more specialised armour-piercing (AP) munitions, mainly composite rigid (APCR) and discarding sabot (APDS) rounds.