Both gross profit and gross margin measure how profitable a company is during a given period, but each shows profitability in a different way.