How Does a Zero-Fee Transaction Affect a Bitcoin Block’s Overall Profitability?
A zero-fee transaction slightly reduces the block's overall profitability compared to filling that space with a transaction that pays a fee. Miners aim to maximize profit by selecting transactions with the highest fee-per-byte.
Including a zero-fee transaction means forgoing the potential revenue from a paying transaction that could have occupied the same block space.