VIDEO: Here's how ranked-choice voting works

SAN FRANCISCO (KGO) -- San Francisco has been using ranked-choice voting since 2004. The idea is to avoid a costly run-off election and to encourage a winner who has broad support.

MEET THE CANDIDATES: San Francisco mayoral race

But many people are still confused about how this type of voting works.

This is what San Francisco voters will see when they vote for mayor -- the ballot asks you to pick a first choice, second choice and third choice.

RELATED: San Francisco mayoral candidates form alliance in odd turn

But once you pick them, then what? How does the ranked choice voting algorithm come up with the winner?

Watch the video above for an explanation from ABC7 News Anchor Kristen Sze.

Get all the latest Election Day 2018 stories and videos from ABC7 here.

Copyright © 2019 KGO-TV. All Rights Reserved.