which one is right? 1$ or $1

The correct format for expressing a dollar amount is $1. The dollar sign ($) should always come before the numerical value.