How to Rotate a Shape by a Fractional Degree in PowerPoint
Question details
The user wants to rotate a shape in a presentation by a fractional or decimal degree (such as 37.5 degrees) for precise alignment.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Fine-tuning the exact angle of shapes or objects for high-precision design in a slide deck.
- Observed behavior
- The PowerPoint rotation control in the standard user interface only accepts integer values and automatically rounds decimal inputs to the nearest whole degree.
Because this method requires modifying the underlying XML code of the presentation file, ensure you save a duplicate copy of your presentation first to prevent accidental data loss if a formatting error occurs.
Edit the Presentation XML to Set Fractional Rotations
Bypass PowerPoint's interface limitations by extracting the presentation archive and modifying the underlying XML code directly.
PowerPoint's user interface is hardcoded to accept only whole integers for shape rotation. However, presentation files (.pptx) are essentially compressed ZIP archives containing XML files. By accessing these files, you can input exact rotation values.
In the XML structure, each degree is represented as 60,000 units. To apply a fractional rotation, you must calculate the total units manually.
Multiply your desired fractional degree by 60,000. For example, if you want a rotation of 37.5 degrees, multiply 37.5 by 60,000 to get a value of 2250000.
Close PowerPoint, locate your .pptx file in your file explorer, and rename its file extension from .pptx to .zip. Confirm any system warnings about changing file extensions.
Extract the contents of the ZIP file. Navigate to the 'ppt/slides' folder and find the XML file corresponding to the specific slide containing your shape (e.g., slide1.xml).
Open the slide XML file using a text editor like Notepad. Search for the shape's rotation attribute (usually denoted by 'rot' within the shape properties) and replace the existing number with your calculated unit value (e.g., 2250000), then save the file.
Select all extracted files and folders, compress them back into a single ZIP archive, and rename the new archive's extension back to .pptx. Open the file in PowerPoint to see the exact fractional rotation applied.
Try WPS Office for Your Presentation Design Needs
Looking for a versatile and lightweight office suite? WPS Office provides a familiar user interface, extensive design tools, and flawless compatibility with PowerPoint files, without the hefty price tag.

Frequently Asked Questions
Why does PowerPoint round my rotation degrees to the nearest whole number?
PowerPoint's standard user interface is designed to only accept integer values for shape rotation to simplify general use. Any decimal input is automatically rounded up or down to the nearest whole degree.
Can I use VBA macros to set a fractional rotation in PowerPoint?
While you can write a VBA macro to set a shape's rotation property to a single-precision floating-point number, PowerPoint's rendering engine and save mechanics often revert or round it back to a whole integer upon saving. Editing the XML ensures the precise value is permanently stored.
Will editing the PPTX XML file corrupt my presentation?
It can if done incorrectly. Making typos in XML tags or breaking the structural hierarchy will render the presentation unreadable. Always work on a copied version of your original file before modifying its internal code.




