It depends on what safety pin we are talking about:
1. safety pin needle - it has a lock so you easily use it on
clothes (or other things) and avoid getting pinned by the
needle
2. safety grenade pin - avoids the grenade from exploding
View page
In 1850, a safety pin cost around 1 to 2 cents, depending on the quality and size of the pin. Some higher-quality pins may have been more expensive, but this was the general price range for a standard safety pin during that time period.
View page
The safety pin has a pin that goes into the head of the pin, and
you push the point in or out of the head of the pin.