Calculators · Gutenberg

Salary Calculator block for WordPress

Calculate take-home pay after federal/state taxes, Social Security, Medicare and retirement contributions.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Calculate take-home pay after federal/state taxes, Social Security, Medicare and retirement contributions.

Inspector panels on this block: Content, Sizing. Those titles come from index.js, not from a shared template.

Behavior controls: “Default Pay Period” options: Annual Salary, Monthly Salary, Hourly Wage; “Default Filing Status” options: Single, Married Filing Jointly, Head of Household.

Where to find it

Gutenberg inserter → Calculators → search “Salary Calculator” (block name `blockenberg/salary-calculator` in block.json). Style it in the sidebar after insert.

How to use Salary Calculator block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Salary Calculator”, insert it. Category: Calculators.
  3. Configure inspector controls that exist on this block. Open Content. Set “Content — Title”, “Subtitle”, “Currency Symbol”, “Default Pay Period”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Content — TitleText field in the inspector. block.json default: Salary & Take-Home Pay Calculator. Saved as `title`.
SubtitleText field in the inspector. block.json default: Estimate your net pay after taxes and deductions. Saved as `subtitle`.
Currency SymbolText field in the inspector.
Default Pay PeriodSelect control; the chosen value is saved on the block. Options: Annual Salary; Monthly Salary; Hourly Wage. block.json default: annual. Saved as `defaultPeriod`.
Default Filing StatusSelect control; the chosen value is saved on the block. Options: Single; Married Filing Jointly; Head of Household. block.json default: single. Saved as `defaultFiling`.
Default Annual IncomeNumeric range control in the inspector. Range 10000–1000000. block.json default: 75000. Saved as `defaultIncome`.
State Tax Rate (%)Numeric range control in the inspector. Range 0–15. block.json default: 5.0. Saved as `defaultStateTax`.
401(k) Contribution (%)Numeric range control in the inspector. Range 0–30. block.json default: 6.0. Saved as `default401k`.
Other Pre-tax Deductions ($)Numeric range control in the inspector. Range 0–20000. block.json default: 0. Saved as `defaultOtherDed`.
Show Tax BreakdownOn/off toggle in the inspector. On by default. Saved as `showBreakdown`.
Show All Pay PeriodsOn/off toggle in the inspector. On by default. Saved as `showAllPeriods`.
Show Effective Tax RateOn/off toggle in the inspector. On by default. Saved as `showEffectiveRate`.
Accent / Net PayColor control in the inspector. block.json default: #0ea5e9. Saved as `accentColor`.
Tax BarsColor control in the inspector. block.json default: #ef4444. Saved as `taxColor`.
Deduction BarsColor control in the inspector. block.json default: #f59e0b. Saved as `dedColor`.
Section BackgroundColor control in the inspector. block.json default: #f0f9ff. Saved as `sectionBg`.
Card BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Input BackgroundColor control in the inspector. block.json default: #f9fafb. Saved as `inputBg`.
Result BackgroundColor control in the inspector. block.json default: #e0f2fe. Saved as `resultBg`.
Colors — TitleColor control in the inspector. block.json default: #0c4a6e. Saved as `titleColor`.
SubtitleColor control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`.
LabelsColor control in the inspector. block.json default: #374151. Saved as `labelColor`.
Max Width (px)Numeric range control in the inspector. Range 360–1400. block.json default: 720. Saved as `contentMaxWidth`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Salary Calculator block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Salary Calculator”. It sits under Calculators. After insert, open Content and set “Content — Title”, “Subtitle”, “Currency Symbol”, “Default Pay Period”.

Does Salary Calculator need a server or extra plugin?

No. After Blockenberg is active, the view script runs in the browser with the values you saved on the block.

Is the Salary Calculator Gutenberg block free?

Yes. Salary Calculator ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Salary Calculator to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content, Sizing).

Related calculators blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Salary Calculator from the Gutenberg inserter.

Get Blockenberg