Calculate the margin from the cost price, or work back from the selling price.
No. Markup is calculated on cost: an item bought for 100 and sold for 125 has a 25% markup. Margin is calculated on the selling price: for the same item the margin is 25 / 125 = 20%.
First the net selling price is found, then it's multiplied by the VAT rate and added. For example, an item with a net price of 125 becomes 150 with 20% VAT.
No. The calculation runs in your browser; the values you enter are never sent to a server or stored.