Calculators#465Verified Pro

Unit Price Comparison Calculator

Compare grocery and product unit prices across 2 to 6 packs with support for pack counts (e.g. 6 x 330 ml) and metric or imperial units (g, kg, ml, l, pcs, oz, lb, fl oz). Automatically highlights the cheapest option, shows percentage markup and per-unit savings for alternatives, renders a visual bar chart, includes a shopping-list mode for total cost by quantity needed, one-click copy, 6 languages, and 7 skins.

Customize Widget

Live preview active
Content2 options
Starting number of comparison rows (2 to 6)
Layout2 options
Horizontal alignment
Style4 options
Visual design preset
Light, dark, or system color scheme
Primary highlight color
Card border radius in px
Behavior4 options
auto selects kg, l, or piece from the row units
Number of decimal digits for prices (0 to 3)
Localization3 options
auto uses imperial for en-US pages, metric otherwise
auto uses host html lang, or enter a plain symbol
auto uses host html lang, fallback en
Live Interactive Preview

Copy and paste this snippet anywhere before the closing </body> tag:

<script src="https://100widgets.com/js.php?id=465" async></script>

Place this container where you want the widget to render, plus the script tag:

<div data-widget="unit-price"></div>
<script src="https://100widgets.com/w/465.js" defer></script>

Step-by-Step Installation Guides

Need platform-specific instructions for embedding this widget? Read our quick step-by-step guides:

HTML / Any SiteWordPressShopifyWixSquarespaceWebflowGoogle Tag ManagerView All 18 Guides →

Key Features

Customizable Unit Price Comparison Calculator with 15+ configuration options
Self-contained vanilla JavaScript with zero external dependencies
Works in both Mode A (container) and Mode B (script tag) embed modes
Full keyboard navigation and screen-reader accessibility
Light and dark color mode support with auto-detection
Fully responsive on mobile, tablet, and desktop viewports

How to Install in 3 Easy Steps

1

Customize

Adjust the colors, position, and text above to match your website design and branding.

2

Copy Code

Click "Copy" on the generated embed code snippet. No installation or registration needed.

3

Paste & Publish

Paste the snippet into your HTML, WordPress, Shopify, Webflow, or Wix page.

Frequently Asked Questions

How do I add Unit Price Comparison Calculator to my website?

Simply copy the generated embed code snippet and paste it into your site HTML where you want the widget to appear.

Does this widget require jQuery or other libraries?

No, all 100Widgets components are completely standalone and have zero external dependencies.

Is this widget free to use?

Yes, it is 100% free for personal and commercial websites.