Jazmin Lopez, 18, of Dallas, was charged with capital murder.
A worker found the child’s body at Perry Cemetery on March 3.
The Dallas County Medical Examiner determined the child’s mother was at least 34 weeks pregnant when she gave birth.
Carrolton police say Lopez came forward after seeing a news report of the baby’s body being found.
She initially told authorities she gave birth and the child was not moving or breathing. However, she changed her story after investigators found a photo of the baby alive on her cellphone, according to an arrest affidavit.
Lopez later admitted to authorities that she gave birth in a bathroom while her family members were home, and, when the baby was about to cry, she covered its mouth and held it against her body for about one or two minutes, according to KDFW.
She later put the baby in a backpack and left the apartment to meet a friend. She said when she got to her friend’s car, she knew the baby had died.
Lopez told police she and her friend bought a flowerpot at Home Depot, put the baby’s body inside, filled it with soil and flowers and dropped it off at Perry Cemetery the next day.
She is being held in the Dallas County jail on $500,000 bond.