Self employed

So let me see if i got this correct

starting inventory $100 plus (purchases through out the year) $857 minus whats left at the end of the year $400

100 +857-400=557 cost of goods sold

 

I guess I am getting caught up on wording some stuff stays cost of goods sold and some stuff says cost of purchases. So are the the same thing or no.