You’re forgetting taxes. Some will be tax free but not all if it’s a 401k or traditional IRA
if your AGI is under $39k (or $78k married couple?), there's 0% tax on long term capital gains (gains from equities sales or qualified dividends). At least at a federal level, there likely wouldn't be any tax due on that $24k pull.