Apiece is a non comparable adjective that means each by itself, by a single one, to a share of each.
"The trader sold the pearls, a dollar apiece."
A piece means one part out of a larger whole usually in such a form that is able to be separated from other parts. It is concerns with a single item belonging to a class of similar items.
"I need to buy a piece for the machine to work again!"