# How to get QED symbol in `amsthm`?

I am trying to get QED symbol in `amsthm`.

I use `\$\hfill \square\$`, but I get a slightly different square:

The one on the right is the QED symbol of `amsmath`.

• `\qedsymbol` and `\qedhere` – Sigur Jan 18 '16 at 23:25
• @Sigur can you please write that as an answer? – padawan Jan 18 '16 at 23:47
• See also: QED symbol in latex – Martin Thoma Jan 19 '16 at 14:32

The QED symbol is stored in `\qedsymbol` command and can be changed using `\renewcommand`.
To insert the QED symbol simply type `\qedsymbol` but if you want to move it to the end of line, use `\qedhere`.
• Depending on the document class/package option used, `\qedsymbol` could be either `\openbox` or `\textsquare`. See this image. – Werner Jan 19 '16 at 0:44