Cocktail Recipe Generator
Generate cocktail recipes from ingredients you have at home. Find drinks you can make now with detailed instructions and nearby bar locations.
Nothing to mix at home? Find bars, pubs, and liquor stores near your current location.
About
The average home bar contains 8 to 15 spirit and mixer bottles. The number of possible cocktail combinations from n ingredients is 2n − 1, meaning 12 bottles yield 4095 theoretical subsets. Without a structured lookup, most people rotate through 3 or 4 memorized recipes and ignore hundreds of viable drinks. This tool queries a database of over 600 cocktail recipes, performs set intersection against your declared ingredient list, and returns only drinks you can actually make right now. It pulls full recipes including exact measures, glassware, and garnish instructions. If your ingredient shelf comes up empty, it falls back to geolocation and finds bars and liquor stores within a configurable radius. Note: the matching algorithm treats each ingredient as a binary flag (present or absent). It does not account for quantity on hand. You may have the right bottles but not enough volume for a full recipe.
Formulas
The core matching logic uses set intersection. Given a user ingredient set U and a cocktail's required ingredient set Ck, the cocktail is makeable when:
The match percentage for partially matching cocktails is computed as:
For nearby place distance, the Haversine formula computes great-circle distance between two coordinate pairs (φ1, λ1) and (φ2, λ2):
Where R = 6371 km (Earth's mean radius), Δφ = φ2 − φ1, and Δλ = λ2 − λ1.
Reference Data
| Spirit / Ingredient | Category | ABV Range | Common Cocktails | Shelf Life (Opened) |
|---|---|---|---|---|
| Vodka | Base Spirit | 37.5 - 50% | Moscow Mule, Cosmopolitan, Martini | Indefinite |
| Gin | Base Spirit | 37.5 - 47% | Gin & Tonic, Negroni, Tom Collins | Indefinite |
| White Rum | Base Spirit | 37.5 - 40% | Mojito, Daiquiri, Piña Colada | Indefinite |
| Dark Rum | Base Spirit | 40 - 75% | Dark & Stormy, Mai Tai, Rum Punch | Indefinite |
| Tequila | Base Spirit | 38 - 40% | Margarita, Paloma, Tequila Sunrise | Indefinite |
| Bourbon | Base Spirit | 40 - 50% | Old Fashioned, Whiskey Sour, Mint Julep | Indefinite |
| Triple Sec | Liqueur | 15 - 40% | Margarita, Cosmopolitan, Sidecar | 3 - 4 years |
| Campari | Bitter Liqueur | 20.5 - 28% | Negroni, Americano, Boulevardier | 1 year |
| Sweet Vermouth | Fortified Wine | 15 - 18% | Manhattan, Negroni, Rob Roy | 1 - 3 months (refrigerated) |
| Dry Vermouth | Fortified Wine | 15 - 18% | Dry Martini, El Presidente | 1 - 3 months (refrigerated) |
| Lime Juice | Citrus / Mixer | 0% | Daiquiri, Gimlet, Mojito | 2 - 3 days (fresh) |
| Lemon Juice | Citrus / Mixer | 0% | Whiskey Sour, Tom Collins, French 75 | 2 - 3 days (fresh) |
| Simple Syrup | Sweetener | 0% | Old Fashioned, Daiquiri, Mojito | 1 month (refrigerated) |
| Angostura Bitters | Bitters | 44.7% | Old Fashioned, Manhattan, Champagne Cocktail | 5 years |
| Grenadine | Syrup | 0% | Tequila Sunrise, Shirley Temple, Jack Rose | 1 - 2 months |
| Coconut Cream | Mixer | 0% | Piña Colada, Painkiller | 5 - 7 days (opened) |
| Soda Water | Carbonated Mixer | 0% | Tom Collins, Mojito, Whiskey Highball | Use same day |
| Tonic Water | Carbonated Mixer | 0% | Gin & Tonic, Vodka Tonic | Use same day |
| Ginger Beer | Carbonated Mixer | 0 - 0.5% | Moscow Mule, Dark & Stormy | 3 - 5 days |
| Kahlua | Coffee Liqueur | 20% | White Russian, Espresso Martini, B-52 | 4 years |
| Baileys | Cream Liqueur | 17% | B-52, Mudslide, Irish Coffee | 6 months |
| Amaretto | Nut Liqueur | 21 - 28% | Amaretto Sour, Godfather | 2 years |
| Absinthe | Herbal Spirit | 45 - 74% | Corpse Reviver #2, Sazerac, Death in the Afternoon | Indefinite |
| Champagne | Sparkling Wine | 12% | French 75, Bellini, Mimosa | 1 - 3 days |
| Orange Juice | Juice / Mixer | 0% | Screwdriver, Tequila Sunrise, Mimosa | 7 - 10 days |
| Cranberry Juice | Juice / Mixer | 0% | Cosmopolitan, Cape Codder, Sea Breeze | 7 - 10 days |