An input device comprising: a touch panel having a plurality of electrodes disposed side by side; a detection signal generation unit configured to generate a detection signal used to detect a height to an indicator located at a position away from a surface of the touch panel to input the generated detection signal to each of the plurality of electrodes; a position detection unit configured to detect a position of the indicator along the surface of the touch panel based on a signal component that appears on each of the electrodes when the detection signal is input to each of the plurality of electrodes; and a signal measurement unit configured to measure a signal intensity proportional to a capacitance generated between the indicator and each of the electrodes based on a signal component appearing on each of the electrodes, characterised by a height detection unit configured to detect a height of the indicator located at a position away from the surface of the touch panel based on a signal component that appears on each of the electrodes when the detection signal is input to each of the plurality of electrodes, wherein the height detection unit is configured to detect the height of the indicator by summing a signal intensity corresponding to each of a predetermined number of the electrodes centered on a position of the indicator detected by the position detection unit , wherein when detecting the height of the indicator, the height detection unit is configured to perform a correction to reduce the height of the indicator when a position of the indicator detected by the position detection unit is included in a peripheral portion (A1) of the touch panel , compared with when a position of the indicator detected by the position detection unit is included in a non-peripheral portion (A2). a touch panel having a plurality of electrodes disposed side by side; a detection signal generation unit configured to generate a detection signal used to detect a height to an indicator located at a position away from a surface of the touch panel to input the generated detection signal to each of the plurality of electrodes; a position detection unit configured to detect a position of the indicator along the surface of the touch panel based on a signal component that appears on each of the electrodes when the detection signal is input to each of the plurality of electrodes; and a signal measurement unit configured to measure a signal intensity proportional to a capacitance generated between the indicator and each of the electrodes based on a signal component appearing on each of the electrodes, characterised by a height detection unit configured to detect a height of the indicator located at a position away from the surface of the touch panel based on a signal component that appears on each of the electrodes when the detection signal is input to each of the plurality of electrodes, wherein the height detection unit is configured to detect the height of the indicator by summing a signal intensity corresponding to each of a predetermined number of the electrodes centered on a position of the indicator detected by the position detection unit , wherein when detecting the height of the indicator, the height detection unit is configured to perform a correction to reduce the height of the indicator when a position of the indicator detected by the position detection unit is included in a peripheral portion (A1) of the touch panel , compared with when a position of the indicator detected by the position detection unit is included in a non-peripheral portion (A2). <EOS>