However , many states ' taxes are a percentage and thus vary in amount depending on the cost of the gasoline .
However , some states also charge a sales tax as a percentage and vary in amount depending on the cost of the gasoline .