A thermal air flowmeter which improves air flow rate measurement sensitivity, reduces power consumption of a heating element and broadens the measuring range. A heating resistor is provided on insulating film in a thermal insulating area as a rectangular space on a flat substrate; and two resistance temperature detectors are provided upstream and downstream of the heating resistor. The sides of the rectangular thermal insulating area which are parallel to the axis of air flow are longer than its sides which are perpendicular to the axis of air flow.