Gerstner was born on 23rd February 1756 to the master strapmaker Florian Gerstner in Hottergasse street in Chomutov. At the age of eight the gifted lad was accepted at the Jesuit grammar school in Chomutov, and after graduating he went on to study philosophy, astronomy, mathematics and theology at the University of Prague.
In 1863 a plaque was installed at the site of his birthplace with an inscription commemorating this famous native of Chomutov. The street in which the house was situated was renamed Gerstnergasse in his honour. In 1932, to mark the one hundredth anniversary of Gerstner’s death, a memorial to Gerstner was erected on Siemensovo náměstí square (now náměstí T. G. Masaryka) and part of his remains was moved from his grave in Mladějov to a new grave set up in Chomutov cemetery.
Immediately after the end of World War II public memories of Gerstner fell victim to the enthusiasm of liberation and the efforts to deal with the German past. The memorial was destroyed; Gerstner street was renamed Hálkova, and the commemorative plaque was removed. To a certain extent this situation was remedied in 1957, on the 200th anniversary of his birth and 125 years after his death, when a new commemorative plaque was installed at the site of his birthplace (unfortunately this was removed during recent repairs to the building and has not yet been put back in place). In 1967 one of the streets on the new Horní Ves estate was renamed after Gerstner and in 2006 a new memorial was unveiled, which stands in Školní ulice just a few dozen metres from the original one.