Mary Shelley was about 18–19 years old when she wrote Frankenstein , beginning it at 18 during the summer of 1816 and completing it around age 19.