Realistic fiction, but I think it was inspired by the author's real life? Set during "modern day," but it felt like early 2000s. An teenaged girl (I think 14?) is placed in a foster home with 2 parents and 2 or 3 boys, one of which is a baby/toddler. They were expecting another boy but got MC instead, so they give her the nursery room for privacy. The first night she thinks about how infantilizing it is, but they're later able to make it truly hers with time. Her initial revealed reason for being removed from the home is that her mom's boyfriend was really abusive and beat her and her mother. As the book progresses and she starts connecting with the family, it's revealed that before the boyfriend came along, she was living with her single mom who hadn't been able to afford to take care of MC for a long time. Scene of MC remembering stealing clothing from an unattended donation "dumpster" with her and bonding with her mom over this. I remember that she liked basketball with the older boys/dad in the driveway, and I think at one point she ran away into the woods. I think she defended the boys at school one day?
It is revealed later that the abuse flashback she'd been having throughout the book about her mom's boyfriend had more to it. After Mom is knocked to the floor (I can't remember if this was because the BF pushed Mom down or if MC knocked her over while trying to struggle out of BF's grip), she grabbed MC's ankle and shouted, "I've got her! I've got 'er, [BF]!" to hold MC in place so BF could get her and beat her. MC couldn't process why her mom would do this, why she would turn on her like that. Conflicted feelings around abuse.
I think MC also had a fight with the foster mom, because MC felt patronized and didn't want to connect and "replace" her real mom. FMom reveals that she was a foster kid, too, and they connect because MC realizes it's not a savior complex but about wanting to be the person she wished had been there for her. MC goes... somewhere at the end, possibly back to her Mom after rehab(?), and the FMom's goodbye is described as looking like playing the piano in the air.
I think I read this in high school (2014–19) but that doesn't seem right so possibly earlier. Definitely a school library though, in English. Middle school to early high school reading level, at least for me anyways. I think it was a hardcover, maybe with light colors and text only for the cover? Possibly a really simple illustration. It wasn't incredibly long, but took me a few days to get through around schoolwork.
Any ideas? Been scouring the internet, but the plot details I remember keep bringing up really unrelated results.