It depends on how it is written in a given sentence. If it is a quote from another source, the period is on the inside. If the quotation marks function as something in particular, the sentence should end with the period outside the closed quotation.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.