A method for controlling the runtime of a burner which is adapted to feed heat to a boiler, wherein said method comprises the method steps: - adjusting (S31; S401) a boiler temperature target value T SOLL, indicating a target value of the boiler temperature, - feeding (S33; S406) heat through said burner to said boiler, - continuously or repeatedly detecting (S34; S407) an instantaneous boiler temperature actual value T IST depending on an instantaneous temperature at least in a part of the boiler volume in order to determine the boiler temperature actual value T IST (t) as a function of time t, - continuously or repeatedly determining (S35; S408) an instantaneous control deviation difference ΔT which is a difference between said adjusted boiler temperature target value T SOLL and said determined instantaneous boiler temperature actual value T IST in order to determine the control deviation difference ΔT(t) as a function of time t, - determining (S36; S409, S411) a turn-off integral I AB (t) by calculating an integral depending on said control deviation difference ΔT(t) over time t if the boiler temperature actual value T IST is larger than the boiler temperature target value T SOLL, - turning-off (S37; S410) said burner at a first point of time t 1, at which the value I AB (t 1) of said turn-off integral I AB (t) reaches a first threshold value SW 1 in order to stop feeding heat to said burner, - determining (S38; S412) a turn-on integral Izu(t) by calculating an integral depending on said control deviation difference ΔT(t) over time t if said boiler temperature actual value T IST is smaller than said boiler temperature target value T SOLL, - turning-on (S32; S405) said burner at a second point of time t 2 at which the value I ZU (t 2) of said turn-on integral Izu(t) reaches a second threshold value SW 2 in order to feed heat through said burner to said boiler, characterized in that said turn-off integral I AB (t) is determined up to a third point of time t 3 at which the boiler temperature actual value T IST (t) reaches or deceeds the boiler temperature target value T SOLL or a predetermined first temperature range value T 1 after turning off said burner, wherein said second threshold value SW 2 is set in accordance with the value I AB (t 3) of said turn-off integral I AB (t) at the third point of time t 3 at which the absolute value |I ZU (t)| of said turn-on integral Izu(t) reaches or exceeds the absolute value |I AB (t)| of said turn-off integral I AB (t) at the third point of time t 3. - adjusting (S31; S401) a boiler temperature target value T SOLL, indicating a target value of the boiler temperature, - feeding (S33; S406) heat through said burner to said boiler, - continuously or repeatedly detecting (S34; S407) an instantaneous boiler temperature actual value T IST depending on an instantaneous temperature at least in a part of the boiler volume in order to determine the boiler temperature actual value T IST (t) as a function of time t, - continuously or repeatedly determining (S35; S408) an instantaneous control deviation difference ΔT which is a difference between said adjusted boiler temperature target value T SOLL and said determined instantaneous boiler temperature actual value T IST in order to determine the control deviation difference ΔT(t) as a function of time t, - determining (S36; S409, S411) a turn-off integral I AB (t) by calculating an integral depending on said control deviation difference ΔT(t) over time t if the boiler temperature actual value T IST is larger than the boiler temperature target value T SOLL, - turning-off (S37; S410) said burner at a first point of time t 1, at which the value I AB (t 1) of said turn-off integral I AB (t) reaches a first threshold value SW 1 in order to stop feeding heat to said burner, - determining (S38; S412) a turn-on integral Izu(t) by calculating an integral depending on said control deviation difference ΔT(t) over time t if said boiler temperature actual value T IST is smaller than said boiler temperature target value T SOLL, - turning-on (S32; S405) said burner at a second point of time t 2 at which the value I ZU (t 2) of said turn-on integral Izu(t) reaches a second threshold value SW 2 in order to feed heat through said burner to said boiler,