How is the Bitcoin transaction fee calculated for small transactions
You can use bitcoin-cli estimatefee to estimate the fees required, and settxfee to set it.  It's usually a bit trickier on the command line, a GUI wallet should show this information before you make the transaction though.