DevToolBox

Percentage Calculator

3つのモードでパーセント計算。リアルタイムで結果を表示します。

YのX%はいくつ?

% of=-

How to Use the Percentage Calculator

This percentage calculator provides three different calculation modes to handle all common percentage problems. Select a tab to switch between modes and enter your values. Results update in real-time as you type, with no need to click a calculate button. Each mode has its own clear button to reset the inputs. All calculations are performed entirely in your browser.

Three Calculation Modes

The first mode answers "What is X% of Y?" - enter a percentage and a value to find the result. The second mode answers "X is what percent of Y?" - enter two values to find what percentage the first is of the second. The third mode calculates the percentage change between two values, showing whether it is an increase or decrease with color-coded output (green for increase, red for decrease).

Practical Applications

Percentage calculations are used extensively in everyday life and business. Common use cases include calculating discounts and sales tax, determining tip amounts, computing profit margins and markup percentages, analyzing investment returns, converting between fractions and percentages, and comparing data changes over time. The percentage change mode is particularly useful for analyzing financial performance, price changes, and statistical variations between time periods.

パーセント計算ツールの使い方

3つのタブで「YのX%はいくつ?」「XはYの何%?」「XからYへの増減率は?」を切り替えて計算できます。 入力と同時に結果が表示され、全ての計算はブラウザ内で完結します。 割引価格の計算、達成率の確認、前年比の算出などにご利用ください。

よくある落とし穴と対処 / Common Pitfalls

落とし穴 / Pitfall問題 / Problem対処 / Fix
増減率の基準値の取り違え
Wrong base value for change rate
「100→150」は+50%だが「150→100」は−33.3%。割る数は常に変化前
100→150 is +50% but 150→100 is −33.3%; the divisor is the old value
増減率 = (新−旧) ÷ 旧 × 100 を徹底する
Always divide by the original value
%と%ポイントの混同
Percent vs percentage points
「10%→15%」は+5ポイントだが、増加率では+50%
10%→15% is +5 points but a 50% increase
比率自体の変化は「ポイント」で表現する
Use "points" when comparing two rates
連続割引の誤算
Stacked discounts miscalculated
「30%引きの後さらに20%引き」は50%引きではなく44%引き(0.7×0.8=0.56)
30% off then 20% off = 44% off, not 50%
割引率は加算ではなく乗算で計算する
Multiply the remaining ratios, never add discounts
消費税の内税・外税の混同
Tax-inclusive vs exclusive confusion
税込11,000円から税抜を出すのは「÷1.1」であって「−10%」ではない
Removing 10% tax means ÷1.1, not −10%
税抜 = 税込 ÷ (1 + 税率)。逆算は割り算で
Net = gross ÷ (1 + rate)
0からの増加率
Change rate from zero
変化前が0だと増減率は定義できない(0除算)
Division by zero: change from 0 is undefined
「新規」として絶対値で報告するか、別指標を使う
Report the absolute value as "new" instead

計算式とコード例 / Formulas & Code

// YのX%        → Y × (X / 100)
// XはYの何%     → (X / Y) × 100
// 増減率        → ((新 − 旧) / 旧) × 100

// JavaScript: 浮動小数点の丸め誤差に注意
const pct = (x, y) => Math.round((x / y) * 1000) / 10;  // 小数1桁

-- SQL: 構成比の算出
SELECT category, COUNT(*) * 100.0 / SUM(COUNT(*)) OVER () AS pct
FROM products GROUP BY category;

計算例 / Examples

8,500円の30%引き → 8,500 × 0.7 = 5,950円
売上 120万 → 150万の増減率 → (150−120)/120 = +25%
税込 9,900円の税抜価格(10%) → 9,900 ÷ 1.1 = 9,000円
達成率: 目標80件・実績68件 → 68/80 = 85%

Why browser-only?

The numbers you punch into a percentage calculator are often unannounced figures: sales results, salary changes, margins, or budget drafts. This calculator runs entirely in your browser — values are never transmitted or stored anywhere, and the page keeps working offline. Check the DevTools Network tab while you calculate: zero requests.

計算する数字は未公開の売上・予算・利益率であることも多いもの。 本ツールは計算がブラウザ内で完結し、入力値が外部に送信されることはありません。

開発をもっと効率的に

PR