The Madagascan flying fox, Madagascar flying-fox, or Madagascar fruit bat (Pteropus rufus) is a species of megabat in the genus Pteropus. It is endemic to Madagascar. Its natural habitats are diverse, and include moist lowland forests, dry forests, succulent woodlands, and spiny thickets, and mangroves. It eats figs and other fruits, flowers, and leaves. It is threatened by habitat loss.

The Madagascan flying fox roosts during the day in large trees in colonies of up to 1000 individuals although 400 is a more normal number. The bats are noisy and easily disturbed, and if roused, the whole colony may move off to an alternative roost site. Most roosts are in isolated trees in degraded areas.

The diet mainly consists of fruit juice which is squeezed from the fruit in the mouth. In the process many seeds are swallowed and dispersed to other areas as they pass through the animal's gut. Other tree products are also eaten, including leaves, flowers and nectar. It has been observed to visit the flowers of the kapok tree Ceiba pentandra and it is believed to pollinate this tree.

The Madagascan flying fox is one of the most common bat species on Madagascar and is found in all parts of the island except the central highland region, ranging from sea level to 1,200 meters elevation.