To calculate TACoS for a specific campaign, sum up your total ad spend and total sales (including organic and ad-driven revenue) for that campaign. Divide your total ad spend by your total sales, then multiply by 100 to get a percentage.