How to Format Fractions and Subscripts in LibreOffice

LibreOffice is a free, open-source office suite that handles documents, spreadsheets, and presentations. When working in LibreOffice Writer or Calc, you may need to format text in specific ways—particularly fractions (like ½ or ¾) and subscripts (smaller text positioned below the baseline, like the "2" in H₂O). Understanding how to access and apply these formatting options can save time and help your documents look professional. 📝

This guide explains what these formatting tools are, how they work in LibreOffice, and the different approaches available depending on your document type and needs.

What Are Fractions and Subscripts?

Fractions are mathematical or numerical expressions showing division—one number divided by another. In documents, they can appear as:

  • Typed fractions (like 1/2 or 3/4)
  • Built-in fraction characters (½, ¾, ⅓), which display as single, compact symbols
  • Stacked fractions (with numerator above denominator, separated by a horizontal line)

Subscripts are characters or numbers positioned below the baseline of regular text, typically smaller in size. Common uses include chemical formulas (H₂O, CO₂), mathematical notation (x₂, aₙ), and footnote markers.

Both formatting types serve different purposes:

  • Fractions communicate mathematical ratios or parts of a whole
  • Subscripts clarify scientific notation or mathematical variables

Formatting Fractions in LibreOffice Writer

Using AutoCorrect for Common Fractions

LibreOffice Writer includes an AutoCorrect feature that converts typed fraction combinations into built-in fraction symbols automatically.

When you type certain two-character combinations (like 1/2, 1/4, or 3/4) and press a space or punctuation mark, LibreOffice recognizes the pattern and converts it to a single-character fraction symbol. This works only for fractions that have dedicated Unicode characters—roughly a dozen common ones.

How to enable or adjust this:

  1. Open Tools > AutoCorrect Options
  2. Navigate to the Localized Options tab
  3. Check the box labeled Replace dashes or similar (depending on your version)
  4. Look for options related to fraction replacement
  5. Click OK

The advantage here is speed: you type normally and fractions appear automatically. The limitation is that it works only for fractions with existing Unicode characters (½, ⅓, ⅔, ¼, ¾, ⅛, ⅜, ⅝, ⅞, and a few others depending on locale settings).

Inserting Fractions via Special Characters

For fractions outside the AutoCorrect set, or when you want manual control:

  1. Click Insert > Special Character
  2. Search by Subset (select "Fractions") or type the Unicode name in the search box
  3. Select the fraction you want
  4. Click Insert
  5. Close the dialog

This method gives you access to a broader range of fractions but requires more steps per insertion.

Creating Stacked Fractions

For a traditional stacked fraction (numerator / denominator layout with a horizontal line), LibreOffice Writer doesn't have a single built-in button. Instead, you can:

Use a table (simplest approach):

  • Insert a 1×2 table (one column, two rows)
  • Type the numerator in the top cell, denominator in the bottom
  • Remove borders except the middle line
  • This creates a visual fraction without technical formatting

Use the Equation Editor (for mathematical documents):

  • Click Insert > Object > Formula
  • Type syntax like {1} over {2} for a stacked fraction
  • The formula editor renders it with proper mathematical notation
  • This method is best for technical or academic documents where equations are common

Formatting Subscripts in LibreOffice Writer

The Keyboard Shortcut Method

The fastest way to apply subscript formatting:

  1. Select the character(s) or number you want as subscript
  2. Press Ctrl + Shift + B (Windows/Linux) or Cmd + Shift + B (Mac)
  3. The text shrinks and drops below the baseline

To remove subscript formatting, select the text again and press the same shortcut.

Using the Format Menu

If you prefer menu navigation:

  1. Select the text you want to format
  2. Click Format > Text > Subscript
  3. The formatting applies immediately

Using the Formatting Toolbar

Many LibreOffice installations display a Text Formatting toolbar with subscript and superscript buttons (often marked with small "ₓ" and "ˣ" symbols). You can:

  1. Select your text
  2. Click the subscript button directly
  3. Adjust font size if needed (subscript text is typically smaller, but you may want consistency with surrounding text)

Formatting Fractions and Subscripts in LibreOffice Calc

Spreadsheet Considerations

LibreOffice Calc (the spreadsheet application) handles fractions and subscripts differently than Writer, because cells are designed for data entry and calculation rather than formatted text.

For fractions in Calc:

  • AutoCorrect works the same way as in Writer—type 1/2 and it may convert to the symbol
  • However, Calc may interpret fractions as dates or mathematical expressions, depending on your cell format
  • To prevent automatic interpretation, precede the entry with an apostrophe: '1/2 forces it to be treated as text
  • For calculations involving fractions, use decimal notation (0.5) or formula syntax instead

For subscripts in Calc:

  • The same Ctrl + Shift + B shortcut works
  • However, subscript formatting in cells is less common because spreadsheets prioritize data clarity and alignment
  • If you need subscript for labels or headers, apply it after entering the text

Key Factors That Affect Your Approach

The method you choose depends on several variables:

FactorHow It Affects Your Choice
Document typeWriter documents support richer formatting; Calc prioritizes data integrity
FrequencyOne-off fractions may not warrant learning AutoCorrect rules; many fractions justify setup
Fraction typeCommon fractions (½, ¾) have built-in symbols; uncommon ones may need stacking or symbols
Subscript contextScientific/mathematical writing benefits from equation editors; simple labels use keyboard shortcuts
Output formatPDFs preserve formatting; some web formats may not display symbols consistently
AccessibilitySubscripts and special characters should be accompanied by clear text or alt text if the document is shared digitally

Common Issues and Workarounds

Fractions not converting automatically:

  • Check that AutoCorrect is enabled (Tools > AutoCorrect Options)
  • Verify you're pressing a space or punctuation after the fraction
  • Some locales or settings disable fraction replacement by default

Subscript text looks too small or misaligned:

  • Select the subscript text and adjust the font size in the toolbar (usually 1–2 sizes smaller than body text works well)
  • Use Format > Character to fine-tune the position if needed

Fraction symbols not displaying in shared documents:

  • Special Unicode characters may not render identically across all systems or older software versions
  • If sharing with users on older platforms, consider using spelled-out fractions (one-half) or typed equivalents (1/2)

Subscripts breaking across lines:

  • Keep subscripted text short and on one line when possible
  • In Calc, subscript formatting in narrow columns may cause display issues—consider using a normal cell format instead

When to Use Each Approach

Choose AutoCorrect when you're typing common fractions frequently and want speed without thinking about formatting.

Choose manual subscripts when working with chemical formulas, variable notation, or mathematical text that requires precision and consistency.

Choose the equation editor when your document contains multiple equations or complex mathematical expressions that need professional formatting.

Choose text/table alternatives when you need fractions to remain editable as data (in Calc) or when you're prioritizing compatibility with older software or output formats.

Next Steps for Your Specific Needs

The right formatting choice depends on what you're writing, who you're sharing it with, and how important visual polish is relative to compatibility. If you're working primarily in Writer and your audience uses modern software, special character formatting offers the most professional appearance. If you're in Calc or sharing documents widely, simpler approaches (typed fractions, basic subscript shortcuts) often work better.

Experiment with each method in a test document to see which feels natural for your workflow and produces output that meets your standards. LibreOffice's flexibility means there's rarely a single "correct" way—only the way that works best for your situation.